HBASE-12079 Deprecate KeyValueUtil#ensureKeyValue(s).
This commit is contained in:
parent
b48a474988
commit
8895ee694c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue