Package com.tinkerpop.blueprints

Examples of com.tinkerpop.blueprints.Parameter


    }

    public void testIndexParameters() throws Exception {
        final String directory = this.getWorkingDirectory();
        final Neo4jBatchGraph batch = new Neo4jBatchGraph(directory);
        Index<Vertex> index = batch.createIndex("testIdx", Vertex.class, new Parameter("analyzer", LowerCaseKeywordAnalyzer.class.getName()));
        Vertex a = batch.addVertex(null);
        a.setProperty("name", "marko");
        index.put("name", "marko", a);
        batch.flushIndices();
        batch.shutdown();
View Full Code Here


        Preconditions.checkNotNull(key);
        Preconditions.checkArgument(elementClass == Element.class || elementClass == Vertex.class || elementClass == Edge.class,
                "Expected vertex, edge or element");

        if (indexParameters == null || indexParameters.length == 0) {
            indexParameters = new Parameter[]{new Parameter(Titan.Token.STANDARD_INDEX, "")};
        }

        if (containsType(key)) {
            TitanType type = getType(key);
            if (!type.isPropertyKey())
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.Parameter

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.