Class SliceColumnReader
java.lang.Object
io.trino.orc.reader.SliceColumnReader
- All Implemented Interfaces:
ColumnReader
-
Constructor Summary
ConstructorsConstructorDescriptionSliceColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static intcomputeTruncatedLength(io.airlift.slice.Slice slice, int offset, int length, int maxCodePointCount, boolean isCharType) longvoidprepareNextRead(int batchSize) voidstartRowGroup(InputStreamSources dataStreamSources) voidstartStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding) toString()
-
Constructor Details
-
SliceColumnReader
public SliceColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext) throws OrcCorruptionException - Throws:
OrcCorruptionException
-
-
Method Details
-
readBlock
- Specified by:
readBlockin interfaceColumnReader- Throws:
IOException
-
prepareNextRead
public void prepareNextRead(int batchSize) - Specified by:
prepareNextReadin interfaceColumnReader
-
startStripe
public void startStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding) throws IOException - Specified by:
startStripein interfaceColumnReader- Throws:
IOException
-
startRowGroup
- Specified by:
startRowGroupin interfaceColumnReader- Throws:
IOException
-
toString
-
computeTruncatedLength
public static int computeTruncatedLength(io.airlift.slice.Slice slice, int offset, int length, int maxCodePointCount, boolean isCharType) -
close
public void close()- Specified by:
closein interfaceColumnReader
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()- Specified by:
getRetainedSizeInBytesin interfaceColumnReader
-