Package org.apache.hadoop.hbase.filter
Class TestBitComparator
java.lang.Object
org.apache.hadoop.hbase.filter.TestBitComparator
Tests for the bit comparator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static byte[]
private static byte[]
private static byte[]
private static ByteBuffer
private static ByteBuffer
private static byte[]
private static byte[]
private static ByteBuffer
private static ByteBuffer
private static byte[]
private final int
private final int
private static byte[]
private static ByteBuffer
private static byte[]
private static ByteBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
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
void
void
void
-
Field Details
-
CLASS_RULE
-
zeros
-
zeros_bb
-
ones
-
ones_bb
-
data0
-
data1
-
data1_bb
-
data2
-
data2_bb
-
data3
-
data1_2
-
data1_2_bb
-
data2_2
-
data2_2_bb
-
Equal
- See Also:
-
NotEqual
- See Also:
-
-
Constructor Details
-
TestBitComparator
public TestBitComparator()
-
-
Method Details
-
testANDOperation
-
testOROperation
-
testXOROperation
-
testOperation
private void testOperation(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) -
testOperation
private void testOperation(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) -
testANDOperationWithOffset
-
testOROperationWithOffset
-
testXOROperationWithOffset
-
testOperationWithOffset
private void testOperationWithOffset(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) -
testOperationWithOffset
private void testOperationWithOffset(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected)
-