org.apache.hadoop.hbase
Class KeyValueTestUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.KeyValueTestUtil

@InterfaceAudience.Private
public class KeyValueTestUtil
extends Object


Constructor Summary
KeyValueTestUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValueTestUtil

public KeyValueTestUtil()
Method Detail

create

public static KeyValue create(String row,
                              String family,
                              String qualifier,
                              long timestamp,
                              String value)

create

public static KeyValue create(String row,
                              String family,
                              String qualifier,
                              long timestamp,
                              KeyValue.Type type,
                              String value)

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

Parameters:
kvCollection1 -
kvCollection2 -
Returns:
true if KeyValues from kvCollection2 are contained in kvCollection1

rewindThenToList

public static List<KeyValue> rewindThenToList(ByteBuffer bb,
                                              boolean includesMemstoreTS,
                                              boolean useTags)

toStringWithPadding

public static String toStringWithPadding(Collection<? extends KeyValue> kvs,
                                         boolean includeMeta)
toString


toStringWithPadding

protected static String toStringWithPadding(KeyValue kv,
                                            int maxRowLength,
                                            int maxFamilyLength,
                                            int maxQualifierLength,
                                            int maxTimestampLength,
                                            boolean includeMeta)

getRowString

protected static String getRowString(KeyValue kv)

getFamilyString

protected static String getFamilyString(KeyValue kv)

getQualifierString

protected static String getQualifierString(KeyValue kv)

getTimestampString

protected static String getTimestampString(KeyValue kv)

getTypeString

protected static String getTypeString(KeyValue kv)

getValueString

protected static String getValueString(KeyValue kv)


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.