Class AccumuloKeyRangePartitioner
- java.lang.Object
-
- org.apache.spark.Partitioner
-
- uk.gov.gchq.gaffer.sparkaccumulo.operation.utils.AccumuloKeyRangePartitioner
-
- All Implemented Interfaces:
Serializable
,scala.Serializable
public class AccumuloKeyRangePartitioner extends org.apache.spark.Partitioner
This is a spark compatible implementation of the accumulo RangePartitioner ( @link org.apache.accumulo.core.client.mapreduce.lib.partition.RangePartitioner }- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccumuloKeyRangePartitioner(AccumuloStore store)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPartition(Object obj)
static String[]
getSplits(AccumuloStore store)
int
numPartitions()
void
setNumSubBins(int numSubBins)
-
-
-
Constructor Detail
-
AccumuloKeyRangePartitioner
public AccumuloKeyRangePartitioner(AccumuloStore store) throws OperationException
- Throws:
OperationException
-
-
Method Detail
-
setNumSubBins
public void setNumSubBins(int numSubBins)
-
numPartitions
public int numPartitions()
- Specified by:
numPartitions
in classorg.apache.spark.Partitioner
-
getPartition
public int getPartition(Object obj)
- Specified by:
getPartition
in classorg.apache.spark.Partitioner
-
getSplits
public static String[] getSplits(AccumuloStore store) throws OperationException
- Throws:
OperationException
-
-