Package org.apache.calcite.rel.rules
Class LongBitmap
java.lang.Object
org.apache.calcite.rel.rules.LongBitmap
Bitmap tool for dphyp.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Traverse the bitmap in reverse order.static class
Enumerate all subsets of a bitmap from small to large. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
getBvBitmap
(long csg) Corresponding to Bv = {node|node ≺ csg} in "Dynamic programming strikes back".static boolean
isOverlap
(long bitmap1, long bitmap2) static boolean
isSubSet
(long maySub, long bigger) static long
newBitmap
(int value) static long
newBitmapBetween
(int startInclude, int endExclude) static long
newBitmapFromList
(List<Integer> values) static String
printBitmap
(long bitmap)
-
Method Details
-
newBitmapBetween
public static long newBitmapBetween(int startInclude, int endExclude) -
newBitmap
public static long newBitmap(int value) -
getBvBitmap
public static long getBvBitmap(long csg) Corresponding to Bv = {node|node ≺ csg} in "Dynamic programming strikes back". -
isSubSet
public static boolean isSubSet(long maySub, long bigger) -
isOverlap
public static boolean isOverlap(long bitmap1, long bitmap2) -
newBitmapFromList
-
printBitmap
-