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<FileFragment> rawFragmentList) |
MergeScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
List<FileFragment> 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 |
reset()
Reset the cursor.
|
void |
setSearchCondition(Object expr)
Set a search condition
|
void |
setTarget(Column[] targets)
Set target columns
|
protected TableStats tableStats
public MergeScanner(org.apache.hadoop.conf.Configuration conf, Schema schema, TableMeta meta, List<FileFragment> rawFragmentList) throws IOException
IOException
public MergeScanner(org.apache.hadoop.conf.Configuration conf, Schema schema, TableMeta meta, List<FileFragment> rawFragmentList, Schema target) throws IOException
IOException
public void init() throws IOException
init
in interface Scanner
IOException
public Tuple next() throws IOException
Scanner
next
in interface Scanner
IOException
- if internal I/O error occurs during next methodpublic void reset() throws IOException
Scanner
reset
in interface Scanner
IOException
- if internal I/O error occurs during reset methodpublic void close() throws IOException
Scanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Scanner
IOException
- if internal I/O error occurs during close methodpublic boolean isProjectable()
Scanner
isProjectable
in interface Scanner
public void setTarget(Column[] targets)
Scanner
public boolean isSelectable()
Scanner
isSelectable
in interface Scanner
public void setSearchCondition(Object expr)
Scanner
setSearchCondition
in interface Scanner
expr
- to be searched
TODO - to be changed Object typepublic Schema getSchema()
getSchema
in interface SchemaObject
public boolean isSplittable()
Scanner
isSplittable
in interface Scanner
public float getProgress()
Scanner
getProgress
in interface Scanner
0.0
to 1.0
.public TableStats getInputStats()
getInputStats
in interface Scanner
Copyright © 2014 Apache Software Foundation. All Rights Reserved.