Class NullPredicate


  • public final class NullPredicate
    extends CalciteKuduPredicate
    An implementation of CalciteKuduPredicate that pushes down both NOT NULL and IS NULL to Kudu. KuduPredicate.newIsNullPredicate(ColumnSchema) KuduPredicate.newIsNotNullPredicate(ColumnSchema)
    • Field Detail

      • columnIdx

        public final int columnIdx
    • Constructor Detail

      • NullPredicate

        public NullPredicate​(int columnIdx,
                             boolean notNull)
    • Method Detail

      • 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