Interface ToPage<ATTR extends Any,RESULT>
- All Known Implementing Classes:
ToArrayPage
,ToBigDecimalFromNumeric
,ToBigDecimalPage
,ToBigIntegerPage
,ToBooleanAsBytePage
,ToBytePage
,ToCharPage
,ToDoublePage
,ToFloatPage
,ToInstantPage
,ToIntPage
,ToLocalDatePage
,ToLocalDateTimePage
,ToLocalTimePage
,ToLongPage
,ToObjectPage
,ToPage.Wrap
,ToPageWithDictionary
,ToShortPage
,ToStringPage
,ToStringSetPage
,ToVectorPage
public interface ToPage<ATTR extends Any,RESULT>
This provides a translation layer from the parquet results into the appropriately typed Chunk's.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
ToPage.Wrap<ATTR extends Any,
INNER_RESULT, OUTER_RESULT> -
Method Summary
Modifier and TypeMethodDescriptiondefault RESULT
convertResult
(Object result) @NotNull ChunkType
default ToPage<DictionaryKeys,
long[]> default @NotNull Class<?>
@NotNull Class<?>
default Object
getResult
(ColumnPageReader columnPageReader, SeekableChannelContext channelContext) default Vector<?>
makeVector
(RESULT result) default Object
toPage
(long offset, ColumnPageReader columnPageReader, @NotNull SeekableChannelContext channelContext, 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.
-
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(ColumnPageReader columnPageReader, SeekableChannelContext channelContext) throws IOException - Returns:
- Gets the result from the columnPageReader.
- Throws:
IOException
-
convertResult
- Returns:
- Produce the array of values from the result
-
makeVector
- Returns:
- the method to create a Vector from RESULT.
-
toPage
@NotNull @FinalDefault default @NotNull ChunkPage<ATTR> toPage(long offset, ColumnPageReader columnPageReader, @NotNull @NotNull SeekableChannelContext channelContext, long mask) throws IOException Produce the appropriately typed chunk page for the page read by the columnPageReader. This 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:
- a reverse lookup map of the dictionary.
- ApiNote:
- null iff
getDictionaryChunk()
is null.
-
getPageMaterializerFactory
PageMaterializerFactory getPageMaterializerFactory()- Returns:
- the factory to create the materializers for this column.
-