Class ByteEntityAccumuloElementConverter

  • All Implemented Interfaces:
    AccumuloElementConverter

    public class ByteEntityAccumuloElementConverter
    extends AbstractCoreKeyAccumuloElementConverter
    The ByteEntityAccumuloElementConverter converts Gaffer Elements to Accumulo Keys and Values.

    The way keys are created can be summarised as the following. For Edges the resulting key will be: Source Value + Delimiter + Flag + Delimiter + Destination Value + Delimiter + Flag, and a second edge of Destination Value + Delimiter + Flag + Delimiter + Source Value + Delimiter + Flag).

    For entities the resulting key will be: Identifier Value + Delimiter + Flag

    Note that the Delimiter referenced in the above example is the byte representation of the number 0 for this implementation and the values are appropriately escaped. The Flag is a byte value that changes depending on whether it being used on an entity, an undirected edge or a directed edge input as the user specified or reversed. The flag values are as follows: Entity = 1, Undirected Edge = 4, Directed Edge = 2, Reversed Directed Edge = 3.

    • Constructor Detail

      • ByteEntityAccumuloElementConverter

        public ByteEntityAccumuloElementConverter​(Schema schema)