Package io.deephaven.parquet.base
Class ColumnPageReaderImpl
java.lang.Object
io.deephaven.parquet.base.ColumnPageReaderImpl
- All Implemented Interfaces:
ColumnPageReader,AutoCloseable
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@NotNull org.apache.parquet.column.Dictionarymaterialize(Object nullValue) Triggers the value decompression and decodinglongnumRows()intreadKeyValues(IntBuffer keyDest, int nullPlaceholder) Directly read the key integral values when there's a dictionary.int
-
Field Details
-
NULL_OFFSET
public static final int NULL_OFFSET- See Also:
-
-
Method Details
-
materialize
Description copied from interface:ColumnPageReaderTriggers the value decompression and decoding- Specified by:
materializein interfaceColumnPageReader- Parameters:
nullValue- The value to be stored under the null entries- Returns:
- the data for that page in a format that makes sense for the given type - typically array of something that makes sense
- Throws:
IOException
-
readRowCount
- Throws:
IOException
-
readKeyValues
Description copied from interface:ColumnPageReaderDirectly read the key integral values when there's a dictionary.- Specified by:
readKeyValuesin interfaceColumnPageReader- Parameters:
keyDest- A properly sized buffer (at least numValues()) to hold the keysnullPlaceholder- The value to use for nulls.- Returns:
- A buffer holding the end of each repeated row. If the column is not repeating, null.
- Throws:
IOException
-
numValues
- Specified by:
numValuesin interfaceColumnPageReader- Returns:
- The value stored under number DataPageHeader.num_values
- Throws:
IOException
-
getDictionary
@NotNull public @NotNull org.apache.parquet.column.Dictionary getDictionary()- Specified by:
getDictionaryin interfaceColumnPageReader- Returns:
- Parquet dictionary for this column chunk
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
numRows
- Specified by:
numRowsin interfaceColumnPageReader- Returns:
- The number of rows in this ColumnChunk, or -1 if it's unknown.
- Throws:
IOException
-