HBASE-10821 Make ColumnInterpreter#getValue() abstract
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1581217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1bf2308543
commit
f30de7377d
|
@ -60,7 +60,6 @@ public abstract class ColumnInterpreter<T, S, P extends Message,
|
||||||
Q extends Message, R extends Message> {
|
Q extends Message, R extends Message> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: when removing {@link #getValue(byte[], byte[], KeyValue)}, this method should be made abstract
|
|
||||||
*
|
*
|
||||||
* @param colFamily
|
* @param colFamily
|
||||||
* @param colQualifier
|
* @param colQualifier
|
||||||
|
@ -68,24 +67,8 @@ Q extends Message, R extends Message> {
|
||||||
* @return value of type T
|
* @return value of type T
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public T getValue(byte[] colFamily, byte[] colQualifier, Cell c)
|
public abstract T getValue(byte[] colFamily, byte[] colQualifier, Cell c)
|
||||||
throws IOException {
|
throws IOException;
|
||||||
// call the deprecated method for compatiblity.
|
|
||||||
KeyValue kv = KeyValueUtil.ensureKeyValue(c);
|
|
||||||
return getValue(colFamily, colQualifier, kv);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method used to be abstract, and is preserved for compatibility and easy of conversion
|
|
||||||
* from 0.94->0.96.
|
|
||||||
*
|
|
||||||
* Please override {@link #getValue(byte[], byte[], Cell)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public T getValue(byte[] colFamily, byte[] colQualifier, KeyValue kv)
|
|
||||||
throws IOException {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param l1
|
* @param l1
|
||||||
|
|
Loading…
Reference in New Issue