public class ScanRequest extends AbstractTableStorageRequest
| Constructor and Description |
|---|
ScanRequest(String tableName)
Constructs a scan request with target table name.
|
| Modifier and Type | Method and Description |
|---|---|
ScanRequest |
addSelector(String column)
Add a cell with column name to this get object.
|
protected static void |
checkScanRequest(ScanRequest request)
Check this table storage row object
|
int |
getLimit()
Get the limit number of returned records corresponding to this request.
|
int |
getMaxVersions()
Get the maxVersions of this scan request.
|
List<TableStorageCell> |
getSelectors()
Get all cell objects in this request
|
String |
getStartRowkey()
Get the start rowkey of this scan request.
|
String |
getStopRowkey()
Get the stop rowkey of this scan request.
|
boolean |
isIncludeStart()
Whether this scan request includes start rowkey.
|
boolean |
isIncludeStop()
Whether this scan request includes stop rowkey.
|
void |
setLimit(int limit)
Set the limit number of returned records corresponding to this request.
|
void |
setMaxVersions(int maxVersions)
Set the maxVersions to this scan request.
|
void |
setStartRowkey(String startRowkey,
boolean includeStart)
Set the start rowkey and include start rowkey to this scan request.
|
void |
setStopRowkey(String stopRowkey,
boolean includeStop)
Set the stop rowkey and include stop rowkey to this scan request.
|
String |
toJsonString()
Convert this scan request to json string.
|
getTableName, withRequestCredentialsgetRequestCredentials, setRequestCredentialspublic ScanRequest(String tableName)
tableName - The target table name.public String getStartRowkey()
public void setStartRowkey(String startRowkey, boolean includeStart)
startRowkey - The start rowkey set to this scan request.includeStart - Set true if want this scan request include start rowkey, otherwise false.public boolean isIncludeStart()
public String getStopRowkey()
public void setStopRowkey(String stopRowkey, boolean includeStop)
stopRowkey - The stop rowkey set to this scan request.includeStop - Set true if want this scan request include stop rowkey, otherwise false.public boolean isIncludeStop()
public int getLimit()
public void setLimit(int limit)
limit - The value set to the limit.public int getMaxVersions()
public void setMaxVersions(int maxVersions)
maxVersions - The value set to maxVersions.public List<TableStorageCell> getSelectors()
public ScanRequest addSelector(String column)
column - The column name of this cell.protected static void checkScanRequest(ScanRequest request)
public String toJsonString()
toJsonString in class AbstractTableStorageRequestCopyright © 2022. All rights reserved.