Package io.trino.orc.reader
Class MapColumnReader
- java.lang.Object
-
- io.trino.orc.reader.MapColumnReader
-
- All Implemented Interfaces:
ColumnReader
public class MapColumnReader extends Object implements ColumnReader
-
-
Constructor Summary
Constructors Constructor Description MapColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext, OrcBlockFactory blockFactory, OrcReader.FieldMapperFactory fieldMapperFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetRetainedSizeInBytes()voidprepareNextRead(int batchSize)BlockreadBlock()voidstartRowGroup(InputStreamSources dataStreamSources)voidstartStripe(ZoneId fileTimeZone, InputStreamSources dictionaryStreamSources, ColumnMetadata<ColumnEncoding> encoding)StringtoString()
-
-
-
Constructor Detail
-
MapColumnReader
public MapColumnReader(Type type, OrcColumn column, AggregatedMemoryContext memoryContext, OrcBlockFactory blockFactory, OrcReader.FieldMapperFactory fieldMapperFactory) throws OrcCorruptionException
- Throws:
OrcCorruptionException
-
-
Method Detail
-
prepareNextRead
public void prepareNextRead(int batchSize)
- Specified by:
prepareNextReadin interfaceColumnReader
-
readBlock
public Block readBlock() throws IOException
- Specified by:
readBlockin interfaceColumnReader- Throws:
IOException
-
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
-
close
public void close()
- Specified by:
closein interfaceColumnReader
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
- Specified by:
getRetainedSizeInBytesin interfaceColumnReader
-
-