Package com.thinkaurelius.titan.graphdb.types.vertices

Examples of com.thinkaurelius.titan.graphdb.types.vertices.TitanLabelVertex


                }
            }
        }

        for(TitanLabel titanLabel: srcTx.getTypes(TitanLabel.class)) {
            TitanLabelVertex keyVertex = (TitanLabelVertex) titanLabel;
            TypeAttribute.Map definition = getDefinition(keyVertex);
            if (dstTx.getType(keyVertex.getName()) == null) {
                dstTx.makeEdgeLabel(keyVertex.getName(), definition);
            }
        }

        dstTx.commit();
        srcTx.commit();
View Full Code Here


            TypeAttribute.isValidKeyDefinition(definition);
            type = new TitanKeyVertex(this, temporaryID.decrementAndGet(), ElementLifeCycle.New);
        } else {
            Preconditions.checkArgument(typeClass == TitanTypeClass.LABEL);
            TypeAttribute.isValidLabelDefinition(definition);
            type = new TitanLabelVertex(this, temporaryID.decrementAndGet(), ElementLifeCycle.New);
        }
        graph.assignID(type);
        Preconditions.checkArgument(type.getID() > 0);
        addProperty(type, SystemKey.TypeName, name);
        addProperty(type, SystemKey.VertexState, SystemKey.VertexStates.DEFAULT.getValue());
View Full Code Here

            if (idInspector.isTypeID(vertexid)) {
                if (idInspector.isPropertyKeyID(vertexid)) {
                    vertex = new TitanKeyVertex(StandardTitanTx.this, vertexid, lifecycle);
                } else {
                    Preconditions.checkArgument(idInspector.isEdgeLabelID(vertexid));
                    vertex = new TitanLabelVertex(StandardTitanTx.this, vertexid, lifecycle);
                }
                //If its a newly created type, add to type cache
                if (lifecycle == ElementLifeCycle.Loaded)
                    typeCache.put(((TitanType) vertex).getName(), vertexid);
            } else if (idInspector.isVertexID(vertexid)) {
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.graphdb.types.vertices.TitanLabelVertex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.