Class SplitUtils
- java.lang.Object
-
- org.apache.accumulo.core.client.mapreduce.impl.SplitUtils
-
public class SplitUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SplitUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
static long
getRangeLength(Range range)
static void
updateSplit(RangeInputSplit split, Instance instance, InputTableConfig tableConfig, String principal, AuthenticationToken token, Authorizations auths, org.apache.log4j.Level logLevel)
Central place to set common split configuration not handled by split constructors.
-
-
-
Method Detail
-
updateSplit
public static void updateSplit(RangeInputSplit split, Instance instance, InputTableConfig tableConfig, String principal, AuthenticationToken token, Authorizations auths, org.apache.log4j.Level logLevel)
Central place to set common split configuration not handled by split constructors. The intention is to make it harder to miss optional setters in future refactor.
-
getProgress
public static float getProgress(ByteSequence start, ByteSequence end, ByteSequence position)
-
getRangeLength
public static long getRangeLength(Range range) throws IOException
- Throws:
IOException
-
-