程序包 | 说明 |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
Table of Contents
Overview
Example API Usage
Overview
To administer HBase, create and drop tables, list and alter tables,
use
Admin . |
org.apache.hadoop.hbase.protobuf |
Holds classes generated from protobuf
src/main/protobuf definition files. |
org.apache.hadoop.hbase.shaded.protobuf |
限定符和类型 | 方法和说明 |
---|---|
static Put |
MetaTableAccessor.addLocation(Put p,
ServerName sn,
long openSeqNum,
int replicaId) |
static Put |
MetaTableAccessor.addRegionInfo(Put p,
RegionInfo hri) |
static Put |
MetaTableAccessor.makePutForReplicationBarrier(RegionInfo regionInfo,
long openSeqNum,
long ts) |
static Put |
MetaTableAccessor.makePutFromRegionInfo(RegionInfo regionInfo,
long ts)
Generates and returns a Put containing the region into for the catalog table
|
static Put |
MetaTableAccessor.makePutFromTableState(TableState state,
long ts)
Construct PUT for given state
|
限定符和类型 | 方法和说明 |
---|---|
static Put |
MetaTableAccessor.addLocation(Put p,
ServerName sn,
long openSeqNum,
int replicaId) |
static Put |
MetaTableAccessor.addRegionInfo(Put p,
RegionInfo hri) |
static void |
MetaTableAccessor.addReplicationBarrier(Put put,
long openSeqNum)
See class comment on SerialReplicationChecker
|
限定符和类型 | 方法和说明 |
---|---|
static void |
MetaTableAccessor.putsToMetaTable(Connection connection,
List<Put> ps)
Put the passed
ps to the hbase:meta table. |
限定符和类型 | 方法和说明 |
---|---|
Put |
Put.add(Cell cell)
Add the specified KeyValue to this Put operation.
|
Put |
Put.addColumn(byte[] family,
byte[] qualifier,
byte[] value)
Add the specified column and value to this Put operation.
|
Put |
Put.addColumn(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
Add the specified column and value, with the specified timestamp as
its version to this Put operation.
|
Put |
Put.addColumn(byte[] family,
ByteBuffer qualifier,
long ts,
ByteBuffer value)
Add the specified column and value, with the specified timestamp as
its version to this Put operation.
|
Put |
Put.addImmutable(byte[] family,
byte[] qualifier,
byte[] value)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
add(Cell) and CellBuilder instead |
Put |
Put.addImmutable(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
add(Cell) and CellBuilder instead |
Put |
Put.addImmutable(byte[] family,
ByteBuffer qualifier,
long ts,
ByteBuffer value)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
add(Cell) and CellBuilder instead |
Put |
Put.setACL(Map<String,Permission> perms) |
Put |
Put.setACL(String user,
Permission perms) |
Put |
Put.setAttribute(String name,
byte[] value) |
Put |
Put.setCellVisibility(CellVisibility expression) |
Put |
Put.setClusterIds(List<UUID> clusterIds) |
Put |
Put.setDurability(Durability d) |
Put |
Put.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
Put(byte[], long, NavigableMap) instead |
Put |
Put.setId(String id) |
Put |
Put.setPriority(int priority) |
Put |
Put.setTimestamp(long timestamp) |
Put |
Put.setTTL(long ttl) |
限定符和类型 | 方法和说明 |
---|---|
List<Put> |
HTableMultiplexer.put(byte[] tableName,
List<Put> puts)
已过时。
Use
HTableMultiplexer.put(TableName, List) instead. |
List<Put> |
HTableMultiplexer.put(TableName tableName,
List<Put> puts)
已过时。
The puts request will be buffered by their corresponding buffer queue.
|
限定符和类型 | 方法和说明 |
---|---|
void |
RowMutations.add(Put p)
已过时。
since 2.0 version and will be removed in 3.0 version.
use
RowMutations.add(Mutation) |
default boolean |
Table.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
已过时。
Since 2.0.0. Will be removed in 3.0.0. Use
Table.checkAndMutate(byte[], byte[]) |
boolean |
HTable.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
已过时。
|
default boolean |
Table.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put)
已过时。
Since 2.0.0. Will be removed in 3.0.0. Use
Table.checkAndMutate(byte[], byte[]) |
boolean |
HTable.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put)
已过时。
|
default boolean |
Table.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
byte[] value,
Put put)
已过时。
Since 2.0.0. Will be removed in 3.0.0. Use
Table.checkAndMutate(byte[], byte[]) |
boolean |
HTable.checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
byte[] value,
Put put)
已过时。
|
boolean |
HTableMultiplexer.put(byte[] tableName,
Put put)
已过时。
Use
HTableMultiplexer.put(TableName, Put) instead. |
boolean |
HTableMultiplexer.put(byte[] tableName,
Put put,
int retry)
已过时。
Use
HTableMultiplexer.put(TableName, Put) instead. |
default void |
Table.put(Put put)
Puts some data in the table.
|
CompletableFuture<Void> |
AsyncTable.put(Put put)
Puts some data to the table.
|
void |
HTable.put(Put put) |
boolean |
HTableMultiplexer.put(TableName tableName,
Put put)
已过时。
The put request will be buffered by its corresponding buffer queue.
|
boolean |
HTableMultiplexer.put(TableName tableName,
Put put,
int maxAttempts)
已过时。
The put request will be buffered by its corresponding buffer queue.
|
boolean |
Table.CheckAndMutateBuilder.thenPut(Put put) |
CompletableFuture<Boolean> |
AsyncTable.CheckAndMutateBuilder.thenPut(Put put) |
限定符和类型 | 方法和说明 |
---|---|
List<Put> |
HTableMultiplexer.put(byte[] tableName,
List<Put> puts)
已过时。
Use
HTableMultiplexer.put(TableName, List) instead. |
default void |
Table.put(List<Put> puts)
Batch puts the specified data into the table.
|
List<CompletableFuture<Void>> |
AsyncTable.put(List<Put> puts)
Puts some data in the table, in batch.
|
void |
HTable.put(List<Put> puts) |
List<Put> |
HTableMultiplexer.put(TableName tableName,
List<Put> puts)
已过时。
The puts request will be buffered by their corresponding buffer queue.
|
default CompletableFuture<Void> |
AsyncTable.putAll(List<Put> puts)
A simple version of batch put.
|
构造器和说明 |
---|
Put(Put putToCopy)
Copy constructor.
|
限定符和类型 | 方法和说明 |
---|---|
static Put |
ProtobufUtil.toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto)
Convert a protocol buffer Mutate to a Put.
|
static Put |
ProtobufUtil.toPut(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
Convert a protocol buffer Mutate to a Put.
|
限定符和类型 | 方法和说明 |
---|---|
static Put |
ProtobufUtil.toPut(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutationProto proto)
Convert a protocol buffer Mutate to a Put.
|
static Put |
ProtobufUtil.toPut(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutationProto proto,
CellScanner cellScanner)
Convert a protocol buffer Mutate to a Put.
|
限定符和类型 | 方法和说明 |
---|---|
static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest |
RequestConverter.buildMutateRequest(byte[] regionName,
byte[] row,
byte[] family,
byte[] qualifier,
ByteArrayComparable comparator,
org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.CompareType compareType,
TimeRange timeRange,
Put put)
Create a protocol buffer MutateRequest for a conditioned put
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MutateRequest |
RequestConverter.buildMutateRequest(byte[] regionName,
Put put)
Create a protocol buffer MutateRequest for a put
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.