public class TestBitComparator extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
data0 |
private static byte[] |
data1 |
private static byte[] |
data1_2 |
private static ByteBuffer |
data1_2_bb |
private static ByteBuffer |
data1_bb |
private static byte[] |
data2 |
private static byte[] |
data2_2 |
private static ByteBuffer |
data2_2_bb |
private static ByteBuffer |
data2_bb |
private static byte[] |
data3 |
private int |
Equal |
private int |
NotEqual |
private static byte[] |
ones |
private static ByteBuffer |
ones_bb |
private static byte[] |
zeros |
private static ByteBuffer |
zeros_bb |
Constructor and Description |
---|
TestBitComparator() |
Modifier and Type | Method and Description |
---|---|
void |
testANDOperation() |
void |
testANDOperationWithOffset() |
private void |
testOperation(byte[] data,
byte[] comparatorBytes,
org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator,
int expected) |
private void |
testOperation(ByteBuffer data,
byte[] comparatorBytes,
org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator,
int expected) |
private void |
testOperationWithOffset(byte[] data,
byte[] comparatorBytes,
org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator,
int expected) |
private void |
testOperationWithOffset(ByteBuffer data,
byte[] comparatorBytes,
org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator,
int expected) |
void |
testOROperation() |
void |
testOROperationWithOffset() |
void |
testXOROperation() |
void |
testXOROperationWithOffset() |
public static final HBaseClassTestRule CLASS_RULE
private static byte[] zeros
private static ByteBuffer zeros_bb
private static byte[] ones
private static ByteBuffer ones_bb
private static byte[] data0
private static byte[] data1
private static ByteBuffer data1_bb
private static byte[] data2
private static ByteBuffer data2_bb
private static byte[] data3
private static byte[] data1_2
private static ByteBuffer data1_2_bb
private static byte[] data2_2
private static ByteBuffer data2_2_bb
private final int Equal
private final int NotEqual
public TestBitComparator()
public void testANDOperation()
public void testOROperation()
public void testXOROperation()
private void testOperation(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected)
private void testOperation(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected)
public void testANDOperationWithOffset()
public void testOROperationWithOffset()
public void testXOROperationWithOffset()
private void testOperationWithOffset(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected)
private void testOperationWithOffset(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.