public class GraphContextImpl extends java.lang.Object implements GraphContext
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
attributes |
protected GraphConfigurationImpl |
graphConfigImpl |
protected java.util.Map |
srcNodeIdMap |
protected java.util.Map |
srcNodeValueMap |
| Constructor and Description |
|---|
GraphContextImpl(GraphTransformer objGraph)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CachedClassLookupMap<NodeMapping> |
buildChildNodeLookup(CachedClassLookupMap<NodeMapping> base,
CachedClassLookupMap<NodeMapping> add) |
protected CachedClassLookupMap<NodeMapping> |
buildChildNodeLookup(CachedClassLookupMap<NodeMapping> base,
java.util.Collection<NodeMapping> add) |
protected NodeContext |
createRootNodeContext(CachedClassLookupMap<NodeMapping> rootNodeLookup,
AbstractNodeMapping nodeMapping,
java.lang.Object source)
Creates an initial
NodeContext (root node context) |
java.util.Map |
getAttributes()
A map of attributes which is free to use.
|
GraphConfiguration |
getConfiguration()
Returns configuration options for this graph.
|
AbstractGraphTransformer |
getGraphTransformer()
Returns the
GraphTransformer which this context belongs to. |
int |
getMaxDistance()
Returns the most far away distance which was detected from start node.
|
java.util.List<PropertyFilter> |
getNodeFilterList()
Returns a modifiable List of
PropertyFilter instances. |
java.util.Map<java.lang.Object,java.lang.Object> |
getProcessedNodes()
Returns a Map of already processed nodes.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getProcessedNodesId() |
java.util.List<PropertyFilter> |
getPropertyFilterList()
Returns a modifiable List of
PropertyFilter instances. |
protected CachedClassLookupMap<NodeMapping> |
getRuntimeNodeMappings(int distance)
Returns an already calculated
CachedClassLookupMap. |
boolean |
isReleased()
Returns true when graph transformation process which used that context instance is finished.
|
void |
setMaxDistance(int distance) |
protected void |
setReleased(boolean isReleased) |
protected void |
setRuntimeNodeMappings(int distance,
CachedClassLookupMap<NodeMapping> nodeLookup) |
protected GraphConfigurationImpl graphConfigImpl
protected java.util.Map attributes
protected java.util.Map srcNodeValueMap
protected java.util.Map srcNodeIdMap
public GraphContextImpl(GraphTransformer objGraph)
objGraph - GraphTransformerpublic GraphConfiguration getConfiguration()
GraphContextgetConfiguration in interface GraphContextGraphConfigurationpublic java.util.List<PropertyFilter> getNodeFilterList()
GraphContextPropertyFilter instances. This chain of filters is applied to every processed
property which is treated as GraphNode.getNodeFilterList in interface GraphContextPropertyFilter which are getting applied to node-properties onlypublic java.util.List<PropertyFilter> getPropertyFilterList()
GraphContextPropertyFilter instances. This chain of filters is applied to every processed
property (including these ones which are treated as node).getPropertyFilterList in interface GraphContextPropertyFilter which are getting applied to every propertypublic boolean isReleased()
GraphContextisReleased in interface GraphContextprotected void setReleased(boolean isReleased)
public java.util.Map getAttributes()
GraphContextgetAttributes in interface GraphContextpublic int getMaxDistance()
getMaxDistance in interface GraphContextpublic void setMaxDistance(int distance)
public AbstractGraphTransformer getGraphTransformer()
GraphTransformer which this context belongs to.getGraphTransformer in interface GraphContextGraphTransformerpublic java.util.Map<java.lang.Object,java.lang.Object> getProcessedNodes()
public java.util.Map<java.lang.Object,java.lang.Object> getProcessedNodesId()
protected NodeContext createRootNodeContext(CachedClassLookupMap<NodeMapping> rootNodeLookup, AbstractNodeMapping nodeMapping, java.lang.Object source)
NodeContext (root node context)rootNodeLookup - nodeMapping - source - protected CachedClassLookupMap<NodeMapping> getRuntimeNodeMappings(int distance)
CachedClassLookupMap.distance - protected void setRuntimeNodeMappings(int distance,
CachedClassLookupMap<NodeMapping> nodeLookup)
protected CachedClassLookupMap<NodeMapping> buildChildNodeLookup(CachedClassLookupMap<NodeMapping> base, CachedClassLookupMap<NodeMapping> add)
protected CachedClassLookupMap<NodeMapping> buildChildNodeLookup(CachedClassLookupMap<NodeMapping> base, java.util.Collection<NodeMapping> add)
Copyright © 2018 SAP SE. All Rights Reserved.