本文整理汇总了Java中com.tinkerpop.blueprints.Features类的典型用法代码示例。如果您正苦于以下问题:Java Features类的具体用法?Java Features怎么用?Java Features使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Features类属于com.tinkerpop.blueprints包,在下文中一共展示了Features类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
public Features getFeatures() {
Features f = new Features();
f.ignoresSuppliedIds = false;
f.isPersistent = true;
f.supportsStringProperty = true;
return f;
}
示例2: getBaselineTitanFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
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 = false;
features.supportsEdgeKeyIndex = false;
features.supportsEdgeIteration = false;
features.supportsVertexIteration = false;
features.supportsVertexProperties = true;
features.supportsEdgeProperties = true;
features.supportsEdgeRetrieval = true;
features.supportsTransactions = true;
features.supportsThreadedTransactions = true;
setIfExists(features, "supportsThreadIsolatedTransactions", true);
features.checkCompliance();
return features;
}
示例3: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
public static Features getFeatures(GraphDatabaseConfiguration config, StoreFeatures storageFeatures) {
Features features = TitanFeatures.getBaselineTitanFeatures();
features.supportsSerializableObjectProperty = config.hasSerializeAll();
if (storageFeatures != null) {
if (storageFeatures.hasScan()) {
features.supportsVertexIteration = true;
features.supportsEdgeIteration = true;
}
}
return features;
}
示例4: get
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
public static Features get() {
Features f = new Features();
// For simplicity, I accept all property types. They are handled in not the
// best way. To be fixed later.
f.ignoresSuppliedIds = true;
f.isPersistent = true;
f.isWrapper = false;
f.supportsBooleanProperty = true;
f.supportsDoubleProperty = true;
f.supportsDuplicateEdges = true;
f.supportsEdgeIndex = true;
f.supportsEdgeIteration = true;
f.supportsEdgeRetrieval = true;
f.supportsEdgeKeyIndex = true;
f.supportsEdgeProperties = true;
f.supportsFloatProperty = true;
f.supportsIndices = true;
f.supportsIntegerProperty = true;
f.supportsKeyIndices = true;
f.supportsLongProperty = true;
f.supportsMapProperty = true;
f.supportsMixedListProperty = true;
f.supportsPrimitiveArrayProperty = true;
f.supportsSelfLoops = true;
f.supportsSerializableObjectProperty = true;
f.supportsStringProperty = true;
f.supportsThreadedTransactions = false;
f.supportsTransactions = false;
f.supportsUniformListProperty = true;
f.supportsVertexIndex = true;
f.supportsVertexIteration = true;
f.supportsVertexKeyIndex = true;
f.supportsVertexProperties = true;
f.supportsThreadIsolatedTransactions = false;
return f;
}
示例5: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
Features features = new Features();
features.supportsTransactions = false;
features.supportsDuplicateEdges = false;
features.supportsSelfLoops = true;
features.supportsSerializableObjectProperty = true;
features.supportsBooleanProperty = true;
features.supportsDoubleProperty = true;
features.supportsFloatProperty = true;
features.supportsIntegerProperty = true;
features.supportsPrimitiveArrayProperty = false;
features.supportsUniformListProperty = false;
features.supportsMixedListProperty = false;
features.supportsLongProperty = true;
features.supportsMapProperty = false;
features.supportsStringProperty = true;
features.ignoresSuppliedIds = false;
features.isPersistent = true;
features.isWrapper = true;
features.supportsIndices = true;
features.supportsVertexIndex = true;
features.supportsEdgeIndex = true;
features.supportsKeyIndices = true;
features.supportsVertexKeyIndex = true;
features.supportsEdgeKeyIndex = true;
features.supportsEdgeIteration = true;
features.supportsVertexIteration = true;
features.supportsEdgeRetrieval = true;
features.supportsVertexProperties = true;
features.supportsEdgeProperties = true;
features.supportsThreadedTransactions = false;
features.supportsTransactions = false;
return features;
}
示例6: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
Features features = new Features();
for (final Field field : features.getClass().getFields()) {
try {
field.set(features, false);
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
//features.isPersistent = true;
features.supportsDuplicateEdges = true;
features.supportsStringProperty = true;
features.supportsIntegerProperty = true;
features.supportsBooleanProperty = true;
features.supportsDoubleProperty = true;
features.supportsLongProperty = true;
features.supportsFloatProperty = true;
features.supportsSerializableObjectProperty = true;
features.supportsUniformListProperty = true;
features.supportsMixedListProperty = true;
features.supportsPrimitiveArrayProperty = true;
features.supportsMapProperty = true;
features.ignoresSuppliedIds = true;
features.supportsVertexProperties = true;
features.supportsVertexIteration = true;
features.supportsEdgeProperties = true;
features.supportsEdgeIteration = true;
features.supportsEdgeRetrieval = true;
features.supportsTransactions = true;
features.checkCompliance();
return features;
}
示例7: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return FEATURES;
}
示例8: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return TitanFeatures.getFeatures(getConfiguration(), backend.getStoreFeatures());
}
示例9: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return AccumuloFeatures.get();
}
示例10: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
public Features getFeatures() {
return this.features;
}
示例11: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return FEATURES;
}
示例12: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return graph.getFeatures();
}
示例13: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return features;
}
示例14: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
@Override
public Features getFeatures() {
return new AccumuloFeatures();
}
示例15: getFeatures
import com.tinkerpop.blueprints.Features; //导入依赖的package包/类
public Features getFeatures() {
return features;
}