public class GraphTableWriter extends GraphTable implements TableWriter
Acts as a container for one or more RowWriter elements and
encapsulates the HBase client Put and Delete operations for use in write operations across one or more graph
rows within a table.
RowWriter| Modifier and Type | Field and Description |
|---|---|
boolean |
hasConcurentRows |
mappingContext, tableConfig| Constructor and Description |
|---|
GraphTableWriter(TableMapping table,
DistributedGraphWriter distributedOperation,
StoreMappingContext mappingContext) |
GraphTableWriter(TableMapping table,
StoreMappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRowWriter(UUID uuid,
RowWriter rowContext)
Adds the given row writer context mapping it to the given UUID.
|
void |
close()
Frees resources.
|
List<RowWriter> |
getAllRowWriters()
Returns all row writer context values for this table context.
|
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator() |
DistributedGraphOperation |
getDistributedOperation()
Returns the distributed context associated with this table operation
context.
|
DistributedWriter |
getDistributedWriter() |
String |
getQualifiedLogicalTableName()
Returns the qualified logical table name associated with this reader.
|
String |
getQualifiedPhysicalTableName()
Returns the qualified physical table name associated with this reader.
|
String |
getQualifiedPhysicalTableNamespace()
Returns the qualified physical table namespace associated with this reader.
|
RowWriter |
getRowWriter(UUID uuid)
Returns the row writer context for the given UUID
|
org.apache.hadoop.hbase.client.Table |
getTable()
Returns the HBase table pooled connection for this context.
|
boolean |
hasConcurrentRows()
Return whether any concurrent rows have been detected for the table writer.
|
void |
setDistributedWriter(DistributedGraphWriter distributedGraphWriter) |
void |
setHasConcurrentRows(boolean value)
Sets whether any concurrent rows have been detected for the table writer.
|
getMappingContext, getTableConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMappingContext, getTableConfigpublic GraphTableWriter(TableMapping table, StoreMappingContext mappingContext)
public GraphTableWriter(TableMapping table, DistributedGraphWriter distributedOperation, StoreMappingContext mappingContext)
public DistributedWriter getDistributedWriter()
getDistributedWriter in interface TableWriterpublic void setDistributedWriter(DistributedGraphWriter distributedGraphWriter)
setDistributedWriter in interface TableWriterpublic String getQualifiedLogicalTableName()
getQualifiedLogicalTableName in interface TableWriterpublic String getQualifiedPhysicalTableName()
getQualifiedPhysicalTableName in interface TableWriterpublic String getQualifiedPhysicalTableNamespace()
getQualifiedPhysicalTableNamespace in interface TableWriterpublic org.apache.hadoop.hbase.client.Table getTable()
TableOperationgetTable in interface TableOperationpublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator()
getBufferedMutator in interface TableWriterpublic RowWriter getRowWriter(UUID uuid)
TableWritergetRowWriter in interface TableWriteruuid - the UUID stringpublic void addRowWriter(UUID uuid, RowWriter rowContext)
TableWriteraddRowWriter in interface TableWriteruuid - the UUIDrowContext - the row writer contextpublic List<RowWriter> getAllRowWriters()
TableWritergetAllRowWriters in interface TableWriterpublic DistributedGraphOperation getDistributedOperation()
getDistributedOperation in interface TableOperationpublic void close()
TableOperationclose in interface TableOperationpublic boolean hasConcurrentRows()
TableWriterhasConcurrentRows in interface TableWriterpublic void setHasConcurrentRows(boolean value)
TableWritersetHasConcurrentRows in interface TableWriterCopyright © 2021. All Rights Reserved.