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 Classes Modifier and Type Interface Description static class
ToPage.Wrap<ATTR extends Attributes.Any,INNER_RESULT,OUTER_RESULT>
-
Method Summary
Modifier and Type Method Description default RESULT
convertResult(Object result)
ChunkType
getChunkType()
default Chunk<ATTR>
getDictionaryChunk()
default ToPage<Attributes.DictionaryKeys,int[]>
getDictionaryKeysToPage()
default Class<?>
getNativeComponentType()
Class<?>
getNativeType()
default Object
getResult(io.deephaven.parquet.base.ColumnPageReader columnPageReader)
default StringSetImpl.ReversibleLookup
getReversibleLookup()
default DbArrayBase
makeDbArray(RESULT result)
default Object
nullValue()
default ChunkPage<ATTR>
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(io.deephaven.parquet.base.ColumnPageReader columnPageReader) throws IOException- Returns:
- Gets the result from the columnPageReader.
- Throws:
IOException
-
convertResult
- Returns:
- Produce the array of values from the result
-
makeDbArray
- Returns:
- the method to create a Vector from RESULT.
-
toPage
@NotNull @FinalDefault default ChunkPage<ATTR> toPage(long offset, io.deephaven.parquet.base.ColumnPageReader columnPageReader, long mask) throws IOExceptionProduce 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.
-