public interface SelectiveStreamReader extends StreamReader
Modifier and Type | Method and Description |
---|---|
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() |
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 |
throwAnyError(int[] positions,
int positionCount)
Throws any error that occurred while reading specified positions.
|
close, getRetainedSizeInBytes, startRowGroup, startStripe
int read(int offset, int[] positions, int positionCount) throws IOException
positions
- Monotonically increasing positions to readpositionCount
- Number of valid positions in the positions array; may be less than the
size of the arrayIOException
int[] getReadPositions()
Block getBlock(int[] positions, int positionCount)
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 arrayBlockLease getBlockView(int[] positions, int positionCount)
void throwAnyError(int[] positions, int positionCount)
Copyright © 2012–2020. All rights reserved.