public enum EntityColumn extends Enum<EntityColumn> implements Column<EntityTable>
EntityTable.| Enum Constant and Description |
|---|
CREATED_TIME
When the entity was created.
|
FLOW_VERSION
The version of the flow that this entity belongs to.
|
ID
Identifier for the entity.
|
TYPE
The type of entity.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getColumnFamilyBytes()
Returns column family name(as bytes) associated with this column.
|
byte[] |
getColumnQualifierBytes()
Get byte representation for this column qualifier.
|
ValueConverter |
getValueConverter()
Returns value converter implementation associated with this column.
|
Object |
readResult(org.apache.hadoop.hbase.client.Result result)
Get the latest version of this specified column.
|
void |
store(byte[] rowKey,
TypedBufferedMutator<EntityTable> tableMutator,
Long timestamp,
Object inputValue,
Attribute... attributes)
Sends a Mutation to the table.
|
static EntityColumn |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityColumn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityColumn ID
public static final EntityColumn TYPE
public static final EntityColumn CREATED_TIME
public static final EntityColumn FLOW_VERSION
public static EntityColumn[] values()
for (EntityColumn c : EntityColumn.values()) System.out.println(c);
public static EntityColumn 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 void store(byte[] rowKey,
TypedBufferedMutator<EntityTable> tableMutator,
Long timestamp,
Object inputValue,
Attribute... attributes)
throws IOException
Columnstore in interface Column<EntityTable>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.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 - Map of attributes for this mutation. used in the
coprocessor to set/read the cell tags. Can be null.IOException - if there is any exception encountered during store.public Object readResult(org.apache.hadoop.hbase.client.Result result) throws IOException
ColumnCell.readResult in interface Column<EntityTable>result - Cannot be nullIOException - if there is any exception encountered while reading
result.public byte[] getColumnQualifierBytes()
ColumngetColumnQualifierBytes in interface Column<EntityTable>public byte[] getColumnFamilyBytes()
ColumngetColumnFamilyBytes in interface Column<EntityTable>public ValueConverter getValueConverter()
ColumngetValueConverter in interface Column<EntityTable>ValueConverter implementation.Copyright © 2018 Apache Software Foundation. All Rights Reserved.