Package io.trino.orc.reader
Class LongColumnReader
java.lang.Object
io.trino.orc.reader.LongColumnReader
- All Implemented Interfaces:
ColumnReader
- Direct Known Subclasses:
TimeColumnReader
-
Constructor Summary
ConstructorsConstructorDescriptionLongColumnReader(Type type, OrcColumn column, LocalMemoryContext memoryContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longprotected voidmaybeTransformValues(long[] values, int nextBatchSize) voidprepareNextRead(int batchSize) voidstartRowGroup(InputStreamSources dataStreamSources) voidstartStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding) toString()
-
Constructor Details
-
LongColumnReader
public LongColumnReader(Type type, OrcColumn column, LocalMemoryContext memoryContext) throws OrcCorruptionException - Throws:
OrcCorruptionException
-
-
Method Details
-
prepareNextRead
public void prepareNextRead(int batchSize) - Specified by:
prepareNextReadin interfaceColumnReader
-
readBlock
- Specified by:
readBlockin interfaceColumnReader- Throws:
IOException
-
maybeTransformValues
protected void maybeTransformValues(long[] values, int nextBatchSize) -
startStripe
public void startStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding) - Specified by:
startStripein interfaceColumnReader
-
startRowGroup
- Specified by:
startRowGroupin interfaceColumnReader
-
toString
-
close
public void close()- Specified by:
closein interfaceColumnReader
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceColumnReader
-