Class CsvFilterableTable

    • Constructor Detail

      • CsvFilterableTable

        public CsvFilterableTable​(Source source,
                                  RelProtoDataType protoRowType)
        Creates a CsvFilterableTable.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • scan

        public Enumerable<java.lang.Object[]> scan​(DataContext root,
                                                   java.util.List<RexNode> filters)
        Description copied from interface: FilterableTable
        Returns an enumerator over the rows in this Table. Each row is represented as an array of its column values.

        The list of filters is mutable. If the table can implement a particular filter, it should remove that filter from the list. If it cannot implement a filter, it should leave it in the list. Any filters remaining will be implemented by the consuming Calcite operator.

        Specified by:
        scan in interface FilterableTable
      • addFilter

        private boolean addFilter​(RexNode filter,
                                  java.lang.Object[] filterValues)