| Modifier and Type | Interface and Description |
|---|---|
interface |
Index<T extends Element>
An Index maintains a mapping between some key/value pair and an element.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Edge
An Edge links two vertices.
|
interface |
Vertex
A vertex maintains pointers to both a set of incoming and outgoing edges.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
IndexableGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters)
Generate an index with a particular name for a particular class.
|
<T extends Element> |
KeyIndexableGraph.createKeyIndex(String key,
Class<T> elementClass,
Parameter... indexParameters)
Create an automatic indexing structure for indexing provided key for element class.
|
<T extends Element> |
KeyIndexableGraph.dropKeyIndex(String key,
Class<T> elementClass)
Remove an automatic indexing structure associated with indexing provided key for element class.
|
<T extends Element> |
IndexableGraph.getIndex(String indexName,
Class<T> indexClass)
Get an index from the graph by its name and index class.
|
<T extends Element> |
KeyIndexableGraph.getIndexedKeys(Class<T> elementClass)
Return all the index keys associated with a particular element class.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
IndexableGraph.getIndices()
Get all the indices maintained by the graph.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
TinkerGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
TinkerGraph.createKeyIndex(String key,
Class<T> elementClass,
Parameter... indexParameters) |
<T extends Element> |
TinkerGraph.dropKeyIndex(String key,
Class<T> elementClass) |
<T extends Element> |
TinkerGraph.getIndex(String indexName,
Class<T> indexClass) |
<T extends Element> |
TinkerGraph.getIndexedKeys(Class<T> elementClass) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
TinkerGraph.getIndices() |
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultGraphQuery.DefaultGraphQueryIterable<T extends Element> |
class |
PropertyFilteredIterable<T extends Element>
This is a helper class for filtering an iterable of elements by their key/value.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ElementHelper.areEqual(Element a,
Object b)
A standard method for determining if two elements are equal.
|
static void |
ElementHelper.copyProperties(Element from,
Element to)
Copy the properties (key and value) from one element to another.
|
static Map<String,Object> |
ElementHelper.getProperties(Element element)
Get a clone of the properties of the provided element.
|
static boolean |
ElementHelper.haveEqualIds(Element a,
Element b)
Simply tests if the element ids are equal().
|
static boolean |
ElementHelper.haveEqualProperties(Element a,
Element b)
Determines whether two elements have the same properties.
|
boolean |
PropertyFilteredIterable.HasContainer.isLegal(Element element) |
boolean |
DefaultQuery.HasContainer.isLegal(Element element) |
static void |
ElementHelper.setProperties(Element element,
Map<String,Object> properties)
Set the properties of the provided element using the provided map.
|
static void |
ElementHelper.setProperties(Element element,
Object... keysValues)
Set the properties of the provided element using the provided key value pairs.
|
static void |
ElementHelper.validateProperty(Element element,
String key,
Object value)
Determines whether the property key/value for the specified element can be legally set.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
DefaultGraphQuery.DefaultGraphQueryIterable.getIndexedKeys(Class<? extends Element> elementClass) |
static long |
KeyIndexableGraphHelper.reIndexElements(Graph graph,
Iterable<? extends Element> elements,
Set<String> keys)
For those graphs that do no support automatic reindexing of elements when a key is provided for indexing, this method can be used to simulate that behavior.
|
static void |
ElementHelper.removeProperties(Iterable<Element> elements)
Clear all the properties from an iterable of elements.
|
static void |
ElementHelper.removeProperty(String key,
Iterable<Element> elements)
Remove a property from all elements in the provided iterable.
|
static void |
ElementHelper.renameProperty(String oldKey,
String newKey,
Iterable<Element> elements)
Renames a property by removing the old key and adding the stored value to the new key.
|
static void |
ElementHelper.typecastProperty(String key,
Class classCast,
Iterable<Element> elements)
Typecasts a property value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
LexicographicalElementComparator.compare(Element a,
Element b) |
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.jettison.json.JSONObject |
GraphSONUtility.jsonFromElement(Element element)
Creates GraphSON for a single graph element.
|
static org.codehaus.jettison.json.JSONObject |
GraphSONUtility.jsonFromElement(Element element,
Set<String> propertyKeys,
GraphSONMode mode)
Creates a Jettison JSONObject from a graph element.
|
com.fasterxml.jackson.databind.node.ObjectNode |
GraphSONUtility.objectNodeFromElement(Element element)
Creates GraphSON for a single graph element.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
GraphSONUtility.objectNodeFromElement(Element element,
Set<String> propertyKeys,
GraphSONMode mode)
Creates a Jackson ObjectNode from a graph element.
|
| Modifier and Type | Method and Description |
|---|---|
protected <E extends Element> |
BatchGraph.setProperties(E element,
Object... properties) |
| Modifier and Type | Class and Description |
|---|---|
class |
EventIndex<T extends Element>
An index that wraps graph elements in the "evented" way.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EventEdge
An edge with a GraphChangedListener attached.
|
class |
EventElement
An element with a GraphChangedListener attached.
|
class |
EventVertex
An vertex with a GraphChangedListener attached.
|
| Modifier and Type | Field and Description |
|---|---|
protected Element |
EventElement.baseElement |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
EventIndexableGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
EventIndexableGraph.getIndex(String indexName,
Class<T> indexClass) |
| Modifier and Type | Method and Description |
|---|---|
Element |
EventElement.getBaseElement() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
EventIndexableGraph.getIndices() |
| Constructor and Description |
|---|
EventElement(Element baseElement,
EventGraph eventGraph) |
| Modifier and Type | Class and Description |
|---|---|
class |
IdEdge |
class |
IdElement |
class |
IdVertex |
| Modifier and Type | Field and Description |
|---|---|
protected Element |
IdElement.baseElement |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
IdGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
IdGraph.createKeyIndex(String key,
Class<T> elementClass,
Parameter... indexParameters) |
<T extends Element> |
IdGraph.dropKeyIndex(String key,
Class<T> elementClass) |
<T extends Element> |
IdGraph.getIndex(String indexName,
Class<T> indexClass) |
<T extends Element> |
IdGraph.getIndexedKeys(Class<T> elementClass) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
IdGraph.getIndices() |
| Constructor and Description |
|---|
IdElement(Element baseElement,
IdGraph idGraph,
boolean propertyBased) |
| Modifier and Type | Class and Description |
|---|---|
class |
PartitionEdge |
class |
PartitionElement |
class |
PartitionVertex |
| Modifier and Type | Field and Description |
|---|---|
protected Element |
PartitionElement.baseElement |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
PartitionIndexableGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
PartitionIndexableGraph.getIndex(String indexName,
Class<T> indexClass) |
| Modifier and Type | Method and Description |
|---|---|
Element |
PartitionElement.getBaseElement() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
PartitionIndexableGraph.getIndices() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PartitionGraph.isInPartition(Element element) |
| Constructor and Description |
|---|
PartitionElement(Element baseElement,
PartitionGraph partitionGraph) |
| Modifier and Type | Class and Description |
|---|---|
class |
ReadOnlyEdge |
class |
ReadOnlyVertex |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
ReadOnlyIndexableGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
ReadOnlyKeyIndexableGraph.createKeyIndex(String name,
Class<T> elementClass,
Parameter... indexParameters) |
<T extends Element> |
ReadOnlyKeyIndexableGraph.dropKeyIndex(String name,
Class<T> elementClass) |
<T extends Element> |
ReadOnlyIndexableGraph.getIndex(String indexName,
Class<T> indexClass) |
<T extends Element> |
ReadOnlyKeyIndexableGraph.getIndexedKeys(Class<T> elementClass) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
ReadOnlyIndexableGraph.getIndices() |
| Modifier and Type | Class and Description |
|---|---|
class |
WrappedEdge |
class |
WrappedElement |
class |
WrappedVertex |
| Modifier and Type | Field and Description |
|---|---|
protected Element |
WrappedElement.baseElement |
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
WrappedIndexableGraph.createIndex(String indexName,
Class<T> indexClass,
Parameter... indexParameters) |
<T extends Element> |
WrappedIndexableGraph.getIndex(String indexName,
Class<T> indexClass) |
| Modifier and Type | Method and Description |
|---|---|
Element |
WrappedElement.getBaseElement() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Index<? extends Element>> |
WrappedIndexableGraph.getIndices() |
| Constructor and Description |
|---|
WrappedElement(Element baseElement) |
Copyright © 2010-2014. All Rights Reserved.