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.PartitionerThis 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 intgetPartition(Object obj)static String[]getSplits(AccumuloStore store)intnumPartitions()voidsetNumSubBins(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:
numPartitionsin classorg.apache.spark.Partitioner
-
getPartition
public int getPartition(Object obj)
- Specified by:
getPartitionin classorg.apache.spark.Partitioner
-
getSplits
public static String[] getSplits(AccumuloStore store) throws OperationException
- Throws:
OperationException
-
-