Package io.hgraphdb
Class HBaseEdge
- java.lang.Object
-
- io.hgraphdb.HBaseElement
-
- io.hgraphdb.HBaseEdge
-
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Edge
,org.apache.tinkerpop.gremlin.structure.Element
public class HBaseEdge extends HBaseElement implements org.apache.tinkerpop.gremlin.structure.Edge
-
-
Field Summary
-
Fields inherited from class io.hgraphdb.HBaseElement
createdAt, graph, id, indexKey, indexTs, isCached, isDeleted, label, properties, propertiesFullyLoaded, updatedAt
-
-
Constructor Summary
Constructors Constructor Description HBaseEdge(HBaseGraph graph, Object id)
HBaseEdge(HBaseGraph graph, Object id, String label, Long createdAt, Long updatedAt, Map<String,Object> properties)
HBaseEdge(HBaseGraph graph, Object id, String label, Long createdAt, Long updatedAt, Map<String,Object> properties, boolean propertiesFullyLoaded, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, org.apache.tinkerpop.gremlin.structure.Vertex outVertex)
HBaseEdge(HBaseGraph graph, Object id, String label, Long createdAt, Long updatedAt, Map<String,Object> properties, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, org.apache.tinkerpop.gremlin.structure.Vertex outVertex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(HBaseElement element)
void
deleteEdgeEndpoints()
void
deleteEdgeEndpoints(Long ts)
void
deleteFromIndexModel(String key, Long ts)
void
deleteFromModel()
ElementType
getElementType()
EdgeIndexModel
getIndexModel()
EdgeModel
getModel()
org.apache.tinkerpop.gremlin.structure.Vertex
getVertex(org.apache.tinkerpop.gremlin.structure.Direction direction)
org.apache.tinkerpop.gremlin.structure.Vertex
inVertex()
org.apache.tinkerpop.gremlin.structure.Vertex
outVertex()
<V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>>
properties(String... propertyKeys)
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
property(String key)
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
property(String key, V value)
void
remove()
void
removeStaleIndices()
protected void
setInVertex(HBaseVertex inVertex)
protected void
setOutVertex(HBaseVertex outVertex)
String
toString()
void
validate()
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
void
writeEdgeEndpoints()
void
writeToIndexModel(String key)
void
writeToModel()
-
Methods inherited from class io.hgraphdb.HBaseElement
arePropertiesFullyLoaded, createdAt, equals, getIndexKey, getIndexTs, getIndices, getProperties, getProperty, getPropertyKeys, getTable, graph, hashCode, hasIndex, hasProperty, id, incrementProperty, isCached, isDeleted, keys, label, load, removeProperty, removeStaleIndex, setCached, setDeleted, setGraph, setIndexKey, setIndexTs, setProperty, updatedAt, updatedAt
-
-
-
-
Constructor Detail
-
HBaseEdge
public HBaseEdge(HBaseGraph graph, Object id)
-
HBaseEdge
public HBaseEdge(HBaseGraph graph, Object id, String label, Long createdAt, Long updatedAt, Map<String,Object> properties)
-
HBaseEdge
public HBaseEdge(HBaseGraph graph, Object id, String label, Long createdAt, Long updatedAt, Map<String,Object> properties, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, org.apache.tinkerpop.gremlin.structure.Vertex outVertex)
-
-
Method Detail
-
validate
public void validate()
- Specified by:
validate
in classHBaseElement
-
getElementType
public ElementType getElementType()
- Specified by:
getElementType
in classHBaseElement
-
copyFrom
public void copyFrom(HBaseElement element)
- Overrides:
copyFrom
in classHBaseElement
-
outVertex
public org.apache.tinkerpop.gremlin.structure.Vertex outVertex()
- Specified by:
outVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
setOutVertex
protected void setOutVertex(HBaseVertex outVertex)
-
inVertex
public org.apache.tinkerpop.gremlin.structure.Vertex inVertex()
- Specified by:
inVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
setInVertex
protected void setInVertex(HBaseVertex inVertex)
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
- Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
getVertex
public org.apache.tinkerpop.gremlin.structure.Vertex getVertex(org.apache.tinkerpop.gremlin.structure.Direction direction) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
remove
public void remove()
- Specified by:
remove
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys)
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
property
public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
property
public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key, V value)
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
getModel
public EdgeModel getModel()
- Specified by:
getModel
in classHBaseElement
-
getIndexModel
public EdgeIndexModel getIndexModel()
- Specified by:
getIndexModel
in classHBaseElement
-
writeToModel
public void writeToModel()
- Specified by:
writeToModel
in classHBaseElement
-
deleteFromModel
public void deleteFromModel()
- Specified by:
deleteFromModel
in classHBaseElement
-
writeEdgeEndpoints
public void writeEdgeEndpoints()
-
deleteEdgeEndpoints
public void deleteEdgeEndpoints()
-
deleteEdgeEndpoints
public void deleteEdgeEndpoints(Long ts)
-
writeToIndexModel
public void writeToIndexModel(String key)
- Specified by:
writeToIndexModel
in classHBaseElement
-
deleteFromIndexModel
public void deleteFromIndexModel(String key, Long ts)
- Specified by:
deleteFromIndexModel
in classHBaseElement
-
removeStaleIndices
public void removeStaleIndices()
- Specified by:
removeStaleIndices
in classHBaseElement
-
-