in spark-load/spark-load-common/src/main/java/org/apache/doris/common/io/BitmapValue.java [151:192]
public void and(BitmapValue other) {
switch (other.bitmapType) { // CHECKSTYLE IGNORE THIS LINE: missing switch default
case EMPTY:
clear();
break;
case SINGLE_VALUE:
switch (this.bitmapType) { // CHECKSTYLE IGNORE THIS LINE: missing switch default
case EMPTY:
break;
case SINGLE_VALUE:
if (this.singleValue != other.singleValue) {
clear();
}
break;
case BITMAP_VALUE:
if (!this.bitmap.contains(other.singleValue)) {
clear();
} else {
clear();
this.singleValue = other.singleValue;
this.bitmapType = SINGLE_VALUE;
}
break;
}
break;
case BITMAP_VALUE:
switch (this.bitmapType) { // CHECKSTYLE IGNORE THIS LINE: missing switch default
case EMPTY:
break;
case SINGLE_VALUE:
if (!other.bitmap.contains(this.singleValue)) {
clear();
}
break;
case BITMAP_VALUE:
this.bitmap.and(other.bitmap);
convertToSmallerType();
break;
}
break;
}
}