public class DistributedGraphReader extends Object implements DistributedReader
Acts as a container for one or more TableReader elements
encapsulating a set of component table read operations for distributed
assembly across multiple tables, or a single table in the most simple
(degenerate) case.
GraphTableReader,
GraphTable| Constructor and Description |
|---|
DistributedGraphReader(commonj.sdo.Type rootType,
List<commonj.sdo.Type> types,
Connection connection,
StoreMappingContext mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTableReader(TableReader reader)
Adds the given table reader to the container
|
void |
clear()
Frees resources associated with this reader and any component readers.
|
void |
close()
Closes tables and connections.
|
Connection |
getConnection()
returns the shared connection for the operation
|
StoreMappingContext |
getMappingContext() |
TableReader |
getRootTableReader()
Returns the table reader associated with the data graph root.
|
RowReader |
getRowReader(commonj.sdo.DataObject dataObject)
Returns the row reader associated with the given data object
|
TableReader |
getTableReader(QName qualifiedTypeName)
Returns the table reader for the given qualified type name, or null if not
exists.
|
TableReader |
getTableReader(String tableName)
Returns the table reader for the given configured table name, or null of
not exists.
|
int |
getTableReaderCount()
Returns the count of table readers for this container.
|
List<TableReader> |
getTableReaders()
Returns all table readers for the this container
|
List<commonj.sdo.Type> |
getTypes(TableReader operation)
Returns a list of types associated with the given table reader.
|
boolean |
hasSingleRootType()
Returns true if only one table operation exists with only one associated
(root) type for this operation.
|
void |
mapRowReader(byte[] rowKey,
RowReader rowReader) |
void |
mapRowReader(commonj.sdo.DataObject dataObject,
RowReader rowReader) |
void |
mapRowReader(long dataObjectSequence,
org.plasma.sdo.PlasmaType type,
RowReader rowReader) |
void |
setRootTableReader(TableReader reader)
Sets the table reader associated with the data graph root.
|
public DistributedGraphReader(commonj.sdo.Type rootType,
List<commonj.sdo.Type> types,
Connection connection,
StoreMappingContext mappingContext)
public TableReader getTableReader(String tableName)
getTableReader in interface DistributedReadertableName - the name of the configured table.public TableReader getTableReader(QName qualifiedTypeName)
getTableReader in interface DistributedReaderqualifiedTypeName - the qualified type name.public void addTableReader(TableReader reader)
addTableReader in interface DistributedReaderreader - the table reader.public int getTableReaderCount()
getTableReaderCount in interface DistributedReaderpublic List<TableReader> getTableReaders()
getTableReaders in interface DistributedReaderpublic TableReader getRootTableReader()
getRootTableReader in interface DistributedReaderpublic void setRootTableReader(TableReader reader)
setRootTableReader in interface DistributedReaderreader - the table readerpublic RowReader getRowReader(commonj.sdo.DataObject dataObject)
getRowReader in interface DistributedReaderdataObject - the data objectIllegalArgumentException - if the given data object is not associated with any row reader.public void mapRowReader(commonj.sdo.DataObject dataObject,
RowReader rowReader)
mapRowReader in interface DistributedReaderpublic void mapRowReader(long dataObjectSequence,
org.plasma.sdo.PlasmaType type,
RowReader rowReader)
mapRowReader in interface DistributedReaderpublic void mapRowReader(byte[] rowKey,
RowReader rowReader)
mapRowReader in interface DistributedReaderpublic List<commonj.sdo.Type> getTypes(TableReader operation)
getTypes in interface DistributedReaderreader - the table readerpublic boolean hasSingleRootType()
hasSingleRootType in interface DistributedGraphOperationpublic void clear()
clear in interface DistributedReaderpublic Connection getConnection()
DistributedGraphOperationgetConnection in interface DistributedGraphOperationpublic void close()
DistributedGraphOperationclose in interface DistributedGraphOperationpublic StoreMappingContext getMappingContext()
getMappingContext in interface DistributedGraphOperationCopyright © 2021. All Rights Reserved.