Class CoreKeyBloomFunctor
- java.lang.Object
-
- uk.gov.gchq.gaffer.accumulostore.key.core.impl.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 Summary
Constructors Constructor Description CoreKeyBloomFunctor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getVertexFromRangeKey(byte[] key)org.apache.hadoop.util.bloom.Keytransform(org.apache.accumulo.core.data.Key key)Transforms an AccumuloKeyinto the corresponding key for the Bloom filter.org.apache.hadoop.util.bloom.Keytransform(org.apache.accumulo.core.data.Range range)Transforms aRangeinto a BloomFilter key.
-
-
-
Method Detail
-
transform
public org.apache.hadoop.util.bloom.Key transform(org.apache.accumulo.core.data.Range range)
Transforms aRangeinto 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 anEntityor anEdgethen we returnnullto indicate that the range cannot be converted into a single key for the Bloom filter.- Specified by:
transformin interfaceorg.apache.accumulo.core.file.keyfunctor.KeyFunctor
-
transform
public org.apache.hadoop.util.bloom.Key transform(org.apache.accumulo.core.data.Key key)
Transforms an AccumuloKeyinto the corresponding key for the Bloom filter. If the key does not correspond to either anEntityor anEdgethen anIOExceptionwill be thrown by the method which will be caught and thennullis returned.- Specified by:
transformin interfaceorg.apache.accumulo.core.file.keyfunctor.KeyFunctor
-
getVertexFromRangeKey
public byte[] getVertexFromRangeKey(byte[] key)
-
-