HBASE-22235 OperationStatus.{SUCCESS|FAILURE|NOT_RUN} are not visible to 3rd party coprocessors
This commit is contained in:
parent
f9cffd1c8d
commit
6ac2437485
|
@ -84,7 +84,7 @@ public final class HConstants {
|
||||||
/**
|
/**
|
||||||
* Status codes used for return values of bulk operations.
|
* Status codes used for return values of bulk operations.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
||||||
public enum OperationStatusCode {
|
public enum OperationStatusCode {
|
||||||
NOT_RUN,
|
NOT_RUN,
|
||||||
SUCCESS,
|
SUCCESS,
|
||||||
|
|
|
@ -18,8 +18,10 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hadoop.hbase.regionserver;
|
package org.apache.hadoop.hbase.regionserver;
|
||||||
|
|
||||||
import org.apache.yetus.audience.InterfaceAudience;
|
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.HConstants.OperationStatusCode;
|
import org.apache.hadoop.hbase.HConstants.OperationStatusCode;
|
||||||
|
import org.apache.yetus.audience.InterfaceAudience;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* This class stores the Operation status code and the exception message
|
* This class stores the Operation status code and the exception message
|
||||||
|
@ -28,20 +30,17 @@ import org.apache.hadoop.hbase.HConstants.OperationStatusCode;
|
||||||
* the operation status in future.
|
* the operation status in future.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
|
||||||
public class OperationStatus {
|
public class OperationStatus {
|
||||||
|
|
||||||
/** Singleton for successful operations. */
|
/** Singleton for successful operations. */
|
||||||
static final OperationStatus SUCCESS =
|
public static final OperationStatus SUCCESS = new OperationStatus(OperationStatusCode.SUCCESS);
|
||||||
new OperationStatus(OperationStatusCode.SUCCESS);
|
|
||||||
|
|
||||||
/** Singleton for failed operations. */
|
/** Singleton for failed operations. */
|
||||||
static final OperationStatus FAILURE =
|
public static final OperationStatus FAILURE = new OperationStatus(OperationStatusCode.FAILURE);
|
||||||
new OperationStatus(OperationStatusCode.FAILURE);
|
|
||||||
|
|
||||||
/** Singleton for operations not yet run. */
|
/** Singleton for operations not yet run. */
|
||||||
static final OperationStatus NOT_RUN =
|
public static final OperationStatus NOT_RUN = new OperationStatus(OperationStatusCode.NOT_RUN);
|
||||||
new OperationStatus(OperationStatusCode.NOT_RUN);
|
|
||||||
|
|
||||||
private final OperationStatusCode code;
|
private final OperationStatusCode code;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue