@Component(value="titan-generic-dao") public class TitanGenericDao extends Object
Constructor and Description |
---|
TitanGenericDao() |
Modifier and Type | Method and Description |
---|---|
TitanOperationStatus |
commit() |
TitanOperationStatus |
createEdge(com.thinkaurelius.titan.core.TitanVertex vertexOut,
GraphNode to,
GraphEdgeLabels type,
Map<String,Object> properties) |
TitanOperationStatus |
createEdge(com.thinkaurelius.titan.core.TitanVertex vertexOut,
com.thinkaurelius.titan.core.TitanVertex vertexIn,
GraphEdgeLabels type,
Map<String,Object> properties) |
fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> |
createNode(GraphNode node) |
<T extends GraphNode> |
createNode(T node,
Class<T> clazz) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
createRelation(GraphNode from,
GraphNode to,
GraphEdgeLabels label,
Map<String,Object> properties) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
createRelation(GraphRelation relation) |
<T extends GraphNode> |
deleteChildrenNodes(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
deleteIncomingRelation(GraphRelation relation) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
deleteIncomingRelationByCriteria(GraphNode to,
GraphEdgeLabels label,
Map<String,Object> props) |
<T extends GraphNode> |
deleteNode(GraphNode node,
Class<T> clazz) |
<T extends GraphNode> |
deleteNode(String keyName,
Object keyValue,
Class<T> clazz) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
deleteOutgoingRelation(GraphRelation relation) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
deleteRelation(GraphNode from,
GraphNode to,
GraphEdgeLabels label) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
deleteRelation(GraphRelation relation) |
<T extends GraphNode> |
getAll(NodeTypeEnum type,
Class<T> clazz) |
<T extends GraphNode> |
getByCriteria(NodeTypeEnum type,
Class<T> clazz,
List<org.apache.commons.lang3.tuple.ImmutableTriple<QueryType,String,Object>> props) |
<T extends GraphNode> |
getByCriteria(NodeTypeEnum type,
Map<String,Object> props,
Class<T> clazz) |
<T extends GraphNode> |
getByCriteria(NodeTypeEnum type,
Map<String,Object> hasProps,
Map<String,Object> hasNotProps,
Class<T> clazz) |
<T extends GraphNode> |
getByCriteriaWithPradicat(NodeTypeEnum type,
Map<String,Map.Entry<com.thinkaurelius.titan.graphdb.query.TitanPredicate,Object>> props,
Class<T> clazz) |
<T extends GraphNode> |
getChild(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz) |
<T extends GraphNode> |
getChildByEdgeCriteria(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz,
Map<String,Object> edgeProperties) |
fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> |
getChildByEdgeCriteria(com.thinkaurelius.titan.core.TitanVertex vertex,
GraphEdgeLabels edgeType,
Map<String,Object> edgeProperties) |
<T extends GraphNode> |
getChildrenByEdgeCriteria(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
String vertexUniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz,
Map<String,Object> edgeProperties) |
<T extends GraphNode> |
getChildrenNodes(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz) |
<T extends GraphNode> |
getChildrenNodes(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz,
boolean withEdges) |
fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge>>,TitanOperationStatus> |
getChildrenVertecies(String key,
String uniqueId,
GraphEdgeLabels edgeType) |
org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge> |
getChildVertex(com.thinkaurelius.titan.core.TitanVertex vertex,
GraphEdgeLabels edgeType) |
fj.data.Either<List<org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> |
getEdgesForNode(GraphNode node,
org.apache.tinkerpop.gremlin.structure.Direction requestedDirection) |
fj.data.Either<com.thinkaurelius.titan.core.TitanGraph,TitanOperationStatus> |
getGraph() |
fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> |
getIncomingEdgeByCriteria(GraphNode to,
GraphEdgeLabels label,
Map<String,Object> props) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
getIncomingRelationByCriteria(GraphNode to,
GraphEdgeLabels label,
Map<String,Object> props) |
<T extends GraphNode> |
getNode(String keyName,
Object keyValue,
Class<T> clazz) |
fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> |
getOutgoingEdgeByCriteria(String key,
String value,
GraphEdgeLabels label,
Map<String,Object> props) |
fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> |
getOutgoingEdgeByCriteria(com.thinkaurelius.titan.core.TitanVertex vertex,
GraphEdgeLabels label,
Map<String,Object> props) |
fj.data.Either<List<org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> |
getOutgoingEdgesByCriteria(org.apache.tinkerpop.gremlin.structure.Vertex vertexFrom,
GraphEdgeLabels label,
Map<String,Object> props) |
<T extends GraphNode> |
getParentNode(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz) |
<T extends GraphNode> |
getParentNodes(String key,
String uniqueId,
GraphEdgeLabels edgeType,
NodeTypeEnum nodeTypeEnum,
Class<T> clazz) |
Map<String,Object> |
getProperties(org.apache.tinkerpop.gremlin.structure.Element element) |
Object |
getProperty(org.apache.tinkerpop.gremlin.structure.Edge edge,
String key) |
Object |
getProperty(com.thinkaurelius.titan.core.TitanVertex vertex,
String key) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
getRelation(GraphNode from,
GraphNode to,
GraphEdgeLabels label) |
fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> |
getVertexByProperty(String name,
Object value) |
boolean |
isGraphOpen() |
TitanOperationStatus |
lockElement(GraphNode node) |
TitanOperationStatus |
lockElement(String id,
NodeTypeEnum type) |
TitanOperationStatus |
releaseElement(GraphNode node) |
TitanOperationStatus |
releaseElement(String id,
NodeTypeEnum type) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
replaceRelationLabel(GraphNode from,
GraphNode to,
GraphEdgeLabels label,
GraphEdgeLabels newLabel) |
TitanOperationStatus |
rollback() |
void |
setProperties(org.apache.tinkerpop.gremlin.structure.Element element,
Map<String,Object> properties) |
void |
setTitanGraphClient(TitanGraphClient titanGraphClient) |
<T extends GraphNode> |
updateNode(GraphNode node,
Class<T> clazz) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
updateRelation(GraphNode from,
GraphNode to,
GraphEdgeLabels label,
Map<String,Object> properties) |
fj.data.Either<GraphRelation,TitanOperationStatus> |
updateRelation(GraphRelation relation) |
TitanOperationStatus |
updateVertex(GraphNode node,
com.thinkaurelius.titan.core.TitanVertex vertex) |
public TitanOperationStatus commit()
public TitanOperationStatus rollback()
public fj.data.Either<com.thinkaurelius.titan.core.TitanGraph,TitanOperationStatus> getGraph()
public boolean isGraphOpen()
public <T extends GraphNode> fj.data.Either<T,TitanOperationStatus> createNode(T node, Class<T> clazz)
node
- clazz
- public fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> createNode(GraphNode node)
public fj.data.Either<GraphRelation,TitanOperationStatus> createRelation(GraphRelation relation)
relation
- public TitanOperationStatus createEdge(com.thinkaurelius.titan.core.TitanVertex vertexOut, com.thinkaurelius.titan.core.TitanVertex vertexIn, GraphEdgeLabels type, Map<String,Object> properties)
public TitanOperationStatus createEdge(com.thinkaurelius.titan.core.TitanVertex vertexOut, GraphNode to, GraphEdgeLabels type, Map<String,Object> properties)
public fj.data.Either<GraphRelation,TitanOperationStatus> createRelation(GraphNode from, GraphNode to, GraphEdgeLabels label, Map<String,Object> properties)
from
- to
- label
- properties
- public fj.data.Either<GraphRelation,TitanOperationStatus> replaceRelationLabel(GraphNode from, GraphNode to, GraphEdgeLabels label, GraphEdgeLabels newLabel)
public <T extends GraphNode> fj.data.Either<T,TitanOperationStatus> getNode(String keyName, Object keyValue, Class<T> clazz)
keyName
- keyValue
- clazz
- public fj.data.Either<GraphRelation,TitanOperationStatus> getRelation(GraphNode from, GraphNode to, GraphEdgeLabels label)
from
- to
- label
- public fj.data.Either<GraphRelation,TitanOperationStatus> deleteIncomingRelationByCriteria(GraphNode to, GraphEdgeLabels label, Map<String,Object> props)
public fj.data.Either<GraphRelation,TitanOperationStatus> getIncomingRelationByCriteria(GraphNode to, GraphEdgeLabels label, Map<String,Object> props)
public fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> getIncomingEdgeByCriteria(GraphNode to, GraphEdgeLabels label, Map<String,Object> props)
public fj.data.Either<List<org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> getEdgesForNode(GraphNode node, org.apache.tinkerpop.gremlin.structure.Direction requestedDirection)
public fj.data.Either<GraphRelation,TitanOperationStatus> updateRelation(GraphNode from, GraphNode to, GraphEdgeLabels label, Map<String,Object> properties)
from
- to
- label
- properties
- public fj.data.Either<GraphRelation,TitanOperationStatus> updateRelation(GraphRelation relation)
relation
- public fj.data.Either<com.thinkaurelius.titan.core.TitanVertex,TitanOperationStatus> getVertexByProperty(String name, Object value)
public <T extends GraphNode> fj.data.Either<List<T>,TitanOperationStatus> getByCriteria(NodeTypeEnum type, Map<String,Object> hasProps, Map<String,Object> hasNotProps, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<List<T>,TitanOperationStatus> getByCriteria(NodeTypeEnum type, Class<T> clazz, List<org.apache.commons.lang3.tuple.ImmutableTriple<QueryType,String,Object>> props)
public <T extends GraphNode> fj.data.Either<List<T>,TitanOperationStatus> getByCriteria(NodeTypeEnum type, Map<String,Object> props, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<List<T>,TitanOperationStatus> getByCriteriaWithPradicat(NodeTypeEnum type, Map<String,Map.Entry<com.thinkaurelius.titan.graphdb.query.TitanPredicate,Object>> props, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<List<T>,TitanOperationStatus> getAll(NodeTypeEnum type, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<T,TitanOperationStatus> updateNode(GraphNode node, Class<T> clazz)
node
- clazz
- public TitanOperationStatus updateVertex(GraphNode node, com.thinkaurelius.titan.core.TitanVertex vertex)
public <T extends GraphNode> fj.data.Either<T,TitanOperationStatus> deleteNode(GraphNode node, Class<T> clazz)
node
- clazz
- public <T extends GraphNode> fj.data.Either<T,TitanOperationStatus> deleteNode(String keyName, Object keyValue, Class<T> clazz)
keyName
- keyValue
- clazz
- public fj.data.Either<GraphRelation,TitanOperationStatus> deleteRelation(GraphRelation relation)
public fj.data.Either<GraphRelation,TitanOperationStatus> deleteRelation(GraphNode from, GraphNode to, GraphEdgeLabels label)
public void setTitanGraphClient(TitanGraphClient titanGraphClient)
public fj.data.Either<GraphRelation,TitanOperationStatus> deleteIncomingRelation(GraphRelation relation)
public fj.data.Either<GraphRelation,TitanOperationStatus> deleteOutgoingRelation(GraphRelation relation)
public TitanOperationStatus lockElement(String id, NodeTypeEnum type)
id
- public TitanOperationStatus lockElement(GraphNode node)
public <T extends GraphNode> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>>,TitanOperationStatus> getChildrenNodes(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz, boolean withEdges)
public fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge>>,TitanOperationStatus> getChildrenVertecies(String key, String uniqueId, GraphEdgeLabels edgeType)
public <T extends GraphNode> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>>,TitanOperationStatus> getChildrenNodes(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz)
public TitanOperationStatus releaseElement(GraphNode node)
node
- public TitanOperationStatus releaseElement(String id, NodeTypeEnum type)
public <T extends GraphNode> fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>,TitanOperationStatus> getChild(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz)
public org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge> getChildVertex(com.thinkaurelius.titan.core.TitanVertex vertex, GraphEdgeLabels edgeType)
public <T extends GraphNode> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>>,TitanOperationStatus> getParentNodes(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>,TitanOperationStatus> getParentNode(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz)
public <T extends GraphNode> fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>,TitanOperationStatus> getChildByEdgeCriteria(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz, Map<String,Object> edgeProperties)
public fj.data.Either<org.apache.commons.lang3.tuple.ImmutablePair<com.thinkaurelius.titan.core.TitanVertex,org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> getChildByEdgeCriteria(com.thinkaurelius.titan.core.TitanVertex vertex, GraphEdgeLabels edgeType, Map<String,Object> edgeProperties)
public fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> getOutgoingEdgeByCriteria(String key, String value, GraphEdgeLabels label, Map<String,Object> props)
public fj.data.Either<org.apache.tinkerpop.gremlin.structure.Edge,TitanOperationStatus> getOutgoingEdgeByCriteria(com.thinkaurelius.titan.core.TitanVertex vertex, GraphEdgeLabels label, Map<String,Object> props)
public <T extends GraphNode> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>>,TitanOperationStatus> deleteChildrenNodes(String key, String uniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz)
public void setProperties(org.apache.tinkerpop.gremlin.structure.Element element, Map<String,Object> properties)
public Map<String,Object> getProperties(org.apache.tinkerpop.gremlin.structure.Element element)
public <T extends GraphNode> fj.data.Either<List<org.apache.commons.lang3.tuple.ImmutablePair<T,GraphEdge>>,TitanOperationStatus> getChildrenByEdgeCriteria(org.apache.tinkerpop.gremlin.structure.Vertex vertex, String vertexUniqueId, GraphEdgeLabels edgeType, NodeTypeEnum nodeTypeEnum, Class<T> clazz, Map<String,Object> edgeProperties)
public fj.data.Either<List<org.apache.tinkerpop.gremlin.structure.Edge>,TitanOperationStatus> getOutgoingEdgesByCriteria(org.apache.tinkerpop.gremlin.structure.Vertex vertexFrom, GraphEdgeLabels label, Map<String,Object> props)
Copyright © 2017. All rights reserved.