public class GraphAssembler extends DefaultAssembler implements LangStoreGraphAssembler
The assembly is triggered by calling the
GraphAssembler#assemble(List method which initializes
the graph root and begins a breadth first traversal of the selection graph as
represented in the underlying data store.
Various metrics for the assembly are collected using GraphMetricVisitor and
are available as SDO instance properties.
GraphMetricVisitordataObjectMap, EMPTY_DATA_OBJECT_LIST, EMPTY_PROPERTY_SET, nameComparator, root, rootType, snapshotDatecollector, statementExecutor, statementFactory| Constructor and Description |
|---|
GraphAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.SelectionCollector collector,
Timestamp snapshotDate,
Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
assemble(List<org.plasma.sdo.access.provider.common.PropertyPair> results)
Initiates the assembly of a data graph based on the
given results list.
|
protected void |
assemble(org.plasma.sdo.PlasmaType targetType,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
List<org.plasma.sdo.access.provider.common.PropertyPair> childKeyPairs,
int level)
Assembles a data object of the given target type by first forming a query using the
given key/property pairs.
|
clear, collectResults, createDataObject, createHashKey, findDataObject, getDataGraph, initRoot, linkfindNextKeyValue, getChildKeyPairs, getChildKeyPairs, getChildKeyProps, getNextKeyPairs, getPredicateResult, getStatementExecutor, getStatementFactory, throwPriKeyErrorpublic GraphAssembler(org.plasma.sdo.PlasmaType rootType,
org.plasma.query.collector.SelectionCollector collector,
Timestamp snapshotDate,
Connection con)
public void assemble(List<org.plasma.sdo.access.provider.common.PropertyPair> results)
assemble in interface LangStoreGraphAssemblerassemble in class DefaultAssemblerresults - the results listDataGraphAssembler.getDataGraph()protected void assemble(org.plasma.sdo.PlasmaType targetType,
org.plasma.sdo.PlasmaDataObject source,
org.plasma.sdo.PlasmaProperty sourceProperty,
List<org.plasma.sdo.access.provider.common.PropertyPair> childKeyPairs,
int level)
assemble in class DefaultAssemblertargetType - the type for the data object to be assembledsource - the source data objectsourceProperty - the source propertychildKeyPairs - the key pairs for the data object to be assembledCopyright © 2017. All Rights Reserved.