Package org.apache.accumulo.core.util
Class DeprecationUtil
- java.lang.Object
-
- org.apache.accumulo.core.util.DeprecationUtil
-
public class DeprecationUtil extends Object
A utility class for managing deprecated items. This avoids scattering private helper methods all over the code with warnings suppression.This class will never be public API and methods will be removed as soon as they are no longer needed. No methods in this class will, themselves, be deprecated, because that would propagate the deprecation warning we are trying to avoid.
This class should not be used as a substitute for deprecated classes. It should only be used for implementation code which must remain to support the deprecated features, and only until that feature is removed.
-
-
Constructor Summary
Constructors Constructor Description DeprecationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isMockInstance(Instance instance)
static boolean
isMockInstanceSet(RangeInputSplit split)
static Instance
makeMockInstance(String instance)
static TabletLocator
makeMockLocator()
static void
setMockInstance(RangeInputSplit split, boolean isMockInstance)
-
-
-
Method Detail
-
isMockInstance
public static boolean isMockInstance(Instance instance)
-
setMockInstance
public static void setMockInstance(RangeInputSplit split, boolean isMockInstance)
-
isMockInstanceSet
public static boolean isMockInstanceSet(RangeInputSplit split)
-
makeMockLocator
public static TabletLocator makeMockLocator()
-
-