Class ToPageWithDictionary<DATA_TYPE,ATTR extends Attributes.Any>
java.lang.Object
com.illumon.iris.db.v2.locations.parquet.topage.ToPageWithDictionary<DATA_TYPE,ATTR>
- All Implemented Interfaces:
ToPage<ATTR,DATA_TYPE[]>
public class ToPageWithDictionary<DATA_TYPE,ATTR extends Attributes.Any> extends Object implements ToPage<ATTR,DATA_TYPE[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.parquet.topage.ToPage
ToPage.Wrap<ATTR extends Attributes.Any,INNER_RESULT,OUTER_RESULT>
-
Method Summary
Modifier and Type Method Description DATA_TYPE[]
convertResult(Object result)
ChunkType
getChunkType()
ObjectChunk<DATA_TYPE,ATTR>
getDictionaryChunk()
ToPage<Attributes.DictionaryKeys,int[]>
getDictionaryKeysToPage()
Class<DATA_TYPE>
getNativeType()
Object
getResult(io.deephaven.parquet.base.ColumnPageReader columnPageReader)
StringSetImpl.ReversibleLookup<DATA_TYPE>
getReversibleLookup()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.locations.parquet.topage.ToPage
getNativeComponentType, makeDbArray, nullValue, toPage
-
Method Details
-
getNativeType
- Specified by:
getNativeType
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- The native type for the elements of the arrays produced by this object.
-
getChunkType
- Specified by:
getChunkType
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- The chunk type used to wrap the arrays produced by this object.
-
getResult
@NotNull public final Object getResult(@NotNull io.deephaven.parquet.base.ColumnPageReader columnPageReader) throws IOException- Specified by:
getResult
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- Gets the result from the columnPageReader.
- Throws:
IOException
-
convertResult
- Specified by:
convertResult
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- Produce the array of values from the result
-
getDictionaryChunk
- Specified by:
getDictionaryChunk
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- the dictionary stored for this column, if one exists, otherwise null.
-
getReversibleLookup
- Specified by:
getReversibleLookup
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- Returns:
- an reverse lookup map of the dictionary.
-
getDictionaryKeysToPage
- Specified by:
getDictionaryKeysToPage
in interfaceToPage<DATA_TYPE,ATTR extends Attributes.Any>
- 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
ToPage.getDictionaryChunk()
returns null.
-