Class ElementModel

    • Constructor Detail

      • ElementModel

        public ElementModel​(HBaseGraph graph,
                            org.apache.hadoop.hbase.client.Table table)
    • Method Detail

      • load

        public void load​(org.apache.tinkerpop.gremlin.structure.Element element)
        Load the element from the backing table.
        Parameters:
        element - The element
      • load

        public void load​(List<? extends org.apache.tinkerpop.gremlin.structure.Element> elements)
        Load the elements from the backing table.
        Parameters:
        elements - The elements
      • clearProperty

        public PropertyRemover clearProperty​(org.apache.tinkerpop.gremlin.structure.Element element,
                                             String key)
        Delete the property entry from property table.
        Parameters:
        element - The element
        key - The property key
      • writeProperty

        public PropertyWriter writeProperty​(org.apache.tinkerpop.gremlin.structure.Element element,
                                            String key,
                                            Object value)
        Write the given property to the property table.
        Parameters:
        element - The element
        key - The property key
        value - The property value
      • incrementProperty

        public PropertyIncrementer incrementProperty​(org.apache.tinkerpop.gremlin.structure.Element element,
                                                     String key,
                                                     long value)
        Increment the given property in the property table.
        Parameters:
        element - The element
        key - The property key
        value - The amount to increment
      • getPropertyScan

        protected org.apache.hadoop.hbase.client.Scan getPropertyScan​(String label)
      • getPropertyScan

        protected org.apache.hadoop.hbase.client.Scan getPropertyScan​(String label,
                                                                      byte[] key,
                                                                      byte[] val)
      • getPropertyScan

        protected org.apache.hadoop.hbase.client.Scan getPropertyScan​(String label,
                                                                      byte[] key,
                                                                      byte[] inclusiveFromValue,
                                                                      byte[] exclusiveToValue)