Modifier and Type | Method and Description |
---|---|
static Result |
MetaTableAccessor.getRegionResult(Connection connection,
byte[] regionName)
Gets the result in hbase:meta for the specified region.
|
Modifier and Type | Method and Description |
---|---|
static List<Result> |
MetaTableAccessor.fullScan(Connection connection,
MetaTableAccessor.QueryType type)
Performs a full scan of
hbase:meta . |
static List<Result> |
MetaTableAccessor.fullScanRegions(Connection connection)
Performs a full scan of
hbase:meta for regions. |
static NavigableMap<RegionInfo,Result> |
MetaTableAccessor.getServerUserRegions(Connection connection,
ServerName serverName) |
Modifier and Type | Method and Description |
---|---|
static PairOfSameType<RegionInfo> |
MetaTableAccessor.getDaughterRegions(Result data)
Returns the daughter regions by reading the corresponding columns of the catalog table
Result.
|
static PairOfSameType<RegionInfo> |
MetaTableAccessor.getMergeRegions(Result data)
Returns the merge regions by reading the corresponding columns of the catalog table
Result.
|
static RegionInfo |
MetaTableAccessor.getRegionInfo(Result data)
Returns RegionInfo object from the column
HConstants.CATALOG_FAMILY:HConstants.REGIONINFO_QUALIFIER of the catalog
table Result.
|
static RegionLocations |
MetaTableAccessor.getRegionLocations(Result r)
Returns an HRegionLocationList extracted from the result.
|
static long[] |
MetaTableAccessor.getReplicationBarriers(Result result) |
static ServerName |
MetaTableAccessor.getServerName(Result r,
int replicaId)
Returns a
ServerName from catalog table Result . |
static TableState |
MetaTableAccessor.getTableState(Result r)
Decode table state from META Result.
|
boolean |
MetaTableAccessor.Visitor.visit(Result r)
Visit the catalog table row.
|
boolean |
MetaTableAccessor.DefaultVisitorBase.visit(Result rowResult) |
boolean |
MetaTableAccessor.TableVisitorBase.visit(Result rowResult) |
abstract boolean |
MetaTableAccessor.DefaultVisitorBase.visitInternal(Result rowResult) |
Modifier and Type | Field and Description |
---|---|
static Result |
Result.EMPTY_RESULT |
protected Result |
ClientScanner.lastResult |
Modifier and Type | Field and Description |
---|---|
protected Queue<Result> |
ClientScanner.cache |
Modifier and Type | Method and Description |
---|---|
Result[] |
BatchScanResultCache.addAndGet(Result[] results,
boolean isHeartbeatMessage) |
Result |
HTable.append(Append append) |
default Result |
Table.append(Append append)
Appends values to one or more columns within a single row.
|
Result |
RpcRetryingCallerWithReadReplicas.call(int operationTimeout)
Algo:
- we put the query into the execution pool.
|
static Result |
Result.create(Cell[] cells)
Instantiate a Result with the specified array of KeyValues.
|
static Result |
Result.create(Cell[] cells,
Boolean exists,
boolean stale) |
static Result |
Result.create(Cell[] cells,
Boolean exists,
boolean stale,
boolean mayHaveMoreCellsInRow) |
static Result |
Result.create(List<Cell> cells)
Instantiate a Result with the specified List of KeyValues.
|
static Result |
Result.create(List<Cell> cells,
Boolean exists) |
static Result |
Result.create(List<Cell> cells,
Boolean exists,
boolean stale) |
static Result |
Result.create(List<Cell> cells,
Boolean exists,
boolean stale,
boolean mayHaveMoreCellsInRow) |
static Result |
Result.createCompleteResult(Iterable<Result> partialResults)
Forms a single result from the partial results in the partialResults list.
|
static Result |
Result.createCursorResult(Cursor cursor) |
Result |
HTable.get(Get get) |
default Result |
Table.get(Get get)
Extracts certain cells from a given row.
|
Result[] |
HTable.get(List<Get> gets) |
default Result[] |
Table.get(List<Get> gets)
Extracts specified cells from the given rows, as a batch.
|
Result |
SingleResponse.Entry.getResult() |
Result |
HTable.increment(Increment increment) |
default Result |
Table.increment(Increment increment)
Increments one or more columns within a single row.
|
Result |
ClientSideRegionScanner.next() |
Result |
TableSnapshotScanner.next() |
Result |
ClientAsyncPrefetchScanner.next() |
Result |
ClientScanner.next() |
Result |
ResultScanner.next()
Grab the next row's worth of values.
|
default Result[] |
ResultScanner.next(int nbRows)
Get nbRows rows.
|
protected Result |
ClientScanner.nextWithSyncCache() |
protected Result[] |
ScannerCallable.rpcCall() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Result> |
AsyncTable.append(Append append)
Appends values to one or more columns within a single row.
|
CompletableFuture<Result> |
AsyncTable.get(Get get)
Extracts certain cells from a given row.
|
List<CompletableFuture<Result>> |
AsyncTable.get(List<Get> gets)
Extracts certain cells from the given rows, in batch.
|
default CompletableFuture<List<Result>> |
AsyncTable.getAll(List<Get> gets)
A simple version for batch get.
|
CompletableFuture<Result> |
AsyncTable.increment(Increment increment)
Increments one or more columns within a single row.
|
default Iterator<Result> |
ResultScanner.iterator() |
CompletableFuture<List<Result>> |
AsyncTable.scanAll(Scan scan)
Return all the results that match the given scan object.
|
Modifier and Type | Method and Description |
---|---|
Result[] |
BatchScanResultCache.addAndGet(Result[] results,
boolean isHeartbeatMessage) |
static void |
Result.compareResults(Result res1,
Result res2)
Does a deep comparison of two Results, down to the byte arrays.
|
void |
Result.copyFrom(Result other)
Copy another Result into this one.
|
static long |
Result.getTotalSizeOfCells(Result result)
Get total size of raw cells
|
boolean |
ScanResultConsumer.onNext(Result result) |
void |
AdvancedScanResultConsumer.onNext(Result[] results,
AdvancedScanResultConsumer.ScanController controller)
Indicate that we have receive some data.
|
void |
SingleResponse.Entry.setResult(Result result) |
Modifier and Type | Method and Description |
---|---|
static Result |
Result.createCompleteResult(Iterable<Result> partialResults)
Forms a single result from the partial results in the partialResults list.
|
Modifier and Type | Method and Description |
---|---|
default Result |
RegionObserver.postAppend(ObserverContext<RegionCoprocessorEnvironment> c,
Append append,
Result result)
Called after Append
|
default Result |
RegionObserver.postIncrement(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment,
Result result)
Called after increment
|
default Result |
RegionObserver.preAppend(ObserverContext<RegionCoprocessorEnvironment> c,
Append append)
Called before Append.
|
default Result |
RegionObserver.preAppendAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
Append append)
Called before Append but after acquiring rowlock.
|
default Result |
RegionObserver.preIncrement(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment)
Called before Increment.
|
default Result |
RegionObserver.preIncrementAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment)
Called before Increment but after acquiring rowlock.
|
Modifier and Type | Method and Description |
---|---|
default Result |
RegionObserver.postAppend(ObserverContext<RegionCoprocessorEnvironment> c,
Append append,
Result result)
Called after Append
|
default Result |
RegionObserver.postIncrement(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment,
Result result)
Called after increment
|
Modifier and Type | Method and Description |
---|---|
default boolean |
RegionObserver.postScannerNext(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s,
List<Result> result,
int limit,
boolean hasNext)
Called after the client asks for the next row on a scanner.
|
default boolean |
RegionObserver.preScannerNext(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s,
List<Result> result,
int limit,
boolean hasNext)
Called before the client asks for the next row on a scanner.
|
Modifier and Type | Method and Description |
---|---|
Result |
WriteHeavyIncrementObserver.preIncrement(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment) |
Modifier and Type | Method and Description |
---|---|
Result |
TableRecordReaderImpl.createValue() |
Result |
TableRecordReader.createValue() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result> |
TableInputFormatBase.getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter)
Builds a TableRecordReader.
|
org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result> |
TableSnapshotInputFormat.getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter) |
org.apache.hadoop.mapred.RecordReader<ImmutableBytesWritable,Result> |
MultiTableSnapshotInputFormat.getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
protected byte[][] |
GroupingTableMap.extractKeyValues(Result r)
Extract columns values from the current record.
|
void |
IdentityTableMap.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Pass the key, value to reduce
|
void |
GroupingTableMap.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Extract the grouping columns from value to construct a new key.
|
boolean |
TableRecordReaderImpl.next(ImmutableBytesWritable key,
Result value) |
boolean |
TableRecordReader.next(ImmutableBytesWritable key,
Result value) |
Modifier and Type | Method and Description |
---|---|
void |
IdentityTableMap.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Pass the key, value to reduce
|
void |
GroupingTableMap.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapred.OutputCollector<ImmutableBytesWritable,Result> output,
org.apache.hadoop.mapred.Reporter reporter)
Extract the grouping columns from value to construct a new key.
|
Modifier and Type | Method and Description |
---|---|
Result |
TableRecordReaderImpl.getCurrentValue()
Returns the current value.
|
Result |
TableRecordReader.getCurrentValue()
Returns the current value.
|
Result |
TableSnapshotInputFormatImpl.RecordReader.getCurrentValue() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result> |
TableSnapshotInputFormat.createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result> |
TableInputFormatBase.createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Builds a
TableRecordReader . |
org.apache.hadoop.mapreduce.RecordReader<ImmutableBytesWritable,Result> |
MultiTableInputFormatBase.createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Builds a TableRecordReader.
|
org.apache.hadoop.io.serializer.Deserializer<Result> |
ResultSerialization.getDeserializer(Class<Result> c) |
static <K2,V2> Class<org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,K2,V2>> |
MultithreadedTableMapper.getMapperClass(org.apache.hadoop.mapreduce.JobContext job)
Get the application's mapper class.
|
org.apache.hadoop.io.serializer.Serializer<Result> |
ResultSerialization.getSerializer(Class<Result> c) |
Modifier and Type | Method and Description |
---|---|
protected byte[][] |
GroupingTableMapper.extractKeyValues(Result r)
Extract columns values from the current record.
|
void |
Import.CellImporter.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
HashTable.HashMapper.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
Import.KeyValueImporter.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Deprecated.
|
protected void |
SyncTable.SyncMapper.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
Import.Importer.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
IndexBuilder.Map.map(ImmutableBytesWritable rowKey,
Result result,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
IdentityTableMapper.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Pass the key, value to reduce.
|
void |
GroupingTableMapper.map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Extract the grouping columns from value to construct a new key.
|
void |
Import.CellSortImporter.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
Import.KeyValueSortImporter.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Deprecated.
|
protected void |
Import.Importer.processKV(ImmutableBytesWritable key,
Result result,
org.apache.hadoop.mapreduce.Mapper.Context context,
Put put,
Delete delete) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.serializer.Deserializer<Result> |
ResultSerialization.getDeserializer(Class<Result> c) |
org.apache.hadoop.io.serializer.Serializer<Result> |
ResultSerialization.getSerializer(Class<Result> c) |
static <K2,V2> void |
MultithreadedTableMapper.setMapperClass(org.apache.hadoop.mapreduce.Job job,
Class<? extends org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,K2,V2>> cls)
Set the application's mapper class.
|
Modifier and Type | Method and Description |
---|---|
void |
VerifyReplication.Verifier.map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Map method that compares every scanned row with the equivalent from
a distant cluster.
|
Modifier and Type | Method and Description |
---|---|
static RegionState.State |
RegionStateStore.getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result . |
void |
RegionStateStore.RegionStateVisitor.visitRegionState(Result result,
RegionInfo regionInfo,
RegionState.State state,
ServerName regionLocation,
ServerName lastHost,
long openSeqNum) |
Modifier and Type | Method and Description |
---|---|
static Result |
ProtobufUtil.toResult(ClientProtos.Result proto)
Convert a protocol buffer Result to a client Result
|
static Result |
ProtobufUtil.toResult(ClientProtos.Result proto,
CellScanner scanner)
Convert a protocol buffer Result to a client Result
|
Modifier and Type | Method and Description |
---|---|
static ClientProtos.Result |
ProtobufUtil.toResult(Result result)
Convert a client Result to a protocol buffer Result
|
static ClientProtos.Result |
ProtobufUtil.toResultNoData(Result result)
Convert a client Result to a protocol buffer Result.
|
Modifier and Type | Method and Description |
---|---|
protected static Result |
QuotaTableUtil.doGet(Connection connection,
Get get) |
protected static Result[] |
QuotaTableUtil.doGet(Connection connection,
List<Get> gets) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultOperationQuota.addGetResult(Result result) |
void |
OperationQuota.addGetResult(Result result)
Add a get result.
|
static long |
QuotaUtil.calculateResultSize(Result result) |
static void |
QuotaTableUtil.extractQuotaSnapshot(Result result,
Map<TableName,SpaceQuotaSnapshot> snapshots)
Extracts the
SpaceViolationPolicy and TableName from the provided
Result and adds them to the given Map . |
static void |
QuotaTableUtil.parseNamespaceResult(Result result,
QuotaTableUtil.NamespaceQuotasVisitor visitor) |
protected static void |
QuotaTableUtil.parseNamespaceResult(String namespace,
Result result,
QuotaTableUtil.NamespaceQuotasVisitor visitor) |
static void |
QuotaTableUtil.parseResult(Result result,
QuotaTableUtil.QuotasVisitor visitor) |
static void |
QuotaTableUtil.parseResultToCollection(Result result,
Collection<QuotaSettings> quotaSettings) |
static void |
QuotaTableUtil.parseTableResult(Result result,
QuotaTableUtil.TableQuotasVisitor visitor) |
protected static void |
QuotaTableUtil.parseTableResult(TableName table,
Result result,
QuotaTableUtil.TableQuotasVisitor visitor) |
static void |
QuotaTableUtil.parseUserResult(Result result,
QuotaTableUtil.UserQuotasVisitor visitor) |
protected static void |
QuotaTableUtil.parseUserResult(String userName,
Result result,
QuotaTableUtil.UserQuotasVisitor visitor) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultOperationQuota.addScanResult(List<Result> results) |
void |
OperationQuota.addScanResult(List<Result> results)
Add a scan result.
|
static long |
QuotaUtil.calculateResultSize(List<Result> results) |
Modifier and Type | Method and Description |
---|---|
Result |
HRegion.append(Append append) |
Result |
Region.append(Append append)
Perform one or more append operations on a row.
|
Result |
HRegion.append(Append mutation,
long nonceGroup,
long nonce) |
Result |
HRegion.get(Get get) |
Result |
Region.get(Get get)
Do a get based on the get parameter.
|
Result |
HRegion.increment(Increment increment) |
Result |
Region.increment(Increment increment)
Perform one or more increment operations on a row.
|
Result |
HRegion.increment(Increment mutation,
long nonceGroup,
long nonce) |
Result |
RegionCoprocessorHost.postAppend(Append append,
Result result) |
Result |
RegionCoprocessorHost.postIncrement(Increment increment,
Result result) |
Result |
RegionCoprocessorHost.preAppend(Append append)
Supports Coprocessor 'bypass'.
|
Result |
RegionCoprocessorHost.preAppendAfterRowLock(Append append)
Supports Coprocessor 'bypass'.
|
Result |
RegionCoprocessorHost.preIncrement(Increment increment)
Supports Coprocessor 'bypass'.
|
Result |
RegionCoprocessorHost.preIncrementAfterRowLock(Increment increment)
Supports Coprocessor 'bypass'.
|
Modifier and Type | Method and Description |
---|---|
Result |
RegionCoprocessorHost.postAppend(Append append,
Result result) |
Result |
RegionCoprocessorHost.postIncrement(Increment increment,
Result result) |
Modifier and Type | Method and Description |
---|---|
boolean |
RegionCoprocessorHost.postScannerNext(InternalScanner s,
List<Result> results,
int limit,
boolean hasMore) |
Boolean |
RegionCoprocessorHost.preScannerNext(InternalScanner s,
List<Result> results,
int limit) |
Modifier and Type | Method and Description |
---|---|
Result |
RemoteHTable.append(Append append) |
protected Result[] |
RemoteHTable.buildResultFromModel(CellSetModel model) |
Result |
RemoteHTable.get(Get get) |
Result[] |
RemoteHTable.get(List<Get> gets) |
Result |
RemoteHTable.increment(Increment increment) |
Modifier and Type | Method and Description |
---|---|
Result |
AccessController.preAppend(ObserverContext<RegionCoprocessorEnvironment> c,
Append append) |
Result |
AccessController.preAppendAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
Append append) |
Result |
AccessController.preIncrement(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment) |
Result |
AccessController.preIncrementAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
Increment increment) |
Modifier and Type | Method and Description |
---|---|
boolean |
AccessController.preScannerNext(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s,
List<Result> result,
int limit,
boolean hasNext) |
Modifier and Type | Method and Description |
---|---|
Result |
VisibilityController.preAppend(ObserverContext<RegionCoprocessorEnvironment> e,
Append append) |
Result |
VisibilityController.preIncrement(ObserverContext<RegionCoprocessorEnvironment> e,
Increment increment) |
Modifier and Type | Method and Description |
---|---|
boolean |
VisibilityController.preScannerNext(ObserverContext<RegionCoprocessorEnvironment> c,
InternalScanner s,
List<Result> result,
int limit,
boolean hasNext) |
Modifier and Type | Method and Description |
---|---|
static Result[] |
ResponseConverter.getResults(CellScanner cellScanner,
ClientProtos.ScanResponse response)
Create Results from the cells using the cells meta data.
|
static Result |
ProtobufUtil.toResult(ClientProtos.Result proto)
Convert a protocol buffer Result to a client Result
|
static Result |
ProtobufUtil.toResult(ClientProtos.Result proto,
CellScanner scanner)
Convert a protocol buffer Result to a client Result
|
Modifier and Type | Method and Description |
---|---|
static ClientProtos.Result |
ProtobufUtil.toResult(Result result)
Convert a client Result to a protocol buffer Result
|
static ClientProtos.Result |
ProtobufUtil.toResultNoData(Result result)
Convert a client Result to a protocol buffer Result.
|
Modifier and Type | Method and Description |
---|---|
String |
JavaHBaseBulkGetExample.ResultFunction.call(Result result) |
Modifier and Type | Method and Description |
---|---|
static List<TRowResult> |
ThriftUtilities.rowResultFromHBase(Result in) |
static List<TRowResult> |
ThriftUtilities.rowResultFromHBase(Result[] in)
This utility method creates a list of Thrift TRowResult "struct" based on
an array of Hbase RowResult objects.
|
static List<TRowResult> |
ThriftUtilities.rowResultFromHBase(Result[] in,
boolean sortColumns)
This utility method creates a list of Thrift TRowResult "struct" based on
an Hbase RowResult object.
|
Modifier and Type | Method and Description |
---|---|
static TResult |
ThriftUtilities.resultFromHBase(Result in)
|
static List<TResult> |
ThriftUtilities.resultsFromHBase(Result[] in)
|
Copyright © 2007–2019 Cloudera. All rights reserved.