public interface RowWriter extends RowOperation
Acts as a single component within a TableWriter container and
encapsulates the HBase client Put and Delete operations for use in write operations across multiple logical
entities within a graph row.
TableWriter| Modifier and Type | Field and Description |
|---|---|
static String |
ROW_ATTR_NAME_CONCURRENT_FAM_BYTES |
static String |
ROW_ATTR_NAME_CONCURRENT_QUAL_BYTES |
static String |
ROW_ATTR_NAME_CONCURRENT_VALUE_BYTES |
static String |
ROW_ATTR_NAME_IS_CONCURRENT_BOOL |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(commonj.sdo.DataObject dataObject,
long sequence)
Maps an edge sequence within the writer for the given data object
|
boolean |
containsSequence(commonj.sdo.DataObject dataObject)
Returns whether the writer has a mapping the the given data object.
|
void |
deleteRow()
Creates a new row delete mutation, is not exists.
|
void |
deleteRowData(byte[] fam,
byte[] qualifier) |
void |
deleteRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property) |
void |
deleteRowEntityMetaData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence) |
byte[] |
encodeRootType() |
byte[] |
encodeType(org.plasma.sdo.PlasmaType type) |
byte[] |
fetchColumnValue(org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaProperty property)
Returns a single column value for this row given a context data object and
property.
|
EdgeWriter |
getEdgeWriter(org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaProperty property,
long sequence)
Returns an existing or new edge writer for the given data object, sequence
and source edge property
|
long |
getSequence(commonj.sdo.DataObject dataObject)
Returs the sequence number for the given data object if exists.
|
TableWriter |
getTableWriter()
Returns the container for this writer.
|
Mutations |
getWriteOperations()
Return the write operations for a row.
|
boolean |
hasRowDelete()
Returns whether there is an existing row delete mutation.
|
void |
incrementRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property,
long value) |
boolean |
isRootCreated()
Returns whether the root data object for this writer is created.
|
boolean |
isRootDeleted()
Returns whether the root data object for this writer is deleted.
|
long |
newSequence(org.plasma.sdo.PlasmaDataObject dataObject) |
byte[] |
readRowAttribute(String key) |
void |
writeRowAttribute(String key,
byte[] value) |
void |
writeRowData(byte[] fam,
byte[] qualifier,
byte[] value) |
void |
writeRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property,
byte[] value) |
void |
writeRowEntityMetaData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence) |
getMappingContextaddDataObject, addDataObject, contains, contains, contains, contains, getColumnKeyFactory, getDataGraph, getDataObject, getDataObject, getRootDataObject, getRootType, getRowKey, getSequenceMappingstatic final String ROW_ATTR_NAME_IS_CONCURRENT_BOOL
static final String ROW_ATTR_NAME_CONCURRENT_FAM_BYTES
static final String ROW_ATTR_NAME_CONCURRENT_QUAL_BYTES
static final String ROW_ATTR_NAME_CONCURRENT_VALUE_BYTES
void deleteRow()
boolean hasRowDelete()
Mutations getWriteOperations()
byte[] fetchColumnValue(org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaProperty property)
throws IOException
dataObject - the context data objectproperty - the context propertyIOExceptionStatefullColumnKeyFactoryTableWriter getTableWriter()
boolean isRootCreated()
boolean isRootDeleted()
long newSequence(org.plasma.sdo.PlasmaDataObject dataObject)
throws IOException
IOExceptionvoid writeRowEntityMetaData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence)
throws IOException
IOExceptionvoid deleteRowEntityMetaData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence)
throws IOException
IOExceptionvoid writeRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property,
byte[] value)
throws IOException
IOExceptionvoid writeRowData(byte[] fam,
byte[] qualifier,
byte[] value)
throws IOException
IOExceptionvoid writeRowAttribute(String key, byte[] value) throws IOException
IOExceptionbyte[] readRowAttribute(String key) throws IOException
IOExceptionvoid deleteRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property)
throws IOException
IOExceptionvoid deleteRowData(byte[] fam,
byte[] qualifier)
throws IOException
IOExceptionvoid incrementRowData(org.plasma.sdo.PlasmaDataObject dataObject,
long sequence,
org.plasma.sdo.PlasmaProperty property,
long value)
throws IOException
IOExceptionEdgeWriter getEdgeWriter(org.plasma.sdo.PlasmaDataObject dataObject, org.plasma.sdo.PlasmaProperty property, long sequence) throws IOException
dataObject - the data objectproperty - the source edge propertysequence - the sequence for the given data object type, unique within the
graph/rowIOExceptionvoid addSequence(commonj.sdo.DataObject dataObject,
long sequence)
dataObject - sequence - boolean containsSequence(commonj.sdo.DataObject dataObject)
dataObject - long getSequence(commonj.sdo.DataObject dataObject)
byte[] encodeRootType()
byte[] encodeType(org.plasma.sdo.PlasmaType type)
Copyright © 2021. All Rights Reserved.