Class AbstractCoreKeyRangeFactory

    • Constructor Detail

      • AbstractCoreKeyRangeFactory

        public AbstractCoreKeyRangeFactory()
    • Method Detail

      • getRange

        public List<org.apache.accumulo.core.data.Range> getRange​(ElementId elementId,
                                                                  GraphFilters operation)
                                                           throws RangeFactoryException
        Description copied from interface: RangeFactory
        Returns a Range representing a query for the given ID
        Specified by:
        getRange in interface RangeFactory
        Parameters:
        elementId - the element id to get the range for
        operation - the operation
        Returns:
        A List of Ranges that are required to return all elements that match the parameters of the query.
        Throws:
        RangeFactoryException - if a range could not be created
      • getRangeFromPair

        public org.apache.accumulo.core.data.Range getRangeFromPair​(Pair<ElementId,​ElementId> pairRange,
                                                                    GraphFilters operation)
                                                             throws RangeFactoryException
        Description copied from interface: RangeFactory
        Operation Returns a Range representing a query for all values between the given ElementIds taken from the minimum comparable byte value of the provided keys and the maximum comparable byte value. Note that depending on the serialisation mechanism used and your key design the results of a range query will differ. The intent here is that values in your gaffer.accumulostore instance should be ordered within the table so that Entities with an Integer Identifier occur in the order 1 2 3

        So that a provided pair of 1 and 3 will return entities 1, 2 and 3.

        Specified by:
        getRangeFromPair in interface RangeFactory
        Parameters:
        pairRange - the pair of element ids to get the range for
        operation - the operation
        Returns:
        A List of Ranges that are required to return all elements that match the parameters of the query.
        Throws:
        RangeFactoryException - if a range could not be created