public class GraphTableReader extends GraphTable implements TableReader
Acts as a container for one or more RowReader elements and
encapsulates the HBase client Get operations for use in read operations across one or more graph rows.
RowReadermappingContext, tableConfig| Constructor and Description |
|---|
GraphTableReader(TableMapping table,
DistributedGraphOperation distributedOperation,
StoreMappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRowReader(String rowKey,
RowReader rowReader) |
void |
addRowReader(UUID uuid,
RowReader rowReader)
Adds the given row reader context mapping it to the given UUID
|
void |
clear()
Frees resources associated with this reader and any component readers.
|
void |
close()
Frees resources.
|
RowReader |
createRowReader(commonj.sdo.DataObject dataObject,
CellValues resultRow)
Creates and adds a row reader based on the given data object and result row
mapping it by UUID string and row key string.
|
List<RowReader> |
getAllRowReaders()
Returns all row reader context values for this table context.
|
DistributedGraphOperation |
getDistributedOperation()
Returns the distributed context associated with this table operation
context.
|
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.
|
RowReader |
getRowReader(byte[] rowKey)
Returns the row reader context for the given row key or null if null exists
|
RowReader |
getRowReader(commonj.sdo.DataObject dataObject)
Returns the row reader context for the given data object or null if null
exists
|
RowReader |
getRowReader(String rowKey)
Returns the row reader context for the given row key or null if null exists
|
RowReader |
getRowReader(UUID uuid)
Returns the row reader context for the given UUID
|
org.apache.hadoop.hbase.client.Table |
getTable()
Returns the HBase table pooled connection for this context.
|
getMappingContext, getTableConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMappingContext, getTableConfigpublic GraphTableReader(TableMapping table, DistributedGraphOperation distributedOperation, StoreMappingContext mappingContext)
public String getQualifiedLogicalTableName()
getQualifiedLogicalTableName in interface TableReaderpublic String getQualifiedPhysicalTableName()
getQualifiedPhysicalTableName in interface TableReaderpublic String getQualifiedPhysicalTableNamespace()
getQualifiedPhysicalTableNamespace in interface TableReaderpublic org.apache.hadoop.hbase.client.Table getTable()
TableOperationgetTable in interface TableOperationpublic RowReader getRowReader(commonj.sdo.DataObject dataObject)
getRowReader in interface TableReaderdataObject - the data objectpublic RowReader getRowReader(byte[] rowKey)
getRowReader in interface TableReaderrowKey - the row key bytespublic RowReader getRowReader(String rowKey)
TableReadergetRowReader in interface TableReaderrowKey - the row key stringpublic RowReader getRowReader(UUID uuid)
getRowReader in interface TableReaderuuid - the UUIDpublic void addRowReader(UUID uuid, RowReader rowReader) throws IllegalArgumentException
addRowReader in interface TableReaderuuid - the UUIDrowReader - the row reader contextIllegalArgumentException - if an existing row reader is already mapped for the given data
object UUIDpublic void addRowReader(String rowKey, RowReader rowReader) throws IllegalArgumentException
addRowReader in interface TableReaderIllegalArgumentExceptionpublic List<RowReader> getAllRowReaders()
getAllRowReaders in interface TableReaderpublic RowReader createRowReader(commonj.sdo.DataObject dataObject, CellValues resultRow) throws IllegalArgumentException
createRowReader in interface TableReaderdataObject - the data objectIllegalArgumentException - if an existing row reader is already mapped for the given data
object UUIDpublic DistributedGraphOperation getDistributedOperation()
getDistributedOperation in interface TableOperationpublic void clear()
clear in interface TableReaderpublic void close()
TableOperationclose in interface TableOperationCopyright © 2021. All Rights Reserved.