Class InListPredicate

java.lang.Object
com.twilio.kudu.sql.CalciteKuduPredicate
com.twilio.kudu.sql.InListPredicate

public final class InListPredicate extends CalciteKuduPredicate
An implementation of CalciteKuduPredicate that creates an IN LIST predicate to KuduEnumerable KuduPredicate.newInListPredicate(ColumnSchema, List)
  • Field Details

    • columnIdx

      public final int columnIdx
  • Constructor Details

    • InListPredicate

      public InListPredicate(int columnIdx, List<Object> values)
  • Method Details

    • getColumnIdx

      public int getColumnIdx()
      Description copied from class: CalciteKuduPredicate
      returns the column index for this predicate
      Specified by:
      getColumnIdx in class CalciteKuduPredicate
      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 class CalciteKuduPredicate
      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 proper KuduPredicate
      Specified by:
      toPredicate in class CalciteKuduPredicate
      Parameters:
      columnSchema - column schema to use for the predicate
      invertValue - true if the column is stored in descending order
      Returns:
      KuduPredicate that represents this POJO
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object