Package org.apache.hadoop.hbase.filter
Class TestBitComparator
java.lang.Object
org.apache.hadoop.hbase.filter.TestBitComparator
Tests for the bit comparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static byte[]private static byte[]private static byte[]private static ByteBufferprivate static ByteBufferprivate static byte[]private static byte[]private static ByteBufferprivate static ByteBufferprivate static byte[]private final intprivate final intprivate static byte[]private static ByteBufferprivate static byte[]private static ByteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprivate voidtestOperation(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) private voidtestOperation(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) private voidtestOperationWithOffset(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) private voidtestOperationWithOffset(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) voidvoidvoidvoid
-
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)
-