com.aliyun.openservices.ots.model
类 OTSProtocolHelper
java.lang.Object
com.aliyun.openservices.ots.model.OTSProtocolHelper
public class OTSProtocolHelper
- extends Object
|
方法摘要 |
static byte[] |
buildBatchGetRowRequest(Map<String,MultiRowQueryCriteria> criteriasGroupByTable)
|
static byte[] |
buildBatchWriteRowRequest(Map<String,List<RowPutChange>> rowPutChangesGroupByTable,
Map<String,List<RowUpdateChange>> rowUpdateChangesGroupByTable,
Map<String,List<RowDeleteChange>> rowDeleteChangesGroupByTable)
|
static OtsProtocol2.Column |
buildColumn(String name,
ColumnValue value)
|
static OtsProtocol2.Column |
buildColumn(String name,
PrimaryKeyValue value)
|
static OtsProtocol2.ColumnSchema |
buildColumnSchema(String name,
PrimaryKeyType type)
|
static OtsProtocol2.ColumnValue |
buildColumnValue(ColumnValue column)
|
static OtsProtocol2.ColumnValue |
buildColumnValue(PrimaryKeyValue primaryKey)
|
static byte[] |
buildCreateTableRequest(TableMeta tableMeta,
ReservedThroughput reservedThroughput)
|
static byte[] |
buildDeleteRowRequest(RowDeleteChange rowChange)
|
static byte[] |
buildDeleteTableRequest(String tableName)
|
static byte[] |
buildDescribeTableRequest(String tableName)
|
static byte[] |
buildGetRangeRequest(RangeRowQueryCriteria criteria)
|
static byte[] |
buildGetRowRequest(SingleRowQueryCriteria criteria)
|
static byte[] |
buildListTableRequest()
|
static byte[] |
buildPutRowRequest(RowPutChange rowChange)
|
static OtsProtocol2.Column |
buildRangeColumn(String name,
PrimaryKeyValue value)
|
static OtsProtocol2.Row |
buildRow(Map<String,PrimaryKeyValue> primaryKey,
Map<String,ColumnValue> attributeColumns)
|
static OtsProtocol2.TableMeta |
buildTableMeta(TableMeta tableMeta)
|
static byte[] |
buildUpdateRowRequest(RowUpdateChange rowChange)
|
static byte[] |
buildUpdateTableReservedThroughputRequest(String tableName,
ReservedThroughputChange rtChange)
|
static BatchGetRowResult.RowStatus |
parseBatchGetRowStatus(OtsProtocol2.RowInBatchGetRowResponse status)
|
static BatchWriteRowResult.RowStatus |
parseBatchWriteRowStatus(OtsProtocol2.RowInBatchWriteRowResponse status)
|
static ReservedThroughputDetails |
parseCapacityUnitDetails(OtsProtocol2.ReservedThroughputDetails capacityUnitDetails)
|
static ConsumedCapacity |
parseConsumedCapacity(OtsProtocol2.ConsumedCapacity consumed)
|
static Row |
parseGetRowResponse(OtsProtocol2.GetRowResponse response)
|
static Row |
parseRow(OtsProtocol2.Row pbRow)
|
static TableMeta |
parseTableMeta(OtsProtocol2.TableMeta meta)
|
static ColumnType |
toColumnType(OtsProtocol2.ColumnType type)
|
static ColumnValue |
toColumnValue(OtsProtocol2.ColumnValue value)
|
static OtsProtocol2.ColumnType |
toPBColumnType(ColumnType colType)
|
static OtsProtocol2.ColumnType |
toPBColumnType(PrimaryKeyType pkType)
|
static OtsProtocol2.Direction |
toPBDirection(Direction direction)
|
static OtsProtocol2.RowExistenceExpectation |
toPBRowExistenceExpectation(RowExistenceExpectation rowExistenceExpectation)
|
static PrimaryKeyType |
toPrimaryKeyType(OtsProtocol2.ColumnType type)
|
static PrimaryKeyValue |
toPrimaryKeyValue(OtsProtocol2.ColumnValue value)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OTSProtocolHelper
public OTSProtocolHelper()
toPBColumnType
public static OtsProtocol2.ColumnType toPBColumnType(PrimaryKeyType pkType)
toPrimaryKeyType
public static PrimaryKeyType toPrimaryKeyType(OtsProtocol2.ColumnType type)
toPBColumnType
public static OtsProtocol2.ColumnType toPBColumnType(ColumnType colType)
toColumnType
public static ColumnType toColumnType(OtsProtocol2.ColumnType type)
buildColumnValue
public static OtsProtocol2.ColumnValue buildColumnValue(PrimaryKeyValue primaryKey)
toPrimaryKeyValue
public static PrimaryKeyValue toPrimaryKeyValue(OtsProtocol2.ColumnValue value)
buildColumnValue
public static OtsProtocol2.ColumnValue buildColumnValue(ColumnValue column)
toColumnValue
public static ColumnValue toColumnValue(OtsProtocol2.ColumnValue value)
toPBRowExistenceExpectation
public static OtsProtocol2.RowExistenceExpectation toPBRowExistenceExpectation(RowExistenceExpectation rowExistenceExpectation)
buildColumn
public static OtsProtocol2.Column buildColumn(String name,
PrimaryKeyValue value)
buildColumn
public static OtsProtocol2.Column buildColumn(String name,
ColumnValue value)
buildColumnSchema
public static OtsProtocol2.ColumnSchema buildColumnSchema(String name,
PrimaryKeyType type)
buildTableMeta
public static OtsProtocol2.TableMeta buildTableMeta(TableMeta tableMeta)
buildGetRowRequest
public static byte[] buildGetRowRequest(SingleRowQueryCriteria criteria)
buildRow
public static OtsProtocol2.Row buildRow(Map<String,PrimaryKeyValue> primaryKey,
Map<String,ColumnValue> attributeColumns)
buildCreateTableRequest
public static byte[] buildCreateTableRequest(TableMeta tableMeta,
ReservedThroughput reservedThroughput)
buildDeleteTableRequest
public static byte[] buildDeleteTableRequest(String tableName)
buildDeleteRowRequest
public static byte[] buildDeleteRowRequest(RowDeleteChange rowChange)
buildPutRowRequest
public static byte[] buildPutRowRequest(RowPutChange rowChange)
parseCapacityUnitDetails
public static ReservedThroughputDetails parseCapacityUnitDetails(OtsProtocol2.ReservedThroughputDetails capacityUnitDetails)
parseTableMeta
public static TableMeta parseTableMeta(OtsProtocol2.TableMeta meta)
parseRow
public static Row parseRow(OtsProtocol2.Row pbRow)
parseGetRowResponse
public static Row parseGetRowResponse(OtsProtocol2.GetRowResponse response)
buildListTableRequest
public static byte[] buildListTableRequest()
buildDescribeTableRequest
public static byte[] buildDescribeTableRequest(String tableName)
buildUpdateTableReservedThroughputRequest
public static byte[] buildUpdateTableReservedThroughputRequest(String tableName,
ReservedThroughputChange rtChange)
buildUpdateRowRequest
public static byte[] buildUpdateRowRequest(RowUpdateChange rowChange)
toPBDirection
public static OtsProtocol2.Direction toPBDirection(Direction direction)
buildRangeColumn
public static OtsProtocol2.Column buildRangeColumn(String name,
PrimaryKeyValue value)
buildGetRangeRequest
public static byte[] buildGetRangeRequest(RangeRowQueryCriteria criteria)
buildBatchGetRowRequest
public static byte[] buildBatchGetRowRequest(Map<String,MultiRowQueryCriteria> criteriasGroupByTable)
buildBatchWriteRowRequest
public static byte[] buildBatchWriteRowRequest(Map<String,List<RowPutChange>> rowPutChangesGroupByTable,
Map<String,List<RowUpdateChange>> rowUpdateChangesGroupByTable,
Map<String,List<RowDeleteChange>> rowDeleteChangesGroupByTable)
parseConsumedCapacity
public static ConsumedCapacity parseConsumedCapacity(OtsProtocol2.ConsumedCapacity consumed)
parseBatchGetRowStatus
public static BatchGetRowResult.RowStatus parseBatchGetRowStatus(OtsProtocol2.RowInBatchGetRowResponse status)
parseBatchWriteRowStatus
public static BatchWriteRowResult.RowStatus parseBatchWriteRowStatus(OtsProtocol2.RowInBatchWriteRowResponse status)
Copyright © 2014. All Rights Reserved.