Package org.apache.hadoop.hbase
Class TestKeyValue
java.lang.Object
org.apache.hadoop.hbase.TestKeyValue
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private final byte[]
private static final org.slf4j.Logger
private final byte[]
private final byte[]
private final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertKVLess
(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) private void
assertKVLessWithoutRow
(org.apache.hadoop.hbase.CellComparator c, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater) private void
check
(byte[] row, byte[] family, byte[] qualifier, long timestamp, byte[] value) private void
comparisons
(org.apache.hadoop.hbase.CellComparatorImpl c) private void
metacomparisons
(org.apache.hadoop.hbase.CellComparatorImpl c) void
void
void
void
void
Test a corner case when the family qualifier is a prefix of the column qualifier.void
void
void
void
void
void
Tests that getTimestamp() does always return the proper timestamp, even after updating it.void
Tests cases where rows keys have characters below the ','.void
void
void
void
void
void
void
void
-
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
-