DictionaryByteRange#

public final class DictionaryByteRange#

Byte range of a column chunk’s dictionary page, and whether that range is exactly the page.

A range that is not exact starts at the chunk’s dictionary page, if it has one, and may extend past it.

Mirrors cudf::io::parquet::experimental::dictionary_byte_range.

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

Constructor Summary

Method Summary

byteRange()

byteRangeToRead(long maxUpperBoundSize)

The byte range to read, reading no more than maxUpperBoundSize bytes of a range that is not exact.

equals(Object o)

hashCode()

isExact()

toString()

Constructors

public DictionaryByteRange(ByteRange byteRange, boolean isExact)#
Parameters:
  • byteRange – byte range to read from the file

  • isExact – whether byteRange is exactly the dictionary page, not an upper bound

Methods

public ByteRange byteRange()#
Returns:

the byte range this dictionary page lies in.

public boolean isExact()#
Returns:

whether byteRange() is exactly the dictionary page, not an upper bound.

public ByteRange byteRangeToRead(long maxUpperBoundSize)#

The byte range to read, reading no more than maxUpperBoundSize bytes of a range that is not exact.

What is read of such a range must still be trimmed to the dictionary page before it is handed to the reader; see HybridScanReader.dictionaryPageLengths.

Parameters:

maxUpperBoundSize – most bytes to read of a range that is not exact

Returns:

the byte range to read

public boolean equals(Object o)#
public int hashCode()#
public String toString()#