Package ai.rapids.cudf
Class ByteRange
java.lang.Object
ai.rapids.cudf.ByteRange
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ByteRange
public ByteRange(long offset, long size) - Parameters:
offset- starting offset, in bytes, from the beginning of the sourcesize- 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:
truewhen the range has zero size.
-
equals
-
hashCode
public int hashCode() -
toString
-