Class ByteRange

java.lang.Object
ai.rapids.cudf.ByteRange

@Experimental public final class ByteRange extends Object
Immutable byte range describing an offset and size within a file or buffer.

Mirrors cudf::io::text::byte_range_info.

The APIs in this file are experimental and subject to change.

  • Constructor Details

    • ByteRange

      public ByteRange(long offset, long size)
      Parameters:
      offset - starting offset, in bytes, from the beginning of the source
      size - length of the range, in bytes
  • Method Details

    • offset

      public long offset()
      Returns:
      starting byte offset within the source.
    • size

      public long size()
      Returns:
      length of the byte range, in bytes.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true when the range has zero size.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object