Package io.trino.orc.reader
Class SliceColumnReader
- java.lang.Object
-
- io.trino.orc.reader.SliceColumnReader
-
- All Implemented Interfaces:
ColumnReader
public class SliceColumnReader extends Object implements ColumnReader
-
-
Constructor Summary
Constructors Constructor Description SliceColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static intcomputeTruncatedLength(io.airlift.slice.Slice slice, int offset, int length, int maxCodePointCount, boolean isCharType)longgetRetainedSizeInBytes()voidprepareNextRead(int batchSize)BlockreadBlock()voidstartRowGroup(InputStreamSources dataStreamSources)voidstartStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding)StringtoString()
-
-
-
Constructor Detail
-
SliceColumnReader
public SliceColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext) throws OrcCorruptionException
- Throws:
OrcCorruptionException
-
-
Method Detail
-
readBlock
public Block readBlock() throws IOException
- 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
public void startRowGroup(InputStreamSources dataStreamSources) throws IOException
- Specified by:
startRowGroupin interfaceColumnReader- Throws:
IOException
-
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
-
-