Package com.twilio.kudu.sql
Class InListPredicate
java.lang.Object
com.twilio.kudu.sql.CalciteKuduPredicate
com.twilio.kudu.sql.InListPredicate
An implementation of
CalciteKuduPredicate
that creates an IN LIST
predicate to KuduEnumerable
KuduPredicate.newInListPredicate(ColumnSchema, List)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
explainPredicate
(org.apache.kudu.ColumnSchema schema) Constructs a string used when generating the explain planint
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
toString()
Methods inherited from class com.twilio.kudu.sql.CalciteKuduPredicate
inListOptimizationAllowed, invertComparisonOp, toPredicate
-
Field Details
-
columnIdx
public final int columnIdx
-
-
Constructor Details
-
InListPredicate
-
-
Method Details
-
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
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
-
hashCode
public int hashCode() -
equals
-
toString
-