Package io.trino.parquet.reader.flat
Class ShortColumnAdapter
java.lang.Object
io.trino.parquet.reader.flat.ShortColumnAdapter
- All Implemented Interfaces:
ColumnAdapter<short[]>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyValue(short[] source, int sourceIndex, short[] destination, int destinationIndex) short[]createBuffer(int size) createNonNullBlock(short[] values) createNullableBlock(boolean[] nulls, short[] values) voiddecodeDictionaryIds(short[] values, int offset, int length, int[] ids, short[] dictionary) longgetSizeInBytes(short[] values) short[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.parquet.reader.flat.ColumnAdapter
createNullableDictionaryBlock, createTemporaryBuffer, unpackNullValues
-
Field Details
-
SHORT_ADAPTER
-
-
Constructor Details
-
ShortColumnAdapter
public ShortColumnAdapter()
-
-
Method Details
-
createBuffer
public short[] createBuffer(int size) - Specified by:
createBufferin interfaceColumnAdapter<short[]>
-
createNonNullBlock
- Specified by:
createNonNullBlockin interfaceColumnAdapter<short[]>
-
createNullableBlock
- Specified by:
createNullableBlockin interfaceColumnAdapter<short[]>
-
copyValue
public void copyValue(short[] source, int sourceIndex, short[] destination, int destinationIndex) - Specified by:
copyValuein interfaceColumnAdapter<short[]>
-
decodeDictionaryIds
public void decodeDictionaryIds(short[] values, int offset, int length, int[] ids, short[] dictionary) - Specified by:
decodeDictionaryIdsin interfaceColumnAdapter<short[]>
-
getSizeInBytes
public long getSizeInBytes(short[] values) - Specified by:
getSizeInBytesin interfaceColumnAdapter<short[]>
-
merge
- Specified by:
mergein interfaceColumnAdapter<short[]>
-