public final class ColumnRWHelper
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.Object |
readResult(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnQualifierBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter converter) |
Get the latest version of this specified column.
|
static java.lang.Object |
readResult(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<?> column) |
Get the latest version of this specified column.
|
static java.lang.Object |
readResult(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
java.lang.String qualifier) |
Get the latest version of this specified column.
|
static <K> java.util.Map<K,java.lang.Object> |
readResults(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnPrefixBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter valueConverter) |
|
static <K> java.util.Map<K,java.lang.Object> |
readResults(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter) |
|
static <K,V> |
readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnPrefixBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter valueConverter,
boolean supplementTs) |
|
static <K,V> |
readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter) |
|
static void |
store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
byte[] columnFamilyBytes,
byte[] columnQualifier,
java.lang.Long timestamp,
boolean supplementTs,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter converter,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes) |
Sends a Mutation to the table.
|
static void |
store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<?> column,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes) |
Sends a Mutation to the table.
|
static void |
store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
byte[] qualifier,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes) |
Sends a Mutation to the table.
|
static void |
store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
java.lang.String qualifier,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes) |
Sends a Mutation to the table.
|
public static void store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<?> column,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes)
throws java.io.IOException
rowKey - identifying the row to write. Nothing gets written when null.tableMutator - used to modify the underlying HBase tablecolumn - the column that is to be modifiedtimestamp - version timestamp. When null the current timestamp multiplied with
TimestampGenerator.TS_MULTIPLIER and added with last 3 digits of
app id will be usedinputValue - the value to write to the rowKey and column qualifier. Nothing
gets written when null.attributes - Attributes to be set for HBase Put.java.io.IOException - if any problem occurs during store operation(sending
mutation to table).public static void store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
byte[] columnFamilyBytes,
byte[] columnQualifier,
java.lang.Long timestamp,
boolean supplementTs,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter converter,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes)
throws java.io.IOException
rowKey - identifying the row to write. Nothing gets written when null.tableMutator - used to modify the underlying HBase tablecolumnFamilyBytes - columnQualifier - column qualifier. Nothing gets written when null.timestamp - version timestamp. When null the current timestamp multiplied with
TimestampGenerator.TS_MULTIPLIER and added with last 3 digits of
app id will be usedinputValue - the value to write to the rowKey and column qualifier. Nothing
gets written when null.converter - attributes - Attributes to be set for HBase Put.java.io.IOException - if any problem occurs during store operation(sending
mutation to table).public static java.lang.Object readResult(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnQualifierBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter converter)
throws java.io.IOException
Cell.result - from which to read the value. Cannot be nullcolumnFamilyBytes - columnQualifierBytes - referring to the column to be read.converter - java.io.IOException - if any problem occurs while reading result.public static java.lang.Object readResult(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<?> column)
throws java.io.IOException
Cell.result - from which to read the value. Cannot be nullcolumn - the column that the result can be parsed tojava.io.IOException - if any problem occurs while reading result.public static java.lang.Object readResult(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
java.lang.String qualifier)
throws java.io.IOException
Cell.result - Cannot be nullcolumnPrefix - column prefix to read fromqualifier - column qualifier. Nothing gets read when null.java.io.IOException - if there is any exception encountered while reading
result.public static <K> java.util.Map<K,java.lang.Object> readResults(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter)
throws java.io.IOException
K - identifies the type of key converter.result - from which to read columns.keyConverter - used to convert column bytes to the appropriate key
typejava.io.IOException - if there is any exception encountered while reading
results.public static <K,V> java.util.NavigableMap<K,java.util.NavigableMap<java.lang.Long,V>> readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter)
throws java.io.IOException
K - identifies the type of key converter.V - the type of the values. The values will be cast into that type.result - from which to reads data with timestamps.keyConverter - used to convert column bytes to the appropriate key
type.java.io.IOException - if there is any exception encountered while reading
result.public static <K,V> java.util.NavigableMap<K,java.util.NavigableMap<java.lang.Long,V>> readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnPrefixBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter valueConverter,
boolean supplementTs)
throws java.io.IOException
K - identifies the type of column name(indicated by type of key
converter).V - the type of the values. The values will be cast into that type.result - from which to reads data with timestampscolumnPrefixBytes - optional prefix to limit columns. If null all
columns are returned.keyConverter - used to convert column bytes to the appropriate key
type.java.io.IOException - if any problem occurs while reading results.public static <K> java.util.Map<K,java.lang.Object> readResults(org.apache.hadoop.hbase.client.Result result,
byte[] columnFamilyBytes,
byte[] columnPrefixBytes,
org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter<K> keyConverter,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter valueConverter)
throws java.io.IOException
K - identifies the type of column name(indicated by type of key
converter).result - from which to read columnscolumnPrefixBytes - optional prefix to limit columns. If null all
columns are returned.keyConverter - used to convert column bytes to the appropriate key
type.java.io.IOException - if any problem occurs while reading results.public static void store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
byte[] qualifier,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes)
throws java.io.IOException
rowKey - identifying the row to write. Nothing gets written when null.tableMutator - used to modify the underlying HBase table. Caller is
responsible to pass a mutator for the table that actually has this
column.qualifier - column qualifier. Nothing gets written when null.timestamp - version timestamp. When null the server timestamp will be
used.attributes - attributes for the mutation that are used by the
coprocessor to set/read the cell tags.inputValue - the value to write to the rowKey and column qualifier.
Nothing gets written when null.java.io.IOException - if there is any exception encountered while doing
store operation(sending mutation to the table).public static void store(byte[] rowKey,
TypedBufferedMutator<?> tableMutator,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<?> columnPrefix,
java.lang.String qualifier,
java.lang.Long timestamp,
java.lang.Object inputValue,
org.apache.hadoop.yarn.server.timelineservice.storage.flow.Attribute... attributes)
throws java.io.IOException
rowKey - identifying the row to write. Nothing gets written when null.tableMutator - used to modify the underlying HBase table. Caller is
responsible to pass a mutator for the table that actually has this
column.qualifier - column qualifier. Nothing gets written when null.timestamp - version timestamp. When null the server timestamp will be
used.attributes - attributes for the mutation that are used by the
coprocessor to set/read the cell tags.inputValue - the value to write to the rowKey and column qualifier.
Nothing gets written when null.java.io.IOException - if there is any exception encountered while doing
store operation(sending mutation to the table).Copyright © 2008–2025 Apache Software Foundation. All rights reserved.