public class NullScanner extends Object implements Scanner
| Modifier and Type | Field and Description |
|---|---|
protected int |
columnNum |
protected org.apache.hadoop.conf.Configuration |
conf |
protected Fragment |
fragment |
protected TableMeta |
meta |
protected float |
progress |
protected Schema |
schema |
protected TableStats |
tableStats |
protected Column[] |
targets |
| Constructor and Description |
|---|
NullScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
Fragment fragment) |
| 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.
|
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
|
protected final org.apache.hadoop.conf.Configuration conf
protected final TableMeta meta
protected final Schema schema
protected final Fragment fragment
protected final int columnNum
protected Column[] targets
protected float progress
protected TableStats tableStats
public void init()
throws IOException
init in interface ScannerIOExceptionpublic Tuple next() throws IOException
Scannernext in interface ScannerIOException - if internal I/O error occurs during next methodpublic 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.