Package io.deephaven.parquet.base
Interface ColumnPageReader
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ColumnPageReaderImpl
Provides the API for reading a single parquet page
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.parquet.column.Dictionarymaterialize(Object nullValue) Triggers the value decompression and decodingdefault longnumRows()intreadKeyValues(IntBuffer keyDest, int nullPlaceholder) Directly read the key integral values when there's a dictionary.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
numRows
- Returns:
- The number of rows in this ColumnChunk, or -1 if it's unknown.
- Throws:
IOException
-
materialize
Triggers the value decompression and decoding- 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
-
readKeyValues
Directly read the key integral values when there's a dictionary.- 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
- Returns:
- The value stored under number DataPageHeader.num_values
- Throws:
IOException
-
getDictionary
@NotNull @NotNull org.apache.parquet.column.Dictionary getDictionary()- Returns:
- Parquet dictionary for this column chunk
- ApiNote:
- The result will never be
null. It will instead beColumnChunkReader.NULL_DICTIONARY.
-