Package com.thinkaurelius.titan.graphdb.vertices

Examples of com.thinkaurelius.titan.graphdb.vertices.StandardVertex


            vertexId = null;
        }
        Preconditions.checkArgument(vertexId != null || !graph.getConfiguration().allowVertexIdSetting(), "Must provide vertex id");
        Preconditions.checkArgument(vertexId == null || IDManager.isVertexID(vertexId), "Not a valid vertex id: %s", vertexId);
        Preconditions.checkArgument(vertexId == null || !config.hasVerifyExternalVertexExistence() || !containsVertex(vertexId), "Vertex with given id already exists: %s", vertexId);
        StandardVertex vertex = new StandardVertex(this, temporaryID.decrementAndGet(), ElementLifeCycle.New);
        if (vertexId != null) {
            vertex.setID(vertexId);
        } else if (config.hasAssignIDsImmediately()) {
            graph.assignID(vertex);
        }
        addProperty(vertex, SystemKey.VertexState, SystemKey.VertexStates.DEFAULT.getValue());
        vertexCache.add(vertex, vertex.getID());
        return vertex;

    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.graphdb.vertices.StandardVertex

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.