Package org.apache.hadoop.hbase.filter
Class TestBitComparator
java.lang.Object
org.apache.hadoop.hbase.filter.TestBitComparator
Tests for the bit comparator
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
TestBitComparatorpublic TestBitComparator()
 
- 
- 
Method Details- 
testANDOperation
- 
testOROperation
- 
testXOROperation
- 
testOperationprivate void testOperation(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) 
- 
testOperationprivate void testOperation(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) 
- 
testANDOperationWithOffset
- 
testOROperationWithOffset
- 
testXOROperationWithOffset
- 
testOperationWithOffsetprivate void testOperationWithOffset(byte[] data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) 
- 
testOperationWithOffsetprivate void testOperationWithOffset(ByteBuffer data, byte[] comparatorBytes, org.apache.hadoop.hbase.filter.BitComparator.BitwiseOp operator, int expected) 
 
-