Package org.apache.hadoop.hbase
Class KeyValueTestUtil
java.lang.Object
org.apache.hadoop.hbase.KeyValueTestUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsIgnoreMvccVersion
(Collection<? extends Cell> kvCollection1, Collection<? extends Cell> kvCollection2) Checks whether KeyValues from kvCollection2 are contained in kvCollection1.static KeyValue
static KeyValue
create
(String row, String family, String qualifier, long timestamp, KeyValue.Type type, String value) protected static String
protected static String
protected static String
getRowString
(KeyValue kv) protected static String
protected static String
protected static String
rewindThenToList
(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags) static ByteBuffer
toByteBufferAndRewind
(Iterable<? extends KeyValue> kvs, boolean includeMemstoreTS) static String
toStringWithPadding
(Collection<? extends KeyValue> kvs, boolean includeMeta) toStringprotected static String
toStringWithPadding
(KeyValue kv, int maxRowLength, int maxFamilyLength, int maxQualifierLength, int maxTimestampLength, boolean includeMeta)
-
Constructor Details
-
KeyValueTestUtil
public KeyValueTestUtil()
-
-
Method Details
-
create
-
create
-
toByteBufferAndRewind
public static ByteBuffer toByteBufferAndRewind(Iterable<? extends KeyValue> kvs, boolean includeMemstoreTS) -
containsIgnoreMvccVersion
public static boolean containsIgnoreMvccVersion(Collection<? extends Cell> kvCollection1, Collection<? extends Cell> kvCollection2) Checks whether KeyValues from kvCollection2 are contained in kvCollection1. The comparison is made without distinguishing MVCC version of the KeyValues- Returns:
- true if KeyValues from kvCollection2 are contained in kvCollection1
-
rewindThenToList
public static List<KeyValue> rewindThenToList(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags) -
toStringWithPadding
toString -
toStringWithPadding
protected static String toStringWithPadding(KeyValue kv, int maxRowLength, int maxFamilyLength, int maxQualifierLength, int maxTimestampLength, boolean includeMeta) -
getRowString
-
getFamilyString
-
getQualifierString
-
getTimestampString
-
getTypeString
-
getValueString
-