Package org.apache.hadoop.hbase
Class KeyValueTestUtil
java.lang.Object
org.apache.hadoop.hbase.KeyValueTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsIgnoreMvccVersion(Collection<? extends Cell> kvCollection1, Collection<? extends Cell> kvCollection2) Checks whether KeyValues from kvCollection2 are contained in kvCollection1.static KeyValuestatic KeyValuecreate(String row, String family, String qualifier, long timestamp, KeyValue.Type type, String value) protected static Stringprotected static Stringprotected static StringgetRowString(KeyValue kv) protected static Stringprotected static Stringprotected static StringrewindThenToList(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags) static ByteBuffertoByteBufferAndRewind(Iterable<? extends KeyValue> kvs, boolean includeMemstoreTS) static StringtoStringWithPadding(Collection<? extends KeyValue> kvs, boolean includeMeta) toStringprotected static StringtoStringWithPadding(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
-