Class Range

java.lang.Object
ai.rapids.cudf.Range

public final class Range extends Object
Helper utility for creating ranges.
  • Constructor Details

    • Range

      public Range()
  • Method Details

    • appendBytes

      public static final Consumer<HostColumnVector.Builder> appendBytes(byte end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendBytes

      public static final Consumer<HostColumnVector.Builder> appendBytes(byte start, byte end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendBytes

      public static final Consumer<HostColumnVector.Builder> appendBytes(byte start, byte end, byte step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendShorts

      public static final Consumer<HostColumnVector.Builder> appendShorts(short end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendShorts

      public static final Consumer<HostColumnVector.Builder> appendShorts(short start, short end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendShorts

      public static final Consumer<HostColumnVector.Builder> appendShorts(short start, short end, short step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendInts

      public static final Consumer<HostColumnVector.Builder> appendInts(int end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendInts

      public static final Consumer<HostColumnVector.Builder> appendInts(int start, int end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendInts

      public static final Consumer<HostColumnVector.Builder> appendInts(int start, int end, int step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendLongs

      public static final Consumer<HostColumnVector.Builder> appendLongs(long start, long end, long step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendLongs

      public static final Consumer<HostColumnVector.Builder> appendLongs(long end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendLongs

      public static final Consumer<HostColumnVector.Builder> appendLongs(long start, long end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendFloats

      public static final Consumer<HostColumnVector.Builder> appendFloats(float start, float end, float step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendFloats

      public static final Consumer<HostColumnVector.Builder> appendFloats(float end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendFloats

      public static final Consumer<HostColumnVector.Builder> appendFloats(float start, float end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendDoubles

      public static final Consumer<HostColumnVector.Builder> appendDoubles(double start, double end, double step)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      step - how must to step by.
      Returns:
      the builder for chaining.
    • appendDoubles

      public static final Consumer<HostColumnVector.Builder> appendDoubles(double end)
      Append a range to the builder. 0 inclusive to end exclusive.
      Parameters:
      end - last entry exclusive.
      Returns:
      the consumer.
    • appendDoubles

      public static final Consumer<HostColumnVector.Builder> appendDoubles(double start, double end)
      Append a range to the builder. start inclusive to end exclusive.
      Parameters:
      start - first entry.
      end - last entry exclusive.
      Returns:
      the consumer.