Interface Graph.Features
-
- All Known Implementing Classes:
EmptyGraph.EmptyGraphFeatures,RemoteGraph.RemoteFeatures,StarGraph.StarGraphFeatures,TinkerGraph.TinkerGraphFeatures,TinkerTransactionGraph.TinkerGraphFeatures
- Enclosing interface:
- Graph
public static interface Graph.FeaturesAn interface that represents the capabilities of aGraphimplementation. By default all methods of features returntrueand it is up to implementers to disable feature they don't support. Users should check features prior to using various functions of TinkerPop to help ensure code portability across implementations. For example, a common usage would be to check if a graph supports transactions prior to calling the commit method onGraph.tx(). As an additional notice to Graph Providers, feature methods will be used by the test suite to determine which tests will be ignored and which will be executed, therefore proper setting of these features is essential to maximizing the amount of testing performed by the suite. Further note, that these methods may be called by the TinkerPop core code to determine what operations may be appropriately executed which will have impact on features utilized by users.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGraph.Features.DataTypeFeaturesBase interface for features that relate to supporting different data types.static interfaceGraph.Features.EdgeFeaturesFeatures that are related toEdgeoperations.static interfaceGraph.Features.EdgePropertyFeaturesstatic interfaceGraph.Features.ElementFeaturesFeatures that are related toElementobjects.static interfaceGraph.Features.FeatureSetA marker interface to identify any set of Features.static interfaceGraph.Features.GraphFeaturesFeatures specific to a operations of a "graph".static interfaceGraph.Features.PropertyFeaturesstatic interfaceGraph.Features.VariableFeaturesFeatures forGraph.Variables.static interfaceGraph.Features.VertexFeaturesFeatures that are related toVertexoperations.static interfaceGraph.Features.VertexPropertyFeatures
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Graph.Features.EdgeFeaturesedge()Gets the features related to "edge" operation.default Graph.Features.GraphFeaturesgraph()Gets the features related to "graph" operation.default booleansupports(Class<? extends Graph.Features.FeatureSet> featureClass, String feature)Implementers should not override this method.default Graph.Features.VertexFeaturesvertex()Gets the features related to "vertex" operation.
-
-
-
Method Detail
-
graph
default Graph.Features.GraphFeatures graph()
Gets the features related to "graph" operation.
-
vertex
default Graph.Features.VertexFeatures vertex()
Gets the features related to "vertex" operation.
-
edge
default Graph.Features.EdgeFeatures edge()
Gets the features related to "edge" operation.
-
supports
default boolean supports(Class<? extends Graph.Features.FeatureSet> featureClass, String feature) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
Implementers should not override this method. Note that this method utilizes reflection to check for feature support.
-
-