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:
Zhihong Yu 2014-03-25 03:45:55 +00:00
parent 1bf2308543
commit f30de7377d
1 changed files with 2 additions and 19 deletions

View File

@ -60,7 +60,6 @@ public abstract class ColumnInterpreter<T, S, P 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 colQualifier
@ -68,24 +67,8 @@ Q extends Message, R extends Message> {
* @return value of type T
* @throws IOException
*/
public T getValue(byte[] colFamily, byte[] colQualifier, Cell c)
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;
}
public abstract T getValue(byte[] colFamily, byte[] colQualifier, Cell c)
throws IOException;
/**
* @param l1