public class ClientSmallScanner extends ClientScanner
ClientScanner
cache, caching, closed, currentRegion, lastNext, lastResult, maxScannerResultSize, scan, scanMetrics
Constructor and Description |
---|
ClientSmallScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
byte[] tableName)
Create a new ClientSmallScanner for the specified table.
|
ClientSmallScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
byte[] tableName,
HConnection connection)
Create a new ClientSmallScanner for the specified table.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the scanner and releases any resources it has allocated
|
protected void |
initializeScannerInConstruction() |
Result |
next()
Grab the next row's worth of values.
|
checkScanStopRow, getConnection, getScan, getScannerCallable, getTableName, getTimestamp, next, writeScanMetrics
iterator
public ClientSmallScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, byte[] tableName) throws IOException
Scan
's start row maybe changed.conf
- The Configuration
to use.scan
- Scan
to use in this scannertableName
- The table that we wish to rangeGetIOException
public ClientSmallScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, byte[] tableName, HConnection connection) throws IOException
Scan
's start row maybe changed.conf
- scan
- tableName
- connection
- IOException
protected void initializeScannerInConstruction() throws IOException
initializeScannerInConstruction
in class ClientScanner
IOException
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
next
in class ClientScanner
IOException
- epublic void close()
ResultScanner
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ResultScanner
close
in class ClientScanner
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.