com.oy.shared.lm.ext
Class HBMCtoGRAPH
java.lang.Object
com.oy.shared.lm.ext.HBMCtoGRAPH
- public class HBMCtoGRAPH
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANON_CLASS
private static final java.lang.String ANON_CLASS
- See Also:
- Constant Field Values
graph
private Graph graph
nameToNode
private java.util.Map nameToNode
options
private TaskOptions options
colors
private java.lang.String[] colors
HBMCtoGRAPH
HBMCtoGRAPH()
load
public static IGraphModel load(TaskOptions options)
throws java.io.IOException
- Throws:
java.io.IOException
load
public static IGraphModel load(TaskOptions options,
Configuration conf)
throws java.io.IOException
- Throws:
java.io.IOException
renderAttributes
private java.lang.String renderAttributes(HBMCtoGRAPH.Attribute[] attrs)
iterToList
private java.util.List iterToList(java.util.Iterator iter)
innerLoad
private IGraphModel innerLoad(TaskOptions options,
Configuration conf)
throws java.io.IOException
- Throws:
java.io.IOException
processClasses
private void processClasses(PersistentClass[] nodes)
processSubclasses
private void processSubclasses(GraphNode parent,
PersistentClass[] nodes)
processProperties
private void processProperties(java.util.Iterator iter,
GraphNode current)
addSimpleProp
private HBMCtoGRAPH.Attribute addSimpleProp(SimpleValue val,
java.lang.String name)
addToOneProp
private void addToOneProp(Property prop,
GraphNode current)
addCollectionProp
private void addCollectionProp(Property prop,
GraphNode current)
getOrCreateNode
private GraphNode getOrCreateNode(java.lang.String name)
Copyright (C) 2005-2006 Pavel Simakov
http://www.softwaresecretweapons.com