public class GraphMutationCollector extends Object implements MutationCollector
For each graph: - performs any change summary ordering - collects table writers based on graph metadata and configuration information - assembles table writers for the graph into a single graph writer composed of table writers, which are composed of row writers - passes each changed object (created, modified, deleted) along with the graph writer to logic within this class. - marshals out the state for each changed row after all changes complete in to the state column - for each row, detects if the root object is deleted, and then adds a toumbsone column
| Modifier and Type | Field and Description |
|---|---|
protected ServiceContext |
context |
protected Create |
create |
protected Delete |
delete |
protected org.plasma.sdo.core.SnapshotMap |
snapshotMap |
protected Update |
update |
protected String |
username |
| Constructor and Description |
|---|
GraphMutationCollector(ServiceContext context,
org.plasma.sdo.core.SnapshotMap snapshotMap,
String username) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<TableWriter,Map<String,Mutations>> |
collectChanges(commonj.sdo.DataGraph[] dataGraphs,
Connection connection) |
Map<TableWriter,Map<String,Mutations>> |
collectChanges(commonj.sdo.DataGraph dataGraph,
Connection connection) |
protected List<org.plasma.sdo.PlasmaEdge> |
findOwnedEdges(org.plasma.sdo.PlasmaNode dataNode,
commonj.sdo.Property property,
List<org.plasma.sdo.PlasmaEdge> edges,
DistributedWriter graphWriter,
RowWriter rowWriter)
Deprecated.
|
protected HashMap<String,commonj.sdo.DataObject> |
getOldEdgeMap(Object oldValue,
commonj.sdo.Property property) |
protected void |
setupOptimistic(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaType type,
long sequence,
RowWriter rowWriter) |
protected void |
setupOrigination(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaType type,
long sequence,
RowWriter rowWriter) |
protected String |
toString(Map<String,commonj.sdo.DataObject> map) |
protected void |
validateModifications(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
RowWriter rowWriter) |
protected Create create
protected Update update
protected Delete delete
protected org.plasma.sdo.core.SnapshotMap snapshotMap
protected String username
protected ServiceContext context
public GraphMutationCollector(ServiceContext context, org.plasma.sdo.core.SnapshotMap snapshotMap, String username)
public void close()
close in interface MutationCollectorpublic Map<TableWriter,Map<String,Mutations>> collectChanges(commonj.sdo.DataGraph dataGraph, Connection connection) throws IOException, IllegalAccessException
collectChanges in interface MutationCollectorIOExceptionIllegalAccessExceptionpublic Map<TableWriter,Map<String,Mutations>> collectChanges(commonj.sdo.DataGraph[] dataGraphs, Connection connection) throws IOException, IllegalAccessException
collectChanges in interface MutationCollectorIOExceptionIllegalAccessExceptionprotected HashMap<String,commonj.sdo.DataObject> getOldEdgeMap(Object oldValue, commonj.sdo.Property property)
@Deprecated protected List<org.plasma.sdo.PlasmaEdge> findOwnedEdges(org.plasma.sdo.PlasmaNode dataNode, commonj.sdo.Property property, List<org.plasma.sdo.PlasmaEdge> edges, DistributedWriter graphWriter, RowWriter rowWriter) throws IOException
IOExceptionprotected void setupOptimistic(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaType type,
long sequence,
RowWriter rowWriter)
throws IOException
IOExceptionprotected void setupOrigination(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
org.plasma.sdo.PlasmaType type,
long sequence,
RowWriter rowWriter)
throws IOException
IOExceptionprotected void validateModifications(commonj.sdo.DataGraph dataGraph,
org.plasma.sdo.PlasmaDataObject dataObject,
RowWriter rowWriter)
throws IllegalAccessException
IllegalAccessExceptionCopyright © 2021. All Rights Reserved.