public class CSVFileScanner extends FileScannerV2
Modifier and Type | Field and Description |
---|---|
static String |
DELIMITER |
static String |
DELIMITER_DEFAULT |
static byte |
LF |
allocatedDiskId, closed, columnNum, conf, firstSchdeuled, fragment, fs, inited, meta, progress, schema, smContext, tableStats, targets, totalScanTime
Constructor and Description |
---|
CSVFileScanner(org.apache.hadoop.conf.Configuration conf,
Schema schema,
TableMeta meta,
FileFragment fragment) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close scanner
|
protected long |
getFilePosition() |
void |
init() |
protected boolean |
initFirstScan(int maxBytesPerSchedule) |
boolean |
isFetchProcessing() |
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.
|
boolean |
isStopScanScheduling() |
protected Tuple |
nextTuple() |
protected long[] |
reportReadBytes() |
void |
scannerReset() |
protected boolean |
scanNext(int length) |
void |
setSearchCondition(Object expr)
Set a search condition
|
getDiskId, getId, getInputStats, getPath, getProgress, getSchema, isClosed, next, reset, scan, setAllocatedDiskId, setStorageManagerContext, setTarget, toString
public static final String DELIMITER
public static final String DELIMITER_DEFAULT
public static final byte LF
public CSVFileScanner(org.apache.hadoop.conf.Configuration conf, Schema schema, TableMeta meta, FileFragment fragment) throws IOException
IOException
public void init() throws IOException
init
in interface Scanner
init
in class FileScannerV2
IOException
protected boolean initFirstScan(int maxBytesPerSchedule) throws IOException
initFirstScan
in class FileScannerV2
IOException
public boolean isStopScanScheduling()
isStopScanScheduling
in class FileScannerV2
protected long getFilePosition() throws IOException
getFilePosition
in class FileScannerV2
IOException
public boolean isFetchProcessing()
isFetchProcessing
in class FileScannerV2
protected Tuple nextTuple() throws IOException
nextTuple
in class FileScannerV2
IOException
public void scannerReset()
scannerReset
in class FileScannerV2
public void close() throws IOException
Scanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Scanner
close
in class FileScannerV2
IOException
- if internal I/O error occurs during close methodprotected boolean scanNext(int length) throws IOException
scanNext
in class FileScannerV2
IOException
public boolean isProjectable()
Scanner
public boolean isSelectable()
Scanner
public void setSearchCondition(Object expr)
Scanner
setSearchCondition
in interface Scanner
setSearchCondition
in class FileScannerV2
expr
- to be searched
TODO - to be changed Object typepublic boolean isSplittable()
Scanner
protected long[] reportReadBytes()
reportReadBytes
in class FileScannerV2
Copyright © 2014 Apache Software Foundation. All Rights Reserved.