Class CsvReadOptions

java.lang.Object
tech.tablesaw.io.ReadOptions
tech.tablesaw.io.csv.CsvReadOptions

public class CsvReadOptions extends ReadOptions
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static CsvReadOptions.Builder builder(Source source)
    • builder

      public static CsvReadOptions.Builder builder(File file)
    • builder

      public static CsvReadOptions.Builder builder(String fileName)
    • builder

      public static CsvReadOptions.Builder builder(URL url) throws IOException
      Throws:
      IOException
    • builderFromFile

      public static CsvReadOptions.Builder builderFromFile(String fileName)
    • builderFromString

      public static CsvReadOptions.Builder builderFromString(String contents)
    • builderFromUrl

      public static CsvReadOptions.Builder builderFromUrl(String url) throws IOException
      Throws:
      IOException
    • builder

      public static CsvReadOptions.Builder builder(InputStream stream)
      This method may cause tablesaw to buffer the entire InputStream.

      If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a stream, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file

    • builder

      public static CsvReadOptions.Builder builder(Reader reader)
      This method may cause tablesaw to buffer the entire InputStream.

      If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a reader, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file

    • builder

      public static CsvReadOptions.Builder builder(InputStreamReader reader)
      This method may cause tablesaw to buffer the entire InputStream.

      If you have a large amount of data, you can do one of the following: 1. Use the method taking a File instead of a reader, or 2. Provide the array of column types as an option. If you provide the columnType array, we skip type detection and can avoid reading the entire file

    • columnTypes

      public ColumnType[] columnTypes()
    • separator

      public Character separator()
    • quoteChar

      public Character quoteChar()
    • escapeChar

      public Character escapeChar()
    • lineEnding

      public String lineEnding()
    • lineSeparatorDetectionEnabled

      public boolean lineSeparatorDetectionEnabled()
    • maxNumberOfColumns

      public Integer maxNumberOfColumns()
    • commentPrefix

      public Character commentPrefix()
    • maxCharsPerColumn

      public int maxCharsPerColumn()
    • sampleSize

      public int sampleSize()