Class JsonTable

java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.calcite.adapter.file.JsonTable
All Implemented Interfaces:
Table, Wrapper
Direct Known Subclasses:
JsonScannableTable

public class JsonTable extends AbstractTable
Table based on a JSON file.
  • Field Details

    • dataList

      protected @Nullable List<Object> dataList
  • Constructor Details

    • JsonTable

      public JsonTable(Source source)
  • Method Details

    • getRowType

      public RelDataType getRowType(RelDataTypeFactory typeFactory)
      Description copied from interface: Table
      Returns this table's row type.

      This is a struct type whose fields describe the names and types of the columns in this table.

      The implementer must use the type factory provided. This ensures that the type is converted into a canonical form; other equal types in the same query will use the same object.

      Parameters:
      typeFactory - Type factory with which to create the type
      Returns:
      Row type
    • getDataList

      public List<Object> getDataList(RelDataTypeFactory typeFactory)
      Returns the data list of the table.
    • getStatistic

      public Statistic getStatistic()
      Description copied from interface: Table
      Returns a provider of statistics about this table.
      Specified by:
      getStatistic in interface Table
      Overrides:
      getStatistic in class AbstractTable