Package com.twilio.kudu.sql
Class NullPredicate
- java.lang.Object
-
- com.twilio.kudu.sql.CalciteKuduPredicate
-
- com.twilio.kudu.sql.NullPredicate
-
public final class NullPredicate extends CalciteKuduPredicate
An implementation ofCalciteKuduPredicate
that pushes down both NOT NULL and IS NULL to Kudu.KuduPredicate.newIsNullPredicate(ColumnSchema)
KuduPredicate.newIsNotNullPredicate(ColumnSchema)
-
-
Field Summary
Fields Modifier and Type Field Description int
columnIdx
-
Constructor Summary
Constructors Constructor Description NullPredicate(int columnIdx, boolean notNull)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
explainPredicate(org.apache.kudu.ColumnSchema schema)
Constructs a string used when generating the explain planint
getColumnIdx()
returns the column index for this predicateint
hashCode()
org.apache.kudu.client.KuduPredicate
toPredicate(org.apache.kudu.ColumnSchema columnSchema, boolean invertValue)
Transforms this POJO into a properKuduPredicate
String
toString()
-
Methods inherited from class com.twilio.kudu.sql.CalciteKuduPredicate
inListOptimizationAllowed, invertComparisonOp, toPredicate
-
-
-
-
Method Detail
-
getColumnIdx
public int getColumnIdx()
Description copied from class:CalciteKuduPredicate
returns the column index for this predicate- Specified by:
getColumnIdx
in classCalciteKuduPredicate
- Returns:
- integer of the column in Kudu
-
explainPredicate
public String explainPredicate(org.apache.kudu.ColumnSchema schema)
Description copied from class:CalciteKuduPredicate
Constructs a string used when generating the explain plan- Specified by:
explainPredicate
in classCalciteKuduPredicate
- Parameters:
schema
- Schema of the column from Kudu- Returns:
- Formatted string from
RelWriter
to use
-
toPredicate
public org.apache.kudu.client.KuduPredicate toPredicate(org.apache.kudu.ColumnSchema columnSchema, boolean invertValue)
Description copied from class:CalciteKuduPredicate
Transforms this POJO into a properKuduPredicate
- Specified by:
toPredicate
in classCalciteKuduPredicate
- Parameters:
columnSchema
- column schema to use for the predicateinvertValue
- true if the column is stored in descending order- Returns:
KuduPredicate
that represents this POJO
-
-