public enum AppToFlowColumnPrefix extends Enum<AppToFlowColumnPrefix> implements ColumnPrefix<AppToFlowTable>
| Enum Constant and Description |
|---|
FLOW_NAME
The flow name.
|
FLOW_RUN_ID
The flow run ID.
|
USER_ID
The user.
|
| Modifier and Type | Method and Description |
|---|---|
static AppToFlowColumnPrefix |
columnFor(AppToFlowColumnFamily columnFamily,
String columnPrefix)
Retrieve an
AppToFlowColumnPrefix given a name, or null if there
is no match. |
static AppToFlowColumnPrefix |
columnFor(String columnPrefix)
Retrieve an
AppToFlowColumnPrefix given a name, or null if there
is no match. |
byte[] |
getColumnFamilyBytes()
Returns column family name(as bytes) associated with this column prefix.
|
byte[] |
getColumnPrefixBytes(byte[] qualifierPrefix) |
byte[] |
getColumnPrefixBytes(String qualifierPrefix) |
ValueConverter |
getValueConverter()
Returns value converter implementation associated with this column prefix.
|
Object |
readResult(org.apache.hadoop.hbase.client.Result result,
String qualifier)
Get the latest version of this specified column.
|
<K> Map<K,Object> |
readResults(org.apache.hadoop.hbase.client.Result result,
KeyConverter<K> keyConverter) |
<K,V> NavigableMap<K,NavigableMap<Long,V>> |
readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result,
KeyConverter<K> keyConverter) |
void |
store(byte[] rowKey,
TypedBufferedMutator<AppToFlowTable> tableMutator,
byte[] qualifier,
Long timestamp,
Object inputValue,
Attribute... attributes)
Sends a Mutation to the table.
|
void |
store(byte[] rowKey,
TypedBufferedMutator<AppToFlowTable> tableMutator,
String qualifier,
Long timestamp,
Object inputValue,
Attribute... attributes)
Sends a Mutation to the table.
|
static AppToFlowColumnPrefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AppToFlowColumnPrefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppToFlowColumnPrefix FLOW_NAME
public static final AppToFlowColumnPrefix FLOW_RUN_ID
public static final AppToFlowColumnPrefix USER_ID
public static AppToFlowColumnPrefix[] values()
for (AppToFlowColumnPrefix c : AppToFlowColumnPrefix.values()) System.out.println(c);
public static AppToFlowColumnPrefix valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte[] getColumnPrefixBytes(String qualifierPrefix)
getColumnPrefixBytes in interface ColumnPrefix<AppToFlowTable>qualifierPrefix - Column qualifier or prefix of qualifier.public byte[] getColumnPrefixBytes(byte[] qualifierPrefix)
getColumnPrefixBytes in interface ColumnPrefix<AppToFlowTable>qualifierPrefix - Column qualifier or prefix of qualifier.public byte[] getColumnFamilyBytes()
ColumnPrefixgetColumnFamilyBytes in interface ColumnPrefix<AppToFlowTable>public void store(byte[] rowKey,
TypedBufferedMutator<AppToFlowTable> tableMutator,
byte[] qualifier,
Long timestamp,
Object inputValue,
Attribute... attributes)
throws IOException
ColumnPrefixstore in interface ColumnPrefix<AppToFlowTable>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.inputValue - the value to write to the rowKey and column qualifier.
Nothing gets written when null.attributes - attributes for the mutation that are used by the
coprocessor to set/read the cell tags.IOException - if there is any exception encountered while doing
store operation(sending mutation to the table).public void store(byte[] rowKey,
TypedBufferedMutator<AppToFlowTable> tableMutator,
String qualifier,
Long timestamp,
Object inputValue,
Attribute... attributes)
throws IOException
ColumnPrefixstore in interface ColumnPrefix<AppToFlowTable>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.inputValue - the value to write to the rowKey and column qualifier.
Nothing gets written when null.attributes - attributes for the mutation that are used by the
coprocessor to set/read the cell tags.IOException - if there is any exception encountered while doing
store operation(sending mutation to the table).public ValueConverter getValueConverter()
ColumnPrefixgetValueConverter in interface ColumnPrefix<AppToFlowTable>ValueConverter implementation.public Object readResult(org.apache.hadoop.hbase.client.Result result, String qualifier) throws IOException
ColumnPrefixCell.readResult in interface ColumnPrefix<AppToFlowTable>result - Cannot be nullqualifier - column qualifier. Nothing gets read when null.IOException - if there is any exception encountered while reading
result.public <K> Map<K,Object> readResults(org.apache.hadoop.hbase.client.Result result, KeyConverter<K> keyConverter) throws IOException
readResults in interface ColumnPrefix<AppToFlowTable>K - identifies the type of key converter.result - from which to read columns.keyConverter - used to convert column bytes to the appropriate key
typeIOException - if there is any exception encountered while reading
results.public <K,V> NavigableMap<K,NavigableMap<Long,V>> readResultsWithTimestamps(org.apache.hadoop.hbase.client.Result result, KeyConverter<K> keyConverter) throws IOException
readResultsWithTimestamps in interface ColumnPrefix<AppToFlowTable>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.IOException - if there is any exception encountered while reading
result.public static final AppToFlowColumnPrefix columnFor(String columnPrefix)
AppToFlowColumnPrefix given a name, or null if there
is no match. The following holds true: columnFor(x) == columnFor(y)
if and only if x.equals(y) or (x == y == null)columnPrefix - Name of the column to retrieveAppToFlowColumnPrefix or nullpublic static final AppToFlowColumnPrefix columnFor(AppToFlowColumnFamily columnFamily, String columnPrefix)
AppToFlowColumnPrefix given a name, or null if there
is no match. The following holds true:
columnFor(a,x) == columnFor(b,y) if and only if
(x == y == null) or a.equals(b) & x.equals(y)columnFamily - The columnFamily for which to retrieve the column.columnPrefix - Name of the column to retrieveAppToFlowColumnPrefix or null if both
arguments don't match.Copyright © 2018 Apache Software Foundation. All Rights Reserved.