public interface Scanner extends SchemaObject, Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close scanner
|
TableStats |
getInputStats() |
float |
getProgress()
How much of the input has the Scanner consumed
|
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
|
getSchema
void init() throws IOException
IOException
Tuple next() throws IOException
IOException
- if internal I/O error occurs during next methodvoid reset() throws IOException
IOException
- if internal I/O error occurs during reset methodvoid close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- if internal I/O error occurs during close methodboolean isProjectable()
void setTarget(Column[] targets)
targets
- columns to be projectedboolean isSelectable()
void setSearchCondition(Object expr)
expr
- to be searched
TODO - to be changed Object typeboolean isSplittable()
float getProgress()
0.0
to 1.0
.TableStats getInputStats()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.