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.Key
transform(org.apache.accumulo.core.data.Key key)
Transforms an AccumuloKey
into the corresponding key for the Bloom filter.org.apache.hadoop.util.bloom.Key
transform(org.apache.accumulo.core.data.Range range)
Transforms aRange
into a BloomFilter key.
-
-
-
Method Detail
-
transform
public org.apache.hadoop.util.bloom.Key transform(org.apache.accumulo.core.data.Range range)
Transforms aRange
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 anEntity
or anEdge
then we returnnull
to indicate that the range cannot be converted into a single key for the Bloom filter.- Specified by:
transform
in 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 AccumuloKey
into the corresponding key for the Bloom filter. If the key does not correspond to either anEntity
or anEdge
then anIOException
will be thrown by the method which will be caught and thennull
is returned.- Specified by:
transform
in interfaceorg.apache.accumulo.core.file.keyfunctor.KeyFunctor
-
getVertexFromRangeKey
public byte[] getVertexFromRangeKey(byte[] key)
-
-