public class TestKeyValue extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestKeyValue.FailureCase |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private byte[] |
family |
private static org.slf4j.Logger |
LOG |
private byte[] |
qualA |
private byte[] |
rowA |
private byte[] |
rowB |
Constructor and Description |
---|
TestKeyValue() |
Modifier and Type | Method and Description |
---|---|
private 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 |
testBasics() |
void |
testBinaryKeys() |
void |
testCheckKeyValueBytesFailureCase() |
void |
testColumnCompare_prefix()
Test a corner case when the family qualifier is a prefix of the column qualifier.
|
void |
testColumnCompare() |
void |
testCompareWithoutRow() |
void |
testCreateKeyOnly() |
void |
testCreateKeyValueFromKey() |
void |
testEqualsAndHashCode() |
void |
testFirstLastOnRow() |
void |
testGetTimestamp()
Tests that getTimestamp() does always return the proper timestamp, even after updating it.
|
void |
testKeyValueBorderCases()
Tests cases where rows keys have characters below the ','.
|
void |
testKeyValueSerialization() |
void |
testKVsWithTags() |
void |
testMetaComparatorTableKeysWithCommaOk() |
void |
testMetaKeyComparator() |
void |
testMoreComparisons() |
void |
testNullByteArrayKeyValueFailure() |
void |
testPlainCompare() |
void |
testStackedUpKeyValue() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private final byte[] rowA
private final byte[] rowB
private final byte[] family
private final byte[] qualA
public TestKeyValue()
public void testColumnCompare()
public void testColumnCompare_prefix()
public void testBasics()
private void check(byte[] row, byte[] family, byte[] qualifier, long timestamp, byte[] value)
public void testPlainCompare()
public void testMoreComparisons()
public void testMetaComparatorTableKeysWithCommaOk()
public void testKeyValueBorderCases()
private void metacomparisons(org.apache.hadoop.hbase.CellComparatorImpl c)
private void comparisons(org.apache.hadoop.hbase.CellComparatorImpl c)
public void testBinaryKeys()
public void testStackedUpKeyValue()
private 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)
public void testCompareWithoutRow()
public void testFirstLastOnRow()
public void testCreateKeyOnly()
public void testCreateKeyValueFromKey()
public void testGetTimestamp()
public void testKVsWithTags()
public void testMetaKeyComparator()
public void testEqualsAndHashCode()
public void testKeyValueSerialization() throws Exception
Exception
public void testNullByteArrayKeyValueFailure()
public void testCheckKeyValueBytesFailureCase() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.