Package org.apache.hadoop.hbase
Class KeyValueTestUtil
java.lang.Object
org.apache.hadoop.hbase.KeyValueTestUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
KeyValueTestUtilpublic KeyValueTestUtil()
 
- 
- 
Method Details- 
create
- 
create
- 
toByteBufferAndRewindpublic static ByteBuffer toByteBufferAndRewind(Iterable<? extends KeyValue> kvs, boolean includeMemstoreTS) 
- 
containsIgnoreMvccVersionpublic 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
 
- 
rewindThenToListpublic static List<KeyValue> rewindThenToList(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags) 
- 
toStringWithPaddingtoString
- 
toStringWithPaddingprotected static String toStringWithPadding(KeyValue kv, int maxRowLength, int maxFamilyLength, int maxQualifierLength, int maxTimestampLength, boolean includeMeta) 
- 
getRowString
- 
getFamilyString
- 
getQualifierString
- 
getTimestampString
- 
getTypeString
- 
getValueString
 
-