public abstract class AbstractScanner extends Object implements Scanner
| Constructor and Description |
|---|
AbstractScanner() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close scanner
|
TableStats |
getInputStats() |
float |
getProgress()
How much of the input has the Scanner consumed
|
Schema |
getSchema() |
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.
|
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
|
public void init()
throws IOException
init in interface ScannerIOExceptionpublic void reset()
throws IOException
Scannerreset in interface ScannerIOException - if internal I/O error occurs during reset methodpublic void close()
throws IOException
Scannerclose in interface Closeableclose in interface AutoCloseableclose in interface ScannerIOException - if internal I/O error occurs during close methodpublic void pushOperators(LogicalNode planPart)
ScannerpushOperators in interface Scannerpublic boolean isProjectable()
ScannerisProjectable in interface Scannerpublic void setTarget(Column[] targets)
Scannerpublic boolean isSelectable()
ScannerisSelectable in interface Scannerpublic void setFilter(EvalNode filter)
Scannerpublic void setLimit(long num)
Scannerpublic boolean isSplittable()
ScannerisSplittable in interface Scannerpublic float getProgress()
ScannergetProgress in interface Scanner0.0 to 1.0.public TableStats getInputStats()
getInputStats in interface Scannerpublic Schema getSchema()
getSchema in interface SchemaObjectCopyright © 2016 Apache Software Foundation. All Rights Reserved.