public GraphModelImpl() { this(new Configuration()); }
public EdgeTypeStore() { this(new Configuration()); }
public EdgeTypeStore() { this(new Configuration()); }
/** * Copy this configuration. * * @return a copy of this configuration */ public Configuration copy() { Configuration copy = new Configuration(); copy.nodeIdType = nodeIdType; copy.edgeIdType = edgeIdType; copy.edgeLabelType = edgeLabelType; copy.edgeWeightType = edgeWeightType; copy.timeRepresentation = timeRepresentation; copy.edgeWeightColumn = edgeWeightColumn; return copy; }
public GraphModelImpl() { this(new Configuration()); }
/** * Copy this configuration. * * @return a copy of this configuration */ public Configuration copy() { Configuration copy = new Configuration(); copy.nodeIdType = nodeIdType; copy.edgeIdType = edgeIdType; copy.edgeLabelType = edgeLabelType; copy.edgeWeightType = edgeWeightType; copy.timeRepresentation = timeRepresentation; copy.edgeWeightColumn = edgeWeightColumn; return copy; }
private GraphModel newGraphModel(Workspace workspace) { Configuration config = new Configuration(); config.setTimeRepresentation(TimeRepresentation.INTERVAL); GraphModel graphModelImpl = GraphModel.Factory.newInstance(config); workspace.add(graphModelImpl); return graphModelImpl; } }
protected static GraphModel getGraphModel(Workspace workspace) { GraphModel gm = workspace.getLookup().lookup(GraphModel.class); if (gm == null) { Configuration configuration = new Configuration(); configuration.setTimeRepresentation(TimeRepresentation.INTERVAL); gm = GraphModel.Factory.newInstance(configuration); workspace.add(gm); } return gm; } }
public ColumnStore(GraphStore graphStore, Class<T> elementType, boolean indexed) { if (MAX_SIZE >= Short.MAX_VALUE - Short.MIN_VALUE + 1) { throw new RuntimeException("Column Store size can't exceed 65534"); } this.graphStore = graphStore; this.configuration = graphStore != null ? graphStore.configuration : new Configuration(); this.lock = GraphStoreConfiguration.ENABLE_AUTO_LOCKING ? new TableLock() : null; this.garbageQueue = new ShortRBTreeSet(); this.idMap = new Object2ShortOpenHashMap<String>(MAX_SIZE); this.columns = new ColumnImpl[MAX_SIZE]; this.elementType = elementType; this.indexStore = indexed ? new IndexStore<T>(this) : null; idMap.defaultReturnValue(NULL_SHORT); this.observers = GraphStoreConfiguration.ENABLE_OBSERVERS ? new ArrayList<TableObserverImpl>() : null; }
public ColumnStore(GraphStore graphStore, Class<T> elementType, boolean indexed) { if (MAX_SIZE >= Short.MAX_VALUE - Short.MIN_VALUE + 1) { throw new RuntimeException("Column Store size can't exceed 65534"); } this.graphStore = graphStore; this.configuration = graphStore != null ? graphStore.configuration : new Configuration(); this.lock = GraphStoreConfiguration.ENABLE_AUTO_LOCKING ? new TableLock() : null; this.garbageQueue = new ShortRBTreeSet(); this.idMap = new Object2ShortOpenHashMap<String>(MAX_SIZE); this.columns = new ColumnImpl[MAX_SIZE]; this.elementType = elementType; this.indexStore = indexed ? new IndexStore<T>(this) : null; idMap.defaultReturnValue(NULL_SHORT); this.observers = GraphStoreConfiguration.ENABLE_OBSERVERS ? new ArrayList<TableObserverImpl>() : null; }
private Configuration deserializeConfiguration(final DataInput is) throws IOException, ClassNotFoundException { Configuration config = new Configuration(); Class nodeIdType = (Class) deserialize(is); Class edgeIdType = (Class) deserialize(is); Class edgeLabelType = (Class) deserialize(is); Class edgeWeightType = (Class) deserialize(is); TimeRepresentation timeRepresentation = (TimeRepresentation) deserialize(is); config.setNodeIdType(nodeIdType); config.setEdgeIdType(edgeIdType); config.setEdgeLabelType(edgeLabelType); config.setEdgeWeightType(edgeWeightType); config.setTimeRepresentation(timeRepresentation); if (readVersion >= 0.5) { Boolean edgeColumn = (Boolean) deserialize(is); config.setEdgeWeightColumn(edgeColumn); } return config; }
private Configuration deserializeConfiguration(final DataInput is) throws IOException, ClassNotFoundException { Configuration config = new Configuration(); Class nodeIdType = (Class) deserialize(is); Class edgeIdType = (Class) deserialize(is); Class edgeLabelType = (Class) deserialize(is); Class edgeWeightType = (Class) deserialize(is); TimeRepresentation timeRepresentation = (TimeRepresentation) deserialize(is); config.setNodeIdType(nodeIdType); config.setEdgeIdType(edgeIdType); config.setEdgeLabelType(edgeLabelType); config.setEdgeWeightType(edgeWeightType); config.setTimeRepresentation(timeRepresentation); if (readVersion >= 0.5) { Boolean edgeColumn = (Boolean) deserialize(is); config.setEdgeWeightColumn(edgeColumn); } return config; }
public GraphStore(GraphModelImpl model) { configuration = model != null ? model.configuration : new Configuration(); graphModel = model; lock = new GraphLock();
public GraphStore(GraphModelImpl model) { configuration = model != null ? model.configuration : new Configuration(); graphModel = model; lock = new GraphLock();