Package org.apache.druid.segment.column
Enum ColumnCapabilities.Capable
- java.lang.Object
-
- java.lang.Enum<ColumnCapabilities.Capable>
-
- org.apache.druid.segment.column.ColumnCapabilities.Capable
-
- All Implemented Interfaces:
Serializable
,Comparable<ColumnCapabilities.Capable>
- Enclosing interface:
- ColumnCapabilities
public static enum ColumnCapabilities.Capable extends Enum<ColumnCapabilities.Capable>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnCapabilities.Capable
and(ColumnCapabilities.Capable other)
ColumnCapabilities.Capable
coerceUnknownToBoolean(boolean unknownIsTrue)
boolean
isFalse()
boolean
isMaybeTrue()
boolean
isTrue()
boolean
isUnknown()
static ColumnCapabilities.Capable
of(boolean bool)
static ColumnCapabilities.Capable
ofNullable(Boolean bool)
ColumnCapabilities.Capable
or(ColumnCapabilities.Capable other)
Boolean
toJson()
String
toString()
static ColumnCapabilities.Capable
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColumnCapabilities.Capable[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FALSE
public static final ColumnCapabilities.Capable FALSE
-
TRUE
public static final ColumnCapabilities.Capable TRUE
-
UNKNOWN
public static final ColumnCapabilities.Capable UNKNOWN
-
-
Method Detail
-
values
public static ColumnCapabilities.Capable[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColumnCapabilities.Capable c : ColumnCapabilities.Capable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnCapabilities.Capable valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isTrue
public boolean isTrue()
-
isMaybeTrue
public boolean isMaybeTrue()
-
isFalse
public boolean isFalse()
-
isUnknown
public boolean isUnknown()
-
coerceUnknownToBoolean
public ColumnCapabilities.Capable coerceUnknownToBoolean(boolean unknownIsTrue)
-
and
public ColumnCapabilities.Capable and(ColumnCapabilities.Capable other)
-
or
public ColumnCapabilities.Capable or(ColumnCapabilities.Capable other)
-
of
public static ColumnCapabilities.Capable of(boolean bool)
-
ofNullable
public static ColumnCapabilities.Capable ofNullable(@Nullable Boolean bool)
-
toString
public String toString()
- Overrides:
toString
in classEnum<ColumnCapabilities.Capable>
-
-