public class ElementConvertor extends Object
| Constructor and Description |
|---|
ElementConvertor() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.client.Delete |
toHBaseDelete(com.alicloud.tablestore.adaptor.struct.ODelete in,
ColumnMapping columnMapping) |
static List<org.apache.hadoop.hbase.client.Delete> |
toHBaseDeletes(List<com.alicloud.tablestore.adaptor.struct.ODelete> in,
ColumnMapping columnMapping) |
static org.apache.hadoop.hbase.client.Put |
toHBasePut(com.alicloud.tablestore.adaptor.struct.OPut in,
ColumnMapping columnMapping)
Creates a
Put (HBase) from a OPut (OTS) |
static List<org.apache.hadoop.hbase.client.Put> |
toHBasePuts(List<com.alicloud.tablestore.adaptor.struct.OPut> in,
ColumnMapping columnMapping)
Converts multiple
OPuts (OTS) into a list of Puts (HBase). |
static org.apache.hadoop.hbase.client.Result |
toHBaseResult(com.alicloud.tablestore.adaptor.struct.OResult in,
ColumnMapping columnMapping)
Create a
Result (HBase) from a OResult (OTS) |
static org.apache.hadoop.hbase.client.Result[] |
toHBaseResults(List<com.alicloud.tablestore.adaptor.struct.OResult> in,
ColumnMapping columnMapping)
Converts multiple
OResults (OTS) into a list of Results
(HBase). |
static org.apache.hadoop.hbase.HTableDescriptor |
toHbaseTableDescriptor(com.alicloud.tablestore.adaptor.struct.OTableDescriptor in,
ColumnMapping columnMapping) |
static com.alicloud.openservices.tablestore.model.Condition |
toOtsCondition(byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
ColumnMapping columnMapping) |
static com.alicloud.tablestore.adaptor.struct.ODelete |
toOtsDelete(org.apache.hadoop.hbase.client.Delete in,
ColumnMapping columnMapping)
Creates a
ODelete (Tablestore) from a Delete (HBase). |
static List<com.alicloud.tablestore.adaptor.struct.ODelete> |
toOtsDeleteList(List<org.apache.hadoop.hbase.client.Delete> in,
ColumnMapping columnMapping)
Converts multiple
Deletes (HBase) into a list of ODeletes
(OTS). |
static com.alicloud.tablestore.adaptor.struct.OGet |
toOtsGet(org.apache.hadoop.hbase.client.Get in,
ColumnMapping columnMapping)
Creates a
OGet (OTS) from a Get (HBase). |
static List<com.alicloud.tablestore.adaptor.struct.OGet> |
toOtsGets(List<org.apache.hadoop.hbase.client.Get> in,
ColumnMapping columnMapping)
Converts multiple
Gets (HBase) into a list of OGets (OTS). |
static com.alicloud.tablestore.adaptor.struct.OPut |
toOtsPut(org.apache.hadoop.hbase.client.Put in,
ColumnMapping columnMapping)
Creates a
OPut (OTS) from a Put (HBase) |
static List<com.alicloud.tablestore.adaptor.struct.OPut> |
toOtsPuts(List<org.apache.hadoop.hbase.client.Put> in,
ColumnMapping columnMapping)
Converts multiple
Puts (HBase) into a list of OPuts (OTS). |
static com.alicloud.tablestore.adaptor.struct.OScan |
toOtsScan(org.apache.hadoop.hbase.client.Scan in,
ColumnMapping columnMapping) |
static com.alicloud.tablestore.adaptor.struct.OUpdate |
toOtsUpdate(org.apache.hadoop.hbase.client.RowMutations in,
ColumnMapping columnMapping) |
public static com.alicloud.tablestore.adaptor.struct.ODelete toOtsDelete(org.apache.hadoop.hbase.client.Delete in,
ColumnMapping columnMapping)
ODelete (Tablestore) from a Delete (HBase).in - the Delete to convertODeletepublic static List<org.apache.hadoop.hbase.client.Delete> toHBaseDeletes(List<com.alicloud.tablestore.adaptor.struct.ODelete> in, ColumnMapping columnMapping)
public static org.apache.hadoop.hbase.client.Delete toHBaseDelete(com.alicloud.tablestore.adaptor.struct.ODelete in,
ColumnMapping columnMapping)
public static List<com.alicloud.tablestore.adaptor.struct.ODelete> toOtsDeleteList(List<org.apache.hadoop.hbase.client.Delete> in, ColumnMapping columnMapping)
Deletes (HBase) into a list of ODeletes
(OTS).in - list of Deletes to convertODeletestoOtsDelete(Delete, ColumnMapping)public static com.alicloud.tablestore.adaptor.struct.OGet toOtsGet(org.apache.hadoop.hbase.client.Get in,
ColumnMapping columnMapping)
throws IOException,
UnsupportedOperationException
OGet (OTS) from a Get (HBase).in - the Get to convertOGet objectIOExceptionUnsupportedOperationExceptionpublic static List<org.apache.hadoop.hbase.client.Put> toHBasePuts(List<com.alicloud.tablestore.adaptor.struct.OPut> in, ColumnMapping columnMapping)
OPuts (OTS) into a list of Puts (HBase).in - list of OPuts to convertPutspublic static org.apache.hadoop.hbase.client.Put toHBasePut(com.alicloud.tablestore.adaptor.struct.OPut in,
ColumnMapping columnMapping)
Put (HBase) from a OPut (OTS)in - the OPut to convertPutpublic static List<com.alicloud.tablestore.adaptor.struct.OPut> toOtsPuts(List<org.apache.hadoop.hbase.client.Put> in, ColumnMapping columnMapping)
Puts (HBase) into a list of OPuts (OTS).in - list of Puts to convertOPutstoOtsPut(Put, ColumnMapping)public static com.alicloud.tablestore.adaptor.struct.OPut toOtsPut(org.apache.hadoop.hbase.client.Put in,
ColumnMapping columnMapping)
OPut (OTS) from a Put (HBase)in - the Put to convertOPutpublic static com.alicloud.tablestore.adaptor.struct.OUpdate toOtsUpdate(org.apache.hadoop.hbase.client.RowMutations in,
ColumnMapping columnMapping)
throws IOException
IOExceptionpublic static com.alicloud.openservices.tablestore.model.Condition toOtsCondition(byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
ColumnMapping columnMapping)
public static com.alicloud.tablestore.adaptor.struct.OScan toOtsScan(org.apache.hadoop.hbase.client.Scan in,
ColumnMapping columnMapping)
throws IOException
IOExceptionpublic static List<com.alicloud.tablestore.adaptor.struct.OGet> toOtsGets(List<org.apache.hadoop.hbase.client.Get> in, ColumnMapping columnMapping) throws IOException
Gets (HBase) into a list of OGets (OTS).in - list of Gets to convertOGet objectsIOExceptiontoOtsGet(Get, ColumnMapping)public static org.apache.hadoop.hbase.client.Result[] toHBaseResults(List<com.alicloud.tablestore.adaptor.struct.OResult> in, ColumnMapping columnMapping)
OResults (OTS) into a list of Results
(HBase).in - array of OResults to convertResultstoHBaseResult(OResult, ColumnMapping)public static org.apache.hadoop.hbase.client.Result toHBaseResult(com.alicloud.tablestore.adaptor.struct.OResult in,
ColumnMapping columnMapping)
Result (HBase) from a OResult (OTS)in - public static org.apache.hadoop.hbase.HTableDescriptor toHbaseTableDescriptor(com.alicloud.tablestore.adaptor.struct.OTableDescriptor in,
ColumnMapping columnMapping)
Copyright © 2024. All Rights Reserved.