public abstract class DistributedAssembler extends DefaultAssembler implements HBaseGraphAssembler
DistributedReader,
TableReader,
RowReader| Modifier and Type | Field and Description |
|---|---|
protected DistributedReader |
distributedReader |
charset, graph, keyFactories, root, rootTableReader, rootType, selection, snapshotDate| Constructor and Description |
|---|
DistributedAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.Selection selection,
DistributedReader distributedReader,
Timestamp snapshotDate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assemble(CellValues resultRow)
Recursively re-constitutes a data graph distributed across multiple HBase
tables and/or rows, starting with the given HBase client result row.
|
protected abstract void |
assemble(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
EdgeReader collection,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
RowReader rowReader,
int level)
Populates the given data object target, recursively fetching data for and
linking related data objects which make up the resulting directed graph.
|
protected void |
assembleEdge(long childSequence,
EdgeReader collection,
RowReader childRowReader,
org.plasma.sdo.PlasmaDataObject source,
long sourceSequence,
org.plasma.sdo.PlasmaProperty sourceProperty,
int level) |
protected void |
assembleExternalEdge(CellValues childValues,
EdgeReader edgeReader,
TableReader childTableReader,
org.plasma.sdo.PlasmaDataObject source,
long sourceSequence,
org.plasma.sdo.PlasmaProperty sourceProperty,
int level) |
void |
clear()
Resets the assembler.
|
assembleData, assembleUUID, createChild, createChild, createChild, createRoot, fetchGraph, fetchRootType, fetchRootUUID, fetchType, fetchUUID, findMetaDataColumnValue, findMetaDataColumnValue, findRootType, findRootUUID, getDataColumnValue, getDataColumnValue, getDataGraph, getKeyFactory, getMetaDataColumnValue, getMetaDataColumnValue, getProperties, getProperties, linkprotected DistributedReader distributedReader
public DistributedAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.Selection selection,
DistributedReader distributedReader,
Timestamp snapshotDate)
rootType - the distributed graph root typeselection - the selection collectordistributedReader - the distributed readersnapshotDate - the query snapshot datepublic void assemble(CellValues resultRow)
To retrieve the graph use DefaultAssembler.getDataGraph(). a map of
selected SDO properties. Properties are mapped by selected types required
in the result graph.
assemble in interface HBaseGraphAssemblerresultRow - the HBase client result (row).protected abstract void assemble(org.plasma.sdo.PlasmaDataObject target,
long targetSequence,
EdgeReader collection,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
RowReader rowReader,
int level)
throws IOException
targetSequence - the current data object sequencesource - the source or parent data objectsourceProperty - the source (reference) propertyrowReader - the current row readerlevel - the current graph levelIOException - if a remote or network exception occurs.protected void assembleEdge(long childSequence,
EdgeReader collection,
RowReader childRowReader,
org.plasma.sdo.PlasmaDataObject source,
long sourceSequence,
org.plasma.sdo.PlasmaProperty sourceProperty,
int level)
throws IOException
IOExceptionprotected void assembleExternalEdge(CellValues childValues, EdgeReader edgeReader, TableReader childTableReader, org.plasma.sdo.PlasmaDataObject source, long sourceSequence, org.plasma.sdo.PlasmaProperty sourceProperty, int level) throws IOException
IOExceptionpublic void clear()
clear in interface org.plasma.sdo.access.DataGraphAssemblerCopyright © 2021. All Rights Reserved.