public abstract class FileScanner extends Object implements Scanner
Modifier and Type | Field and Description |
---|---|
protected int |
columnNum |
protected org.apache.hadoop.conf.Configuration |
conf |
protected FileFragment |
fragment |
protected boolean |
inited |
protected TableMeta |
meta |
protected float |
progress |
protected Schema |
schema |
protected TableStats |
tableStats |
protected Column[] |
targets |
Constructor and Description |
---|
FileScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
FileFragment fragment) |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.FileSystem |
getFileSystem(TajoConf tajoConf,
org.apache.hadoop.fs.Path path) |
TableStats |
getInputStats() |
float |
getProgress()
How much of the input has the Scanner consumed
|
Schema |
getSchema() |
void |
init() |
void |
setSearchCondition(Object expr)
Set a search condition
|
void |
setTarget(Column[] targets)
Set target columns
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isProjectable, isSelectable, isSplittable, next, reset
protected boolean inited
protected final org.apache.hadoop.conf.Configuration conf
protected final TableMeta meta
protected final Schema schema
protected final FileFragment fragment
protected final int columnNum
protected Column[] targets
protected float progress
protected TableStats tableStats
public FileScanner(org.apache.hadoop.conf.Configuration conf, Schema schema, TableMeta meta, FileFragment fragment)
public void init() throws IOException
init
in interface Scanner
IOException
public Schema getSchema()
getSchema
in interface SchemaObject
public void setTarget(Column[] targets)
Scanner
public void setSearchCondition(Object expr)
Scanner
setSearchCondition
in interface Scanner
expr
- to be searched
TODO - to be changed Object typepublic static org.apache.hadoop.fs.FileSystem getFileSystem(TajoConf tajoConf, org.apache.hadoop.fs.Path path) throws IOException
IOException
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.