public interface Scanner extends SchemaObject, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close scanner
|
TableStats |
getInputStats() |
float |
getProgress()
How much of the input has the Scanner consumed
|
void |
init() |
boolean |
isProjectable()
It returns if the projection is executed in the underlying scanner layer.
|
boolean |
isSelectable()
It returns if the selection is executed in the underlying scanner layer.
|
boolean |
isSplittable()
It returns if the file is splittable.
|
Tuple |
next()
It returns one tuple at each call.
|
void |
pushOperators(LogicalNode planPart)
Push a plan part into scanner.
|
void |
reset()
Reset the cursor.
|
void |
setFilter(EvalNode filter)
Set a filter condition
|
void |
setLimit(long num)
This method does not guarantee that the scanner will retrieve the specified number of rows.
|
void |
setTarget(Column[] targets)
Set target columns
|
getSchemavoid init()
throws IOException
IOExceptionTuple next() throws IOException
IOException - if internal I/O error occurs during next methodvoid reset()
throws IOException
IOException - if internal I/O error occurs during reset methodvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException - if internal I/O error occurs during close methodvoid pushOperators(LogicalNode planPart)
planPart - boolean isProjectable()
void setTarget(Column[] targets)
targets - columns to be projectedboolean isSelectable()
void setFilter(EvalNode filter)
filter - to be searched
TODO - to be changed Object typevoid setLimit(long num)
num - The number of rows to be retrieved.boolean isSplittable()
float getProgress()
0.0 to 1.0.TableStats getInputStats()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.