Package org.apache.calcite.util
Class ImmutableBitSetTest
- java.lang.Object
-
- org.apache.calcite.util.ImmutableBitSetTest
-
public class ImmutableBitSetTest extends java.lang.Object
Unit test forImmutableBitSet
.
-
-
Constructor Summary
Constructors Constructor Description ImmutableBitSetTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertToIterBitSet(java.lang.String expected, org.apache.calcite.util.ImmutableBitSet bitSet)
Tests that iterating over anImmutableBitSet
yields the expected string.private java.util.List<org.apache.calcite.util.ImmutableBitSet>
getSortedList()
void
testAsList()
Tests the methodsImmutableBitSet.toList()
, andImmutableBitSet.asList()
andImmutableBitSet.asSet()
.void
testBitSetOfImmutableIntList()
Tests the methodImmutableBitSet.of(org.apache.calcite.util.ImmutableIntList)
.void
testBitSetsContains()
Tests the methodImmutableBitSet.contains(org.apache.calcite.util.ImmutableBitSet)
.void
testBuilder()
void
testBuilderUseOriginal()
Unit test forImmutableBitSet.Builder.build(ImmutableBitSet)
.void
testClear()
void
testClosure()
Tests the methodBitSets.closure(java.util.SortedMap)
.void
testCompare()
void
testCompare2()
void
testCreateLongBuffer()
void
testCreateLongs()
void
testGet2()
void
testIndexOf()
void
testIntersect()
void
testIterator()
Tests the methodImmutableBitSet.iterator()
.void
testNth()
void
testPowerSet()
void
testPreviousClearBit()
Tests the methodImmutableBitSet.previousClearBit(int)
.void
testRange()
Tests the methodBitSets.range(int, int)
.void
testSet()
void
testSet2()
void
testShift()
void
testToArray()
Tests the methodImmutableBitSet.toArray()
.void
testToList()
Tests the methodImmutableBitSet.toList()
.void
testToLongArray()
void
testUnion()
Tests the methodImmutableBitSet.union(ImmutableBitSet)
.
-
-
-
Method Detail
-
testIterator
public void testIterator()
Tests the methodImmutableBitSet.iterator()
.
-
assertToIterBitSet
private void assertToIterBitSet(java.lang.String expected, org.apache.calcite.util.ImmutableBitSet bitSet)
Tests that iterating over anImmutableBitSet
yields the expected string.- Parameters:
expected
- Expected stringbitSet
- Bit set
-
testToList
public void testToList()
Tests the methodImmutableBitSet.toList()
.
-
testRange
public void testRange()
Tests the methodBitSets.range(int, int)
.
-
testCompare
public void testCompare()
-
testCompare2
public void testCompare2()
-
getSortedList
private java.util.List<org.apache.calcite.util.ImmutableBitSet> getSortedList()
-
testToArray
public void testToArray()
Tests the methodImmutableBitSet.toArray()
.
-
testAsList
public void testAsList()
Tests the methodsImmutableBitSet.toList()
, andImmutableBitSet.asList()
andImmutableBitSet.asSet()
.
-
testUnion
public void testUnion()
Tests the methodImmutableBitSet.union(ImmutableBitSet)
.
-
testIntersect
public void testIntersect()
-
testBitSetsContains
public void testBitSetsContains()
Tests the methodImmutableBitSet.contains(org.apache.calcite.util.ImmutableBitSet)
.
-
testBitSetOfImmutableIntList
public void testBitSetOfImmutableIntList()
Tests the methodImmutableBitSet.of(org.apache.calcite.util.ImmutableIntList)
.
-
testPreviousClearBit
public void testPreviousClearBit()
Tests the methodImmutableBitSet.previousClearBit(int)
.
-
testBuilder
public void testBuilder()
-
testBuilderUseOriginal
public void testBuilderUseOriginal()
Unit test forImmutableBitSet.Builder.build(ImmutableBitSet)
.
-
testIndexOf
public void testIndexOf()
-
testNth
public void testNth()
-
testClosure
public void testClosure()
Tests the methodBitSets.closure(java.util.SortedMap)
.
-
testPowerSet
public void testPowerSet()
-
testCreateLongs
public void testCreateLongs()
-
testCreateLongBuffer
public void testCreateLongBuffer()
-
testToLongArray
public void testToLongArray()
-
testSet
public void testSet()
-
testClear
public void testClear()
-
testSet2
public void testSet2()
-
testShift
public void testShift()
-
testGet2
public void testGet2()
-
-