Interface ToPage<ATTR extends Attributes.Any,RESULT>
- All Known Implementing Classes:
ToArrayPage
,ToBigDecimalBase
,ToBigDecimalFromIntPage
,ToBigDecimalFromLongPage
,ToBooleanAsBytePage
,ToBytePageFromInt
,ToCharPageFromInt
,ToDbArrayPage
,ToDBDateTimePage
,ToDBDateTimePageFromInt96
,ToDoublePage
,ToFloatPage
,ToIntPage
,ToLongPage
,ToObjectPage
,ToPage.Wrap
,ToPageWithDictionary
,ToShortPageFromInt
,ToStringPage
,ToStringSetPage
public interface ToPage<ATTR extends Attributes.Any,RESULT>
This provides a translation layer from the parquet results into the appropriately typed Chunk's.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptiondefault RESULT
convertResultArray
(Object result) default <R> R
convertSingleResult
(Object result) default ToPage<Attributes.DictionaryKeys,
int[]> default Class<?>
Class<?>
default Object
getResult
(io.deephaven.parquet.base.ColumnPageReader columnPageReader) default StringSetImpl.ReversibleLookup
default DbArrayBase
makeDbArray
(RESULT result) default Object
toPage
(long offset, io.deephaven.parquet.base.ColumnPageReader columnPageReader, long mask) Produce the appropriately typed chunk page for the page read by the columnPageReader.
-
Method Details
-
getNativeType
- Returns:
- The native type for the elements of the arrays produced by this object.
-
getNativeComponentType
- Returns:
- The native type for the elements of engine arrays produced by this object.
- ApiNote:
-
getChunkType
- Returns:
- The chunk type used to wrap the arrays produced by this object.
-
nullValue
- Returns:
- The null value stored in the elements of the arrays produced by thus object.
-
getResult
default Object getResult(@NotNull io.deephaven.parquet.base.ColumnPageReader columnPageReader) throws IOException - Returns:
- Gets the result from the columnPageReader.
- Throws:
IOException
-
convertResultArray
- Returns:
- Produce the array of values from the result
-
convertSingleResult
-
makeDbArray
- Returns:
- the method to create a Vector from RESULT.
-
toPage
@NotNull @FinalDefault default ChunkPage<ATTR> toPage(long offset, @NotNull io.deephaven.parquet.base.ColumnPageReader columnPageReader, long mask) throws IOException Produce the appropriately typed chunk page for the page read by the columnPageReader. The is the expected entry point for the ColumnChunkPageStore.- Throws:
IOException
-
getDictionaryChunk
- Returns:
- the dictionary stored for this column, if one exists, otherwise null.
-
getDictionaryKeysToPage
- Returns:
- an object implementing ToPage which will read the integral Dictionary Indices when there's a dictionary
for this column (as opposed to the values, which this object's toPage will return). This will return null
iff
getDictionaryChunk()
returns null. - ApiNote:
- null iff
getDictionaryChunk()
is null.
-
getReversibleLookup
- Returns:
- an reverse lookup map of the dictionary.
- ApiNote:
- null iff
getDictionaryChunk()
is null.
-