Class DruidJsonFilter

    • Field Detail

      • DATE_FORMATTER

        private static final java.text.SimpleDateFormat DATE_FORMATTER
    • Method Detail

      • toEqualityKindDruidFilter

        @Nullable
        private static DruidJsonFilter toEqualityKindDruidFilter​(RexNode rexNode,
                                                                 RelDataType rowType,
                                                                 DruidQuery druidQuery)
        Parameters:
        rexNode - rexNode to translate to Druid Json Filter
        rowType - rowType associated to rexNode
        druidQuery - druid query
        Returns:
        Druid Json filter or null if it can not translate
      • toBoundDruidFilter

        @Nullable
        private static DruidJsonFilter toBoundDruidFilter​(RexNode rexNode,
                                                          RelDataType rowType,
                                                          DruidQuery druidQuery)
        Parameters:
        rexNode - rexNode to translate
        rowType - row type associated to Filter
        druidQuery - druid query
        Returns:
        valid Druid Json Bound Filter or null if it can not translate the rexNode.
      • toDruidLiteral

        @Nullable
        private static java.lang.String toDruidLiteral​(RexNode rexNode,
                                                       RelDataType rowType,
                                                       DruidQuery druidQuery)
        Parameters:
        rexNode - rexNode to translate to Druid literal equivalante
        rowType - rowType associated to rexNode
        druidQuery - druid Query
        Returns:
        non null string or null if it can not translate to valid Druid equivalent
      • toDruidFilters

        @Nullable
        static DruidJsonFilter toDruidFilters​(RexNode rexNode,
                                              RelDataType rowType,
                                              DruidQuery druidQuery)
        Parameters:
        rexNode - rexNode to translate to Druid Filter
        rowType - rowType of filter input
        druidQuery - Druid query
        Returns:
        Druid Json Filters or null when can not translate to valid Druid Filters.
      • getDateFormatter

        private static java.text.SimpleDateFormat getDateFormatter()