public class RestAPICypherImpl extends Object implements RestAPI
RestAPIInternal.Load| Modifier and Type | Field and Description |
|---|---|
static String |
_MATCH_NODE_QUERY |
static String |
_MATCH_REL_QUERY |
static String |
_QUERY_RETURN_NODE |
static String |
_QUERY_RETURN_REL |
static String |
GET_NODE_QUERY |
static String |
GET_REL_QUERY |
static String |
GET_REL_TYPES_QUERY |
| Modifier | Constructor and Description |
|---|---|
protected |
RestAPICypherImpl(RestAPI restAPI) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabels(RestNode node,
Collection<String> labels) |
RestNode |
addToCache(RestNode restNode) |
RestRelationship |
addToCache(RestRelationship restRelationship) |
<T extends org.neo4j.graphdb.PropertyContainer> |
addToIndex(T entity,
RestIndex index,
String key,
Object value) |
RequestResult |
batch(Collection<Map<String,Object>> batchRequestData) |
org.neo4j.graphdb.Transaction |
beginTx() |
void |
close() |
<T extends org.neo4j.graphdb.PropertyContainer> |
createIndex(Class<T> type,
String indexName,
Map<String,String> config) |
void |
createIndex(String type,
String indexName,
Map<String,String> config) |
RestNode |
createNode(Map<String,Object> props) |
RestNode |
createNode(Map<String,Object> props,
Collection<String> labels) |
RestRelationship |
createRelationship(org.neo4j.graphdb.Node startNode,
org.neo4j.graphdb.Node endNode,
org.neo4j.graphdb.RelationshipType type,
Map<String,Object> props) |
RestEntity |
createRestEntity(Map data) |
RestTraversalDescription |
createTraversalDescription() |
void |
delete(RestIndex index) |
void |
deleteEntity(RestEntity entity) |
Collection<String> |
getAllLabelNames() |
Iterable<org.neo4j.graphdb.Node> |
getAllNodes() |
Set<String> |
getAutoIndexedProperties(Class forClass) |
String |
getBaseUri() |
int |
getDegree(RestNode restNode,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
RestEntityExtractor |
getEntityExtractor() |
<S extends org.neo4j.graphdb.PropertyContainer> |
getIndex(Class<S> entityType,
String indexName,
String key,
Object value) |
<T extends org.neo4j.graphdb.PropertyContainer> |
getIndex(String indexName) |
RestNode |
getNodeById(long id) |
RestNode |
getNodeById(long id,
RestAPIInternal.Load force) |
RestNode |
getNodeFromCache(long id) |
Iterable<RestNode> |
getNodesByLabel(String label) |
Iterable<RestNode> |
getNodesByLabelAndProperty(String label,
String property,
Object value) |
RestNode |
getOrCreateNode(RestIndex<org.neo4j.graphdb.Node> index,
String key,
Object value,
Map<String,Object> properties,
Collection<String> labels) |
org.neo4j.graphdb.Relationship |
getOrCreateRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Map<String,Object> props) |
RestRelationship |
getOrCreateRelationship(RestIndex<org.neo4j.graphdb.Relationship> index,
String key,
Object value,
RestNode start,
RestNode end,
String type,
Map<String,Object> properties) |
RestRelationship |
getRelationshipById(long id) |
RestRelationship |
getRelationshipById(long id,
RestAPIInternal.Load force) |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(RestNode restNode,
org.neo4j.graphdb.Direction direction,
org.neo4j.graphdb.RelationshipType... types) |
Iterable<org.neo4j.graphdb.RelationshipType> |
getRelationshipTypes() |
Iterable<org.neo4j.graphdb.RelationshipType> |
getRelationshipTypes(RestNode node) |
RestRelationship |
getRelFromCache(long id) |
RestRequest |
getRestRequest() |
RestCypherTransactionManager |
getTxManager() |
boolean |
hasToUpdate(long lastUpdate) |
RestIndexManager |
index() |
IndexInfo |
indexInfo(String indexType) |
boolean |
isAutoIndexingEnabled(Class<? extends org.neo4j.graphdb.PropertyContainer> clazz) |
static String |
MATCH_NODE_QUERY(String name) |
RestNode |
merge(String labelName,
String key,
Object value,
Map<String,Object> nodeProperties,
Collection<String> labels) |
CypherTransaction |
newCypherTransaction() |
Map<String,Object> |
props(Map<String,Object> props) |
<T extends org.neo4j.graphdb.PropertyContainer> |
putIfAbsent(T entity,
RestIndex index,
String key,
Object value) |
CypherResult |
query(String statement,
Map<String,Object> params) |
QueryResult<Map<String,Object>> |
query(String statement,
Map<String,Object> params,
ResultConverter resultConverter) |
<S extends org.neo4j.graphdb.PropertyContainer> |
queryIndex(Class<S> entityType,
String indexName,
String key,
Object value) |
<T extends org.neo4j.graphdb.PropertyContainer> |
removeFromIndex(RestIndex index,
T entity) |
<T extends org.neo4j.graphdb.PropertyContainer> |
removeFromIndex(RestIndex index,
T entity,
String key) |
<T extends org.neo4j.graphdb.PropertyContainer> |
removeFromIndex(RestIndex index,
T entity,
String key,
Object value) |
void |
removeLabel(RestNode node,
String label) |
void |
removeNodeFromCache(long id) |
void |
removeProperty(RestEntity entity,
String key) |
void |
removeRelFromCache(long id) |
void |
resetIndex(Class type) |
void |
setAutoIndexingEnabled(Class<? extends org.neo4j.graphdb.PropertyContainer> clazz,
boolean enabled) |
void |
setPropertiesOnEntity(RestEntity entity,
Map<String,Object> properties) |
void |
setPropertyOnEntity(RestEntity entity,
String key,
Object value) |
void |
startAutoIndexingProperty(Class forClass,
String s) |
void |
stopAutoIndexingProperty(Class forClass,
String s) |
RestTraverser |
traverse(RestNode restNode,
Map<String,Object> description) |
Iterable<org.neo4j.graphdb.Relationship> |
updateRelationships(org.neo4j.graphdb.Node start,
Collection<org.neo4j.graphdb.Node> endNodes,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
String targetLabel) |
public static final String _QUERY_RETURN_NODE
public static final String _QUERY_RETURN_REL
public static final String _MATCH_NODE_QUERY
public static final String GET_NODE_QUERY
public static final String _MATCH_REL_QUERY
public static final String GET_REL_QUERY
public static final String GET_REL_TYPES_QUERY
protected RestAPICypherImpl(RestAPI restAPI)
public RestNode getNodeById(long id, RestAPIInternal.Load force)
getNodeById in interface RestAPIInternalpublic RestRelationship addToCache(RestRelationship restRelationship)
addToCache in interface RestAPIInternalpublic RestRelationship getRelationshipById(long id, RestAPIInternal.Load force)
getRelationshipById in interface RestAPIInternalpublic RestNode getNodeFromCache(long id)
getNodeFromCache in interface RestAPIInternalpublic RestRelationship getRelFromCache(long id)
getRelFromCache in interface RestAPIInternalpublic void removeNodeFromCache(long id)
removeNodeFromCache in interface RestAPIInternalpublic void removeRelFromCache(long id)
removeRelFromCache in interface RestAPIInternalpublic RestNode getNodeById(long id)
getNodeById in interface RestAPIpublic RestRelationship getRelationshipById(long id)
getRelationshipById in interface RestAPIpublic RestNode createNode(Map<String,Object> props)
createNode in interface RestAPIpublic RestNode createNode(Map<String,Object> props, Collection<String> labels)
createNode in interface RestAPIpublic RestNode merge(String labelName, String key, Object value, Map<String,Object> nodeProperties, Collection<String> labels)
public RestNode addToCache(RestNode restNode)
addToCache in interface RestAPIInternalpublic RestRelationship createRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> props)
createRelationship in interface RestAPIpublic void removeLabel(RestNode node, String label)
removeLabel in interface RestAPIpublic Iterable<RestNode> getNodesByLabel(String label)
getNodesByLabel in interface RestAPIpublic Iterable<RestNode> getNodesByLabelAndProperty(String label, String property, Object value)
getNodesByLabelAndProperty in interface RestAPIpublic Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes(RestNode node)
getRelationshipTypes in interface RestAPIpublic int getDegree(RestNode restNode, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(RestNode restNode, org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... types)
getRelationships in interface RestAPIpublic void addLabels(RestNode node, Collection<String> labels)
public RestRequest getRestRequest()
getRestRequest in interface RestAPIInternalpublic RestCypherTransactionManager getTxManager()
public <S extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.IndexHits<S> getIndex(Class<S> entityType, String indexName, String key, Object value)
getIndex in interface RestAPIIndexpublic <S extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.IndexHits<S> queryIndex(Class<S> entityType, String indexName, String key, Object value)
queryIndex in interface RestAPIIndexpublic RestIndexManager index()
index in interface RestAPIIndexpublic void deleteEntity(RestEntity entity)
deleteEntity in interface RestAPIpublic void setPropertyOnEntity(RestEntity entity, String key, Object value)
setPropertyOnEntity in interface RestAPIpublic void setPropertiesOnEntity(RestEntity entity, Map<String,Object> properties)
setPropertiesOnEntity in interface RestAPIpublic void removeProperty(RestEntity entity, String key)
removeProperty in interface RestAPIpublic RestNode getOrCreateNode(RestIndex<org.neo4j.graphdb.Node> index, String key, Object value, Map<String,Object> properties, Collection<String> labels)
getOrCreateNode in interface RestAPIIndexpublic RestRelationship getOrCreateRelationship(RestIndex<org.neo4j.graphdb.Relationship> index, String key, Object value, RestNode start, RestNode end, String type, Map<String,Object> properties)
getOrCreateRelationship in interface RestAPIIndexpublic CypherResult query(String statement, Map<String,Object> params)
public CypherTransaction newCypherTransaction()
public QueryResult<Map<String,Object>> query(String statement, Map<String,Object> params, ResultConverter resultConverter)
public RestTraverser traverse(RestNode restNode, Map<String,Object> description)
public RequestResult batch(Collection<Map<String,Object>> batchRequestData)
public <T extends org.neo4j.graphdb.PropertyContainer> RestIndex<T> getIndex(String indexName)
getIndex in interface RestAPIIndexpublic void createIndex(String type, String indexName, Map<String,String> config)
createIndex in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> RestIndex<T> createIndex(Class<T> type, String indexName, Map<String,String> config)
createIndex in interface RestAPIIndexpublic void resetIndex(Class type)
resetIndex in interface RestAPIInternalpublic org.neo4j.graphdb.Relationship getOrCreateRelationship(org.neo4j.graphdb.Node start,
org.neo4j.graphdb.Node end,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Map<String,Object> props)
getOrCreateRelationship in interface RestAPIpublic Iterable<org.neo4j.graphdb.Relationship> updateRelationships(org.neo4j.graphdb.Node start, Collection<org.neo4j.graphdb.Node> endNodes, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, String targetLabel)
updateRelationships in interface RestAPIpublic boolean isAutoIndexingEnabled(Class<? extends org.neo4j.graphdb.PropertyContainer> clazz)
isAutoIndexingEnabled in interface RestAPIIndexpublic void setAutoIndexingEnabled(Class<? extends org.neo4j.graphdb.PropertyContainer> clazz, boolean enabled)
setAutoIndexingEnabled in interface RestAPIIndexpublic Set<String> getAutoIndexedProperties(Class forClass)
getAutoIndexedProperties in interface RestAPIIndexpublic void startAutoIndexingProperty(Class forClass, String s)
startAutoIndexingProperty in interface RestAPIIndexpublic void stopAutoIndexingProperty(Class forClass, String s)
stopAutoIndexingProperty in interface RestAPIIndexpublic void delete(RestIndex index)
delete in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> void removeFromIndex(RestIndex index, T entity, String key, Object value)
removeFromIndex in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> void removeFromIndex(RestIndex index, T entity, String key)
removeFromIndex in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> void removeFromIndex(RestIndex index, T entity)
removeFromIndex in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> void addToIndex(T entity,
RestIndex index,
String key,
Object value)
addToIndex in interface RestAPIIndexpublic <T extends org.neo4j.graphdb.PropertyContainer> T putIfAbsent(T entity,
RestIndex index,
String key,
Object value)
putIfAbsent in interface RestAPIIndexpublic boolean hasToUpdate(long lastUpdate)
hasToUpdate in interface RestAPIInternalpublic IndexInfo indexInfo(String indexType)
indexInfo in interface RestAPIIndexpublic Collection<String> getAllLabelNames()
getAllLabelNames in interface RestAPIpublic Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()
getRelationshipTypes in interface RestAPIpublic RestTraversalDescription createTraversalDescription()
createTraversalDescription in interface RestAPIpublic String getBaseUri()
getBaseUri in interface RestAPIInternalpublic RestEntityExtractor getEntityExtractor()
getEntityExtractor in interface RestAPIInternalpublic RestEntity createRestEntity(Map data)
createRestEntity in interface RestAPIInternalpublic Iterable<org.neo4j.graphdb.Node> getAllNodes()
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.