HBASE-12079 Deprecate KeyValueUtil#ensureKeyValue(s).

This commit is contained in:
anoopsjohn 2014-09-29 08:06:23 +05:30
parent b48a474988
commit 8895ee694c
1 changed files with 3 additions and 0 deletions

View File

@ -524,12 +524,15 @@ public class KeyValueUtil {
* @param cell
* @return <code>cell<code> if it is an instance of {@link KeyValue} else we will return a
* new {@link KeyValue} instance made from <code>cell</code>
* @deprecated without any replacement.
*/
@Deprecated
public static KeyValue ensureKeyValue(final Cell cell) {
if (cell == null) return null;
return cell instanceof KeyValue? (KeyValue)cell: copyToNewKeyValue(cell);
}
@Deprecated
public static List<KeyValue> ensureKeyValues(List<Cell> cells) {
List<KeyValue> lazyList = Lists.transform(cells, new Function<Cell, KeyValue>() {
public KeyValue apply(Cell arg0) {