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[] |
qualB |
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,
int common,
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 |
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
private final byte[] qualB
public TestKeyValue()
public void testColumnCompare() throws Exception
Exception
public void testColumnCompare_prefix() throws Exception
Exception
public void testBasics() throws Exception
Exception
private void check(byte[] row, byte[] family, byte[] qualifier, long timestamp, byte[] value)
public void testPlainCompare() throws Exception
Exception
public void testMoreComparisons() throws Exception
Exception
public void testMetaComparatorTableKeysWithCommaOk()
public void testKeyValueBorderCases() throws IOException
IOException
private void metacomparisons(org.apache.hadoop.hbase.CellComparatorImpl c)
private void comparisons(org.apache.hadoop.hbase.CellComparatorImpl c)
public void testBinaryKeys() throws Exception
Exception
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, int common, org.apache.hadoop.hbase.KeyValue less, org.apache.hadoop.hbase.KeyValue greater)
public void testCompareWithoutRow()
public void testFirstLastOnRow()
public void testCreateKeyOnly() throws Exception
Exception
public void testCreateKeyValueFromKey()
public void testGetTimestamp()
public void testKVsWithTags()
public void testMetaKeyComparator()
public void testEqualsAndHashCode() throws Exception
Exception
public void testKeyValueSerialization() throws Exception
Exception
public void testCheckKeyValueBytesFailureCase() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.