Package io.hgraphdb

Class HBaseElement

  • All Implemented Interfaces:
    org.apache.tinkerpop.gremlin.structure.Element
    Direct Known Subclasses:
    HBaseEdge, HBaseVertex

    public abstract class HBaseElement
    extends Object
    implements org.apache.tinkerpop.gremlin.structure.Element
    • Field Detail

      • id

        protected final Object id
      • label

        protected String label
      • createdAt

        protected Long createdAt
      • updatedAt

        protected Long updatedAt
      • propertiesFullyLoaded

        protected transient boolean propertiesFullyLoaded
      • indexTs

        protected transient long indexTs
      • isCached

        protected transient boolean isCached
      • isDeleted

        protected transient boolean isDeleted
    • Method Detail

      • validate

        public abstract void validate()
      • getElementType

        public abstract ElementType getElementType()
      • getTable

        public org.apache.hadoop.hbase.client.Table getTable()
      • graph

        public org.apache.tinkerpop.gremlin.structure.Graph graph()
        Specified by:
        graph in interface org.apache.tinkerpop.gremlin.structure.Element
      • setGraph

        public void setGraph​(HBaseGraph graph)
      • id

        public Object id()
        Specified by:
        id in interface org.apache.tinkerpop.gremlin.structure.Element
      • getIndexTs

        public long getIndexTs()
      • setIndexTs

        public void setIndexTs​(long indexTs)
      • isCached

        public boolean isCached()
      • setCached

        public void setCached​(boolean isCached)
      • isDeleted

        public boolean isDeleted()
      • setDeleted

        public void setDeleted​(boolean isDeleted)
      • arePropertiesFullyLoaded

        public boolean arePropertiesFullyLoaded()
      • load

        public void load()
      • getProperty

        public <V> V getProperty​(String key)
      • hasProperty

        public boolean hasProperty​(String key)
      • keys

        public Set<String> keys()
        Specified by:
        keys in interface org.apache.tinkerpop.gremlin.structure.Element
      • getPropertyKeys

        public Set<String> getPropertyKeys()
      • setProperty

        public void setProperty​(String key,
                                Object value)
      • incrementProperty

        public void incrementProperty​(String key,
                                      long value)
      • removeProperty

        public <V> V removeProperty​(String key)
      • label

        public String label()
        Specified by:
        label in interface org.apache.tinkerpop.gremlin.structure.Element
      • createdAt

        public Long createdAt()
      • updatedAt

        public Long updatedAt()
      • updatedAt

        public void updatedAt​(Long updatedAt)
      • getIndexModel

        public abstract BaseModel getIndexModel()
      • writeToModel

        public abstract void writeToModel()
      • deleteFromModel

        public abstract void deleteFromModel()
      • writeToIndexModel

        public abstract void writeToIndexModel​(String key)
      • deleteFromIndexModel

        public abstract void deleteFromIndexModel​(String key,
                                                  Long ts)
      • removeStaleIndex

        public void removeStaleIndex()
      • removeStaleIndices

        public abstract void removeStaleIndices()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object