Package com.tinkerpop.blueprints

Examples of com.tinkerpop.blueprints.Features


    return new FramedEdgeIterable<F>(this, config.getConfiguredGraph().getEdges(key,
        value), kind);
  }

  public Features getFeatures() {
    Features features = config.getConfiguredGraph().getFeatures().copyFeatures();
    features.isWrapper = true;
    return features;
  }
View Full Code Here


        super(directory);
    }

    @Override
    public Features getFeatures() {
        Features f = super.getFeatures().copyFeatures();
        f.ignoresSuppliedIds = true;
        return f;
    }
View Full Code Here

        return numTransactionsAborted == 0;
    }

    @Override
    public Features getFeatures() {
        Features f = graph.getFeatures().copyFeatures();
        f.supportsTransactions = true;
        return f;
    }
View Full Code Here

    return new FramedEdgeIterable<F>(this, config.getConfiguredGraph().getEdges(key, value), kind);
  }

  @Override
  public Features getFeatures() {
    Features features = config.getConfiguredGraph().getFeatures().copyFeatures();
    features.isWrapper = true;
    return features;
  }
View Full Code Here

    public class MockGraph implements Graph {

        @Override
        public Features getFeatures() {
            return new Features(); //To change body of implemented methods use File | Settings | File Templates.
        }
View Full Code Here

                if (graph instanceof ReadOnlyGraph) {
                    isReadOnly = true;
                }
            }

            final Features features = graph.getFeatures();
            this.resultObject.put(Tokens.FEATURES, new JSONObject(features.toMap()));
            this.resultObject.put(Tokens.READ_ONLY, isReadOnly);
            this.resultObject.put(Tokens.TYPE, graphType);
            this.resultObject.put(Tokens.QUERY_TIME, this.sh.stopWatch());
            this.resultObject.put(Tokens.UP_TIME, this.getTimeAlive());
            this.resultObject.put(Tokens.VERSION, Tokens.REXSTER_VERSION);
View Full Code Here

    /**
     * @return The features of the underlying graph but with transactions supported.
     */
    @Override
    public Features getFeatures() {
        Features f = graph.getFeatures().copyFeatures();
        f.isWrapper = true;
        f.supportsTransactions = true;
        return f;
    }
View Full Code Here

        return baseGraph;
    }

    @Override
    public Features getFeatures() {
        Features features = baseGraph.getFeatures().copyFeatures();
        features.ignoresSuppliedIds = false;
        features.isWrapper = true;
        features.supportsEdgeIteration = false;
        features.supportsThreadedTransactions = false;
        features.supportsVertexIteration = false;
View Full Code Here

*/

public class TitanFeatures {

    private static Features getBaselineTitanFeatures() {
        Features features = new Features();
        features.supportsDuplicateEdges = true;
        features.supportsSelfLoops = true;
        features.supportsSerializableObjectProperty = true;
        features.supportsBooleanProperty = true;
        features.supportsDoubleProperty = true;
        features.supportsFloatProperty = true;
        features.supportsIntegerProperty = true;
        features.supportsPrimitiveArrayProperty = true;
        features.supportsUniformListProperty = true;
        features.supportsMixedListProperty = true;
        features.supportsLongProperty = true;
        features.supportsMapProperty = true;
        features.supportsStringProperty = true;
        features.ignoresSuppliedIds = true;
        features.isPersistent = true;
        features.isWrapper = false;
        features.supportsIndices = false;
        features.supportsVertexIndex = false;
        features.supportsEdgeIndex = false;
        features.supportsKeyIndices = true;
        features.supportsVertexKeyIndex = true;
        features.supportsEdgeKeyIndex = true;
        features.supportsEdgeIteration = false;
        features.supportsVertexIteration = false;
        features.supportsVertexProperties = true;
        features.supportsEdgeProperties = true;
        features.supportsEdgeRetrieval = true;
        features.supportsTransactions = true;
        features.supportsThreadedTransactions = true;
        features.checkCompliance();
        return features;
    }
View Full Code Here

        features.checkCompliance();
        return features;
    }

    public static Features getFeatures(GraphDatabaseConfiguration config, StoreFeatures storageFeatures) {
        Features features = TitanFeatures.getBaselineTitanFeatures();
        features.supportsSerializableObjectProperty = config.hasSerializeAll();
        if (storageFeatures != null) {
            if (storageFeatures.supportsScan()) {
                features.supportsVertexIteration = true;
                features.supportsEdgeIteration = true;
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.Features

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.