public class ReadOnlyIndexableGraph<T extends IndexableGraph> extends ReadOnlyGraph<T> implements IndexableGraph, WrapperGraph<T>
baseGraph| Constructor and Description |
|---|
ReadOnlyIndexableGraph(T baseIndexableGraph) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters)
Generate an index with a particular name for a particular class.
|
void |
dropIndex(String name)
Remove an index associated with the graph.
|
<T extends Element> |
getIndex(String indexName,
Class<T> indexClass)
Get an index from the graph by its name and index class.
|
Iterable<Index<? extends Element>> |
getIndices()
Get all the indices maintained by the graph.
|
addEdge, addVertex, getBaseGraph, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, query, removeEdge, removeVertex, shutdown, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, query, removeEdge, removeVertex, shutdowngetBaseGraphpublic ReadOnlyIndexableGraph(T baseIndexableGraph)
public void dropIndex(String name) throws UnsupportedOperationException
IndexableGraphdropIndex in interface IndexableGraphname - the name of the index to dropUnsupportedOperationExceptionpublic <T extends Element> Index<T> createIndex(String indexName, Class<T> indexClass, Parameter... indexParameters) throws UnsupportedOperationException
IndexableGraphcreateIndex in interface IndexableGraphT - the element class that this index is indexing (can be base class)indexName - the name of the manual indexindexClass - the element class that this index is indexing (can be base class)indexParameters - a collection of parameters for the underlying index implementationUnsupportedOperationExceptionpublic <T extends Element> Index<T> getIndex(String indexName, Class<T> indexClass)
IndexableGraphgetIndex in interface IndexableGraphT - the class of the elements being indexed (can be base class)indexName - the name of the index to retrieveindexClass - the class of the elements being indexed (can be base class)public Iterable<Index<? extends Element>> getIndices()
IndexableGraphgetIndices in interface IndexableGraphCopyright © 2010-2014. All Rights Reserved.