public static interface HbaseSessions.HbaseSession<R>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(String table,
byte[] family,
byte[] rowkey)
Delete a record by rowkey from a table
|
R |
get(String table,
byte[] family,
byte[] rowkey)
Get a record by rowkey from a table
|
R |
get(String table,
byte[] family,
byte[] rowkey,
byte[] qualifier)
Get a record by rowkey and qualifier from a table
|
R |
get(String table,
byte[] family,
Set<byte[]> rowkeys)
Get multi records by rowkeys from a table
|
long |
increase(String table,
byte[] family,
byte[] rowkey,
byte[] qualifier,
long value)
Increase a counter by rowkey and qualifier to a table
|
void |
put(String table,
byte[] family,
byte[] rowkey,
byte[] qualifier,
byte[] value)
Add a row record to a table(can be used when adding an index)
|
void |
put(String table,
byte[] family,
byte[] rowkey,
Collection<BackendEntry.BackendColumn> columns)
Add a row record to a table
|
default void |
remove(String table,
byte[] family,
byte[] rowkey,
byte[] qualifier)
Delete a record by rowkey and qualifier from a table
|
void |
remove(String table,
byte[] family,
byte[] rowkey,
byte[] qualifier,
boolean latestVersion)
Delete a record by rowkey and qualifier from a table,
just delete the latest version of the specified column if need
|
default R |
scan(String table,
byte[] prefix)
Scan records by rowkey prefix from a table
|
default R |
scan(String table,
byte[] startRow,
boolean inclusiveStart,
byte[] prefix)
Scan records by rowkey start and prefix from a table
|
default R |
scan(String table,
byte[] startRow,
boolean inclusiveStart,
byte[] stopRow,
boolean inclusiveStop)
Scan records by rowkey range from a table
|
default R |
scan(String table,
byte[] startRow,
byte[] stopRow)
Scan records by rowkey range from a table
|
default R |
scan(String table,
long limit)
Scan all records from a table
|
R |
scan(String table,
org.apache.hadoop.hbase.client.Scan scan)
Inner scan: send scan request to HBase and get iterator
|
default R |
scan(String table,
Set<byte[]> prefixs)
Scan records by multi rowkey prefixs from a table
|
void put(String table, byte[] family, byte[] rowkey, Collection<BackendEntry.BackendColumn> columns)
void put(String table, byte[] family, byte[] rowkey, byte[] qualifier, byte[] value)
default void remove(String table, byte[] family, byte[] rowkey, byte[] qualifier)
void remove(String table, byte[] family, byte[] rowkey, byte[] qualifier, boolean latestVersion)
void delete(String table, byte[] family, byte[] rowkey)
R get(String table, byte[] family, byte[] rowkey, byte[] qualifier)
R get(String table, byte[] family, Set<byte[]> rowkeys)
default R scan(String table, Set<byte[]> prefixs)
default R scan(String table, byte[] startRow, boolean inclusiveStart, byte[] prefix)
default R scan(String table, byte[] startRow, byte[] stopRow)
default R scan(String table, byte[] startRow, boolean inclusiveStart, byte[] stopRow, boolean inclusiveStop)
R scan(String table, org.apache.hadoop.hbase.client.Scan scan)
long increase(String table, byte[] family, byte[] rowkey, byte[] qualifier, long value)
Copyright © 2017–2021. All rights reserved.