Class CsvTableSource

    • Constructor Detail

      • CsvTableSource

        public CsvTableSource​(String path,
                              String[] fieldNames,
                              TypeInformation<?>[] fieldTypes)
        Deprecated.
        A InputFormatTableSource and LookupableTableSource for simple CSV files with a (logically) unlimited number of fields.
        Parameters:
        path - The path to the CSV file.
        fieldNames - The names of the table fields.
        fieldTypes - The types of the table fields.
      • CsvTableSource

        public CsvTableSource​(String path,
                              String[] fieldNames,
                              TypeInformation<?>[] fieldTypes,
                              String fieldDelim,
                              String lineDelim,
                              Character quoteCharacter,
                              boolean ignoreFirstLine,
                              String ignoreComments,
                              boolean lenient)
        Deprecated.
        A InputFormatTableSource and LookupableTableSource for simple CSV files with a (logically) unlimited number of fields.
        Parameters:
        path - The path to the CSV file.
        fieldNames - The names of the table fields.
        fieldTypes - The types of the table fields.
        fieldDelim - The field delimiter, "," by default.
        lineDelim - The row delimiter, "\n" by default.
        quoteCharacter - An optional quote character for String values, null by default.
        ignoreFirstLine - Flag to ignore the first line, false by default.
        ignoreComments - An optional prefix to indicate comments, null by default.
        lenient - Flag to skip records with parse error instead to fail, false by default.
      • CsvTableSource

        public CsvTableSource​(String path,
                              String[] fieldNames,
                              TypeInformation<?>[] fieldTypes,
                              int[] selectedFields,
                              String fieldDelim,
                              String lineDelim,
                              Character quoteCharacter,
                              boolean ignoreFirstLine,
                              String ignoreComments,
                              boolean lenient)
        Deprecated.
        A InputFormatTableSource and LookupableTableSource for simple CSV files with a (logically) unlimited number of fields.
        Parameters:
        path - The path to the CSV file.
        fieldNames - The names of the table fields.
        fieldTypes - The types of the table fields.
        selectedFields - The fields which will be read and returned by the table source. If None, all fields are returned.
        fieldDelim - The field delimiter, "," by default.
        lineDelim - The row delimiter, "\n" by default.
        quoteCharacter - An optional quote character for String values, null by default.
        ignoreFirstLine - Flag to ignore the first line, false by default.
        ignoreComments - An optional prefix to indicate comments, null by default.
        lenient - Flag to skip records with parse error instead to fail, false by default.