Package org.apache.hadoop.hbase
Class TestKeyValue
java.lang.Object
org.apache.hadoop.hbase.TestKeyValue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate final byte[]private static final org.slf4j.Loggerprivate final byte[]private final byte[]private final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertKVLess(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) private voidassertKVLessWithoutRow(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) private voidcheck(byte[] row, byte[] family, byte[] qualifier, long timestamp, byte[] value) private voidcomparisons(org.apache.hadoop.hbase.CellComparatorImpl c) private voidmetacomparisons(org.apache.hadoop.hbase.CellComparatorImpl c) voidvoidvoidvoidvoidTest a corner case when the family qualifier is a prefix of the column qualifier.voidvoidvoidvoidvoidvoidTests that getTimestamp() does always return the proper timestamp, even after updating it.voidTests cases where rows keys have characters below the ','.voidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
rowA
-
rowB
-
family
-
qualA
-
-
Constructor Details
-
TestKeyValue
public TestKeyValue()
-
-
Method Details
-
testColumnCompare
-
testColumnCompare_prefix
Test a corner case when the family qualifier is a prefix of the column qualifier. -
testBasics
-
check
-
testPlainCompare
-
testMoreComparisons
-
testMetaComparatorTableKeysWithCommaOk
-
testKeyValueBorderCases
Tests cases where rows keys have characters below the ','. See HBASE-832 -
metacomparisons
-
comparisons
-
testBinaryKeys
-
testStackedUpKeyValue
-
assertKVLess
private void assertKVLess(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) -
assertKVLessWithoutRow
private void assertKVLessWithoutRow(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) -
testCompareWithoutRow
-
testFirstLastOnRow
-
testCreateKeyOnly
-
testCreateKeyValueFromKey
-
testGetTimestamp
Tests that getTimestamp() does always return the proper timestamp, even after updating it. See HBASE-6265. -
testKVsWithTags
-
testMetaKeyComparator
-
testEqualsAndHashCode
-
testKeyValueSerialization
- Throws:
Exception
-
testNullByteArrayKeyValueFailure
-
testCheckKeyValueBytesFailureCase
- Throws:
Exception
-