public class MergeScanner extends Object implements Scanner
| Modifier and Type | Field and Description |
|---|---|
protected TableStats |
tableStats |
| Constructor and Description |
|---|
MergeScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
List<Fragment> rawFragmentList) |
MergeScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
List<Fragment> rawFragmentList,
Schema target) |
| 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 TableStats tableStats
public MergeScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
List<Fragment> rawFragmentList)
throws IOException
IOExceptionpublic MergeScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
List<Fragment> rawFragmentList,
Schema target)
throws IOException
IOExceptionpublic 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 Schema getSchema()
getSchema in interface SchemaObjectpublic boolean isSplittable()
ScannerisSplittable in interface Scannerpublic float getProgress()
ScannergetProgress in interface Scanner0.0 to 1.0.public TableStats getInputStats()
getInputStats in interface ScannerCopyright © 2016 Apache Software Foundation. All Rights Reserved.