Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.mapreduce |
Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.protobuf |
Holds classes generated from protobuf
src/main/protobuf definition files. |
org.apache.hadoop.hbase.quotas | |
org.apache.hadoop.hbase.quotas.policies | |
org.apache.hadoop.hbase.regionserver | |
org.apache.hadoop.hbase.security.access | |
org.apache.hadoop.hbase.security.visibility | |
org.apache.hadoop.hbase.shaded.protobuf | |
org.apache.hadoop.hbase.tool | |
org.apache.hadoop.hbase.wal |
Modifier and Type | Method and Description |
---|---|
static void |
MetaTableAccessor.mutateMetaTable(Connection connection,
List<Mutation> mutations)
Execute the passed
mutations against hbase:meta table. |
Modifier and Type | Class and Description |
---|---|
class |
Append
Performs Append operations on a single row.
|
class |
Delete
Used to perform Delete operations on a single row.
|
class |
Increment
Used to perform Increment operations on a single row.
|
class |
Put
Used to perform Put operations for a single row.
|
Modifier and Type | Method and Description |
---|---|
Mutation |
Mutation.setACL(Map<String,Permission> perms) |
Mutation |
Mutation.setACL(String user,
Permission perms) |
Mutation |
Mutation.setCellVisibility(CellVisibility expression)
Sets the visibility expression associated with cells in this Mutation.
|
Mutation |
Mutation.setClusterIds(List<UUID> clusterIds)
Marks that the clusters with the given clusterIds have consumed the mutation
|
Mutation |
Mutation.setDurability(Durability d)
Set the durability for this mutation
|
Mutation |
Mutation.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
Mutation(byte[], long, NavigableMap) instead |
protected Mutation |
Mutation.setReturnResults(boolean returnResults) |
Mutation |
Mutation.setTimestamp(long timestamp)
Set the timestamp of the delete.
|
Mutation |
Mutation.setTTL(long ttl)
Set the TTL desired for the result of the mutation, in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
List<Mutation> |
RowMutations.getMutations() |
Modifier and Type | Method and Description |
---|---|
RowMutations |
RowMutations.add(Mutation mutation)
|
void |
BufferedMutatorImpl.mutate(Mutation m) |
default CompletableFuture<Void> |
AsyncBufferedMutator.mutate(Mutation mutation)
Sends a
Mutation to the table. |
void |
BufferedMutator.mutate(Mutation mutation)
Sends a
Mutation to the table. |
Modifier and Type | Method and Description |
---|---|
RowMutations |
RowMutations.add(List<? extends Mutation> mutations)
|
void |
BufferedMutatorImpl.mutate(List<? extends Mutation> ms) |
List<CompletableFuture<Void>> |
AsyncBufferedMutator.mutate(List<? extends Mutation> mutations)
Send some
Mutation s to the table. |
void |
BufferedMutator.mutate(List<? extends Mutation> mutations)
Send some
Mutation s to the table. |
static RowMutations |
RowMutations.of(List<? extends Mutation> mutations)
Create a
RowMutations with the specified mutations. |
Constructor and Description |
---|
Mutation(Mutation clone) |
Modifier and Type | Method and Description |
---|---|
default Cell |
RegionObserver.postMutationBeforeWAL(ObserverContext<RegionCoprocessorEnvironment> ctx,
RegionObserver.MutationType opType,
Mutation mutation,
Cell oldCell,
Cell newCell)
Called after a new cell has been created during an increment operation, but before
it is committed to the WAL or memstore.
|
default void |
RegionObserver.prePrepareTimeStampForDeleteVersion(ObserverContext<RegionCoprocessorEnvironment> c,
Mutation mutation,
Cell cell,
byte[] byteNow,
Get get)
Deprecated.
Since hbase-2.0.0. No replacement. To be removed in hbase-3.0.0 and replaced
with something that doesn't expose IntefaceAudience.Private classes.
|
Modifier and Type | Method and Description |
---|---|
default void |
RegionObserver.postBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp)
This will be called after applying a batch of Mutations on a region.
|
default void |
RegionObserver.postBatchMutateIndispensably(ObserverContext<RegionCoprocessorEnvironment> ctx,
MiniBatchOperationInProgress<Mutation> miniBatchOp,
boolean success)
Called after the completion of batch put/delete and will be called even if the batch operation
fails.
|
default void |
RegionObserver.preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp)
This will be called for every batch mutation operation happening at the server.
|
default void |
MasterObserver.preMergeRegionsCommitAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
RegionInfo[] regionsToMerge,
List<Mutation> metaEntries)
This will be called before update META step as part of regions merge transaction.
|
default void |
MasterObserver.preSplitRegionBeforeMETAAction(ObserverContext<MasterCoprocessorEnvironment> ctx,
byte[] splitKey,
List<Mutation> metaEntries)
This will be called before update META step as part of split transaction.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.serializer.Deserializer<Mutation> |
MutationSerialization.getDeserializer(Class<Mutation> c) |
org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Mutation> |
MultiTableOutputFormat.getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation> |
TableOutputFormat.getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Creates a new record writer.
|
org.apache.hadoop.io.serializer.Serializer<Mutation> |
MutationSerialization.getSerializer(Class<Mutation> c) |
Modifier and Type | Method and Description |
---|---|
void |
MultiTableOutputFormat.MultiTableRecordWriter.write(ImmutableBytesWritable tableName,
Mutation action)
Writes an action (Put or Delete) to the specified table.
|
void |
TableOutputFormat.TableRecordWriter.write(KEY key,
Mutation value)
Writes a key/value pair into the table.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.serializer.Deserializer<Mutation> |
MutationSerialization.getDeserializer(Class<Mutation> c) |
org.apache.hadoop.io.serializer.Serializer<Mutation> |
MutationSerialization.getSerializer(Class<Mutation> c) |
void |
IdentityTableReducer.reduce(org.apache.hadoop.io.Writable key,
Iterable<Mutation> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
Writes each given record, consisting of the row key and the given values,
to the configured
OutputFormat . |
Modifier and Type | Method and Description |
---|---|
void |
MasterCoprocessorHost.preMergeRegionsCommit(RegionInfo[] regionsToMerge,
List<Mutation> metaEntries,
User user)
Invoked before merge regions operation writes the new region to hbase:meta
|
void |
MasterCoprocessorHost.preSplitBeforeMETAAction(byte[] splitKey,
List<Mutation> metaEntries,
User user)
This will be called before update META step as part of split table region procedure.
|
Modifier and Type | Method and Description |
---|---|
static Mutation |
ProtobufUtil.toMutation(ClientProtos.MutationProto proto)
Convert a MutateRequest to Mutation
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultOperationQuota.addMutation(Mutation mutation) |
void |
OperationQuota.addMutation(Mutation mutation)
Add a mutation result.
|
static long |
QuotaUtil.calculateMutationSize(Mutation mutation) |
void |
SpaceViolationPolicyEnforcement.check(Mutation m)
Checks the given
Mutation against this policy. |
Modifier and Type | Method and Description |
---|---|
void |
NoWritesViolationPolicyEnforcement.check(Mutation m) |
void |
MissingSnapshotViolationPolicyEnforcement.check(Mutation m) |
void |
DisableTableViolationPolicyEnforcement.check(Mutation m) |
void |
DefaultViolationPolicyEnforcement.check(Mutation m) |
void |
NoInsertsViolationPolicyEnforcement.check(Mutation m) |
Modifier and Type | Method and Description |
---|---|
Mutation[] |
MiniBatchOperationInProgress.getOperationsFromCoprocessors(int index) |
Modifier and Type | Method and Description |
---|---|
void |
MiniBatchOperationInProgress.addOperationsFromCP(int index,
Mutation[] newOperations)
Add more Mutations corresponding to the Mutation at the given index to be committed atomically
in the same batch.
|
OperationStatus[] |
HRegion.batchMutate(Mutation[] mutations) |
OperationStatus[] |
Region.batchMutate(Mutation[] mutations)
Perform a batch of mutations.
|
OperationStatus[] |
HRegion.batchMutate(Mutation[] mutations,
boolean atomic,
long nonceGroup,
long nonce) |
OperationStatus[] |
HRegion.batchMutate(Mutation[] mutations,
long nonceGroup,
long nonce) |
default boolean |
Region.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Mutation mutation)
Atomically checks if a row/family/qualifier value matches the expected value and if it does,
it performs the mutation.
|
boolean |
HRegion.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
Mutation mutation) |
boolean |
Region.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
Mutation mutation)
Atomically checks if a row/family/qualifier value matches the expected value and if it does,
it performs the mutation.
|
Cell |
RegionCoprocessorHost.postMutationBeforeWAL(RegionObserver.MutationType opType,
Mutation mutation,
Cell oldCell,
Cell newCell) |
void |
HRegion.prepareDeleteTimestamps(Mutation mutation,
Map<byte[],List<Cell>> familyMap,
byte[] byteNow)
Set up correct timestamps in the KVs in Delete object.
|
boolean |
RegionCoprocessorHost.prePrepareTimeStampForDeleteVersion(Mutation mutation,
Cell kv,
byte[] byteNow,
Get get)
Deprecated.
In hbase-2.0.0. Will be removed in hbase-3.0.0. Added explicitly for a single
Coprocessor for its needs only. Will be removed.
|
Modifier and Type | Method and Description |
---|---|
void |
HRegion.mutateRowsWithLocks(Collection<Mutation> mutations,
Collection<byte[]> rowsToLock,
long nonceGroup,
long nonce)
Perform atomic (all or none) mutations within the region.
|
void |
Region.mutateRowsWithLocks(Collection<Mutation> mutations,
Collection<byte[]> rowsToLock,
long nonceGroup,
long nonce)
Perform atomic mutations within the region.
|
void |
RegionCoprocessorHost.postBatchMutate(MiniBatchOperationInProgress<Mutation> miniBatchOp) |
void |
RegionCoprocessorHost.postBatchMutateIndispensably(MiniBatchOperationInProgress<Mutation> miniBatchOp,
boolean success) |
void |
RegionCoprocessorHost.preBatchMutate(MiniBatchOperationInProgress<Mutation> miniBatchOp) |
void |
RowProcessor.process(long now,
HRegion region,
List<Mutation> mutations,
WALEdit walEdit)
Deprecated.
HRegion handles the locks and MVCC and invokes this method properly.
|
Modifier and Type | Method and Description |
---|---|
Cell |
AccessController.postMutationBeforeWAL(ObserverContext<RegionCoprocessorEnvironment> ctx,
RegionObserver.MutationType opType,
Mutation mutation,
Cell oldCell,
Cell newCell) |
Modifier and Type | Method and Description |
---|---|
void |
AccessController.preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp) |
Modifier and Type | Method and Description |
---|---|
Cell |
VisibilityController.postMutationBeforeWAL(ObserverContext<RegionCoprocessorEnvironment> ctx,
RegionObserver.MutationType opType,
Mutation mutation,
Cell oldCell,
Cell newCell) |
void |
VisibilityController.prePrepareTimeStampForDeleteVersion(ObserverContext<RegionCoprocessorEnvironment> ctx,
Mutation delete,
Cell cell,
byte[] byteNow,
Get get) |
Modifier and Type | Method and Description |
---|---|
void |
VisibilityController.preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp) |
Modifier and Type | Method and Description |
---|---|
static Mutation |
ProtobufUtil.toMutation(ClientProtos.MutationProto proto)
Convert a MutateRequest to Mutation
|
Modifier and Type | Method and Description |
---|---|
void |
WriteSinkCoprocessor.preBatchMutate(ObserverContext<RegionCoprocessorEnvironment> c,
MiniBatchOperationInProgress<Mutation> miniBatchOp) |
Modifier and Type | Field and Description |
---|---|
Mutation |
WALSplitter.MutationReplay.mutation |
Constructor and Description |
---|
MutationReplay(ClientProtos.MutationProto.MutationType type,
Mutation mutation,
long nonceGroup,
long nonce) |
Copyright © 2007–2019 Cloudera. All rights reserved.