Class StaticResultProvider

java.lang.Object
org.apache.flink.table.api.internal.StaticResultProvider
All Implemented Interfaces:
ResultProvider

@Internal public class StaticResultProvider extends Object implements ResultProvider
Create result provider from a static set of data using external types.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.flink.table.utils.print.RowDataToStringConverter
    This converter supports only String, long, int and boolean fields.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StaticResultProvider(List<org.apache.flink.types.Row> rows)
     
    StaticResultProvider(List<org.apache.flink.types.Row> rows, Function<org.apache.flink.types.Row,org.apache.flink.table.data.RowData> externalToInternalConverter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.flink.table.utils.print.RowDataToStringConverter
     
    boolean
    Return true if the first row is ready.
    setJobClient(org.apache.flink.core.execution.JobClient jobClient)
    Set the job client associated with the select job to retrieve the result.
    org.apache.flink.util.CloseableIterator<org.apache.flink.types.Row>
    Returns the select result as row iterator using external data types.
    org.apache.flink.util.CloseableIterator<org.apache.flink.table.data.RowData>
    Returns the select result as row iterator using internal data types.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.table.api.internal.ResultProvider

    reset
  • Field Details

    • SIMPLE_ROW_DATA_TO_STRING_CONVERTER

      public static final org.apache.flink.table.utils.print.RowDataToStringConverter SIMPLE_ROW_DATA_TO_STRING_CONVERTER
      This converter supports only String, long, int and boolean fields. Moreover, this converter works only with GenericRowData.
  • Constructor Details

    • StaticResultProvider

      public StaticResultProvider(List<org.apache.flink.types.Row> rows)
    • StaticResultProvider

      public StaticResultProvider(List<org.apache.flink.types.Row> rows, Function<org.apache.flink.types.Row,org.apache.flink.table.data.RowData> externalToInternalConverter)
  • Method Details