public class BooleanSelectiveStreamReader extends Object implements SelectiveStreamReader
Constructor and Description |
---|
BooleanSelectiveStreamReader(StreamDescriptor streamDescriptor,
Optional<TupleDomainFilter> filter,
boolean outputRequired,
OrcLocalMemoryContext systemMemoryContext) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Block |
getBlock(int[] positions,
int positionCount)
Return a subset of the values extracted during most recent read() for the specified positions
Can be called at most once after each read().
|
BlockLease |
getBlockView(int[] positions,
int positionCount)
Like getBlock(), but returns a temporary view of the data.
|
int[] |
getReadPositions() |
long |
getRetainedSizeInBytes() |
int |
read(int offset,
int[] positions,
int positionCount)
Extract values at the specified positions, apply filter and buffer the values that pass
the filter.
|
void |
startRowGroup(InputStreamSources dataStreamSources) |
void |
startStripe(InputStreamSources dictionaryStreamSources,
List<ColumnEncoding> encoding) |
void |
throwAnyError(int[] positions,
int positionCount)
Throws any error that occurred while reading specified positions.
|
String |
toString() |
public BooleanSelectiveStreamReader(StreamDescriptor streamDescriptor, Optional<TupleDomainFilter> filter, boolean outputRequired, OrcLocalMemoryContext systemMemoryContext)
public void startStripe(InputStreamSources dictionaryStreamSources, List<ColumnEncoding> encoding)
startStripe
in interface StreamReader
public void startRowGroup(InputStreamSources dataStreamSources)
startRowGroup
in interface StreamReader
public long getRetainedSizeInBytes()
getRetainedSizeInBytes
in interface StreamReader
public int read(int offset, int[] positions, int positionCount) throws IOException
SelectiveStreamReader
read
in interface SelectiveStreamReader
positions
- Monotonically increasing positions to readpositionCount
- Number of valid positions in the positions array; may be less than the
size of the arrayIOException
public int[] getReadPositions()
getReadPositions
in interface SelectiveStreamReader
public Block getBlock(int[] positions, int positionCount)
SelectiveStreamReader
getBlock
in interface SelectiveStreamReader
positions
- Monotonically increasing positions to return; must be a strict subset of both
the list of positions passed into read() and the list of positions returned
from getReadPositions()positionCount
- Number of valid positions in the positions array; may be less than the
size of the arraypublic BlockLease getBlockView(int[] positions, int positionCount)
SelectiveStreamReader
getBlockView
in interface SelectiveStreamReader
public void throwAnyError(int[] positions, int positionCount)
SelectiveStreamReader
throwAnyError
in interface SelectiveStreamReader
public void close()
close
in interface StreamReader
Copyright © 2012–2020. All rights reserved.