@InterfaceAudience.Private public class KeyValueTestUtil extends Object
Constructor and Description |
---|
KeyValueTestUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsIgnoreMvccVersion(Collection<? extends Cell> kvCollection1,
Collection<? extends Cell> kvCollection2)
Checks whether KeyValues from kvCollection2 are contained in kvCollection1.
|
static KeyValue |
create(String row,
String family,
String qualifier,
long timestamp,
KeyValue.Type type,
String value) |
static KeyValue |
create(String row,
String family,
String qualifier,
long timestamp,
String value) |
protected static String |
getFamilyString(KeyValue kv) |
protected static String |
getQualifierString(KeyValue kv) |
protected static String |
getRowString(KeyValue kv) |
protected static String |
getTimestampString(KeyValue kv) |
protected static String |
getTypeString(KeyValue kv) |
protected static String |
getValueString(KeyValue kv) |
static List<KeyValue> |
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)
toString
|
protected static String |
toStringWithPadding(KeyValue kv,
int maxRowLength,
int maxFamilyLength,
int maxQualifierLength,
int maxTimestampLength,
boolean includeMeta) |
public KeyValueTestUtil()
public static KeyValue create(String row, String family, String qualifier, long timestamp, String value)
public static KeyValue create(String row, String family, String qualifier, long timestamp, KeyValue.Type type, String value)
public static ByteBuffer toByteBufferAndRewind(Iterable<? extends KeyValue> kvs, boolean includeMemstoreTS)
public static boolean containsIgnoreMvccVersion(Collection<? extends Cell> kvCollection1, Collection<? extends Cell> kvCollection2)
public static List<KeyValue> rewindThenToList(ByteBuffer bb, boolean includesMemstoreTS, boolean useTags)
public static String toStringWithPadding(Collection<? extends KeyValue> kvs, boolean includeMeta)
protected static String toStringWithPadding(KeyValue kv, int maxRowLength, int maxFamilyLength, int maxQualifierLength, int maxTimestampLength, boolean includeMeta)
protected static String getRowString(KeyValue kv)
protected static String getFamilyString(KeyValue kv)
protected static String getQualifierString(KeyValue kv)
protected static String getTimestampString(KeyValue kv)
protected static String getTypeString(KeyValue kv)
protected static String getValueString(KeyValue kv)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.