Class CoreKeyBloomFunctor

  • All Implemented Interfaces:
    org.apache.accumulo.core.file.keyfunctor.KeyFunctor

    public class CoreKeyBloomFunctor
    extends Object
    implements org.apache.accumulo.core.file.keyfunctor.KeyFunctor
    • Constructor Detail

      • CoreKeyBloomFunctor

        public CoreKeyBloomFunctor()
    • Method Detail

      • transform

        public org.apache.hadoop.util.bloom.Key transform​(org.apache.accumulo.core.data.Range range)
        Transforms a Range into a BloomFilter key. If the first vertices in the start and end keys of the range are the same, then we can create the appropriate BloomFilter key. If the key does not correspond to either an Entity or an Edge then we return null to indicate that the range cannot be converted into a single key for the Bloom filter.
        Specified by:
        transform in interface org.apache.accumulo.core.file.keyfunctor.KeyFunctor
      • transform

        public org.apache.hadoop.util.bloom.Key transform​(org.apache.accumulo.core.data.Key key)
        Transforms an Accumulo Key into the corresponding key for the Bloom filter. If the key does not correspond to either an Entity or an Edge then an IOException will be thrown by the method which will be caught and then null is returned.
        Specified by:
        transform in interface org.apache.accumulo.core.file.keyfunctor.KeyFunctor
      • getVertexFromRangeKey

        public byte[] getVertexFromRangeKey​(byte[] key)