HBASE-15609 Remove PB references from Result, DoubleColumnInterpreter and

any such public facing class for 2.0 (Ram)
This commit is contained in:
Ramkrishna 2016-05-09 14:57:39 +05:30
parent 2c280c718a
commit 94c4d568b5
6 changed files with 17 additions and 3 deletions

View File

@ -366,6 +366,7 @@ public class ClusterStatus extends VersionedWritable {
*
* @return the protobuf ClusterStatus
*/
@Deprecated
public ClusterStatusProtos.ClusterStatus convert() {
ClusterStatusProtos.ClusterStatus.Builder builder =
ClusterStatusProtos.ClusterStatus.newBuilder();
@ -432,6 +433,7 @@ public class ClusterStatus extends VersionedWritable {
* @param proto the protobuf ClusterStatus
* @return the converted ClusterStatus
*/
@Deprecated
public static ClusterStatus convert(ClusterStatusProtos.ClusterStatus proto) {
Map<ServerName, ServerLoad> servers = null;

View File

@ -1001,6 +1001,7 @@ public class Result implements CellScannable, CellScanner {
* @param loadStats statistics about the current region from which this was returned
*/
@InterfaceAudience.Private
@Deprecated
public void setStatistics(ClientProtos.RegionLoadStats loadStats) {
this.stats = loadStats;
}
@ -1009,6 +1010,7 @@ public class Result implements CellScannable, CellScanner {
* @return the associated statistics about the region from which this was returned. Can be
* <tt>null</tt> if stats are disabled.
*/
@Deprecated
public ClientProtos.RegionLoadStats getStats() {
return stats;
}

View File

@ -24,8 +24,10 @@ import java.math.RoundingMode;
import org.apache.hadoop.hbase.util.ByteStringer;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg;
@ -36,7 +38,8 @@ import org.apache.hadoop.hbase.util.Bytes;
* is required at the RegionServer also.
*
*/
@InterfaceAudience.Private
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
@InterfaceStability.Evolving
public class BigDecimalColumnInterpreter extends ColumnInterpreter<BigDecimal, BigDecimal,
EmptyMsg, BigDecimalMsg, BigDecimalMsg> {

View File

@ -23,6 +23,7 @@ import java.io.IOException;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg;
@ -36,7 +37,7 @@ import org.apache.hadoop.hbase.util.Bytes;
* TestDoubleColumnInterpreter methods for its sample usage.
* Its methods handle null arguments gracefully.
*/
@InterfaceAudience.Public
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
@InterfaceStability.Evolving
public class DoubleColumnInterpreter extends ColumnInterpreter<Double, Double,
EmptyMsg, DoubleMsg, DoubleMsg>{

View File

@ -21,7 +21,9 @@ package org.apache.hadoop.hbase.client.coprocessor;
import java.io.IOException;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg;
@ -35,7 +37,8 @@ import org.apache.hadoop.hbase.util.Bytes;
* TestAggregateProtocol methods for its sample usage.
* Its methods handle null arguments gracefully.
*/
@InterfaceAudience.Private
@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
@InterfaceStability.Evolving
public class LongColumnInterpreter extends ColumnInterpreter<Long, Long,
EmptyMsg, LongMsg, LongMsg> {

View File

@ -162,6 +162,7 @@ public class ProcedureInfo implements Cloneable {
}
@InterfaceAudience.Private
@Deprecated
public ForeignExceptionMessage getForeignExceptionMessage() {
return exception;
}
@ -221,6 +222,7 @@ public class ProcedureInfo implements Cloneable {
* instance.
*/
@InterfaceAudience.Private
@Deprecated
public static ProcedureProtos.Procedure convertToProcedureProto(
final ProcedureInfo procInfo) {
ProcedureProtos.Procedure.Builder builder = ProcedureProtos.Procedure.newBuilder();
@ -256,6 +258,7 @@ public class ProcedureInfo implements Cloneable {
* instance.
*/
@InterfaceAudience.Private
@Deprecated
public static ProcedureInfo convert(final ProcedureProtos.Procedure procProto) {
NonceKey nonceKey = null;
if (procProto.getNonce() != HConstants.NO_NONCE) {