Package tech.tablesaw.io.json
Class JsonReadOptions
- java.lang.Object
-
- tech.tablesaw.io.ReadOptions
-
- tech.tablesaw.io.json.JsonReadOptions
-
public class JsonReadOptions extends tech.tablesaw.io.ReadOptions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonReadOptions.Builder
-
Field Summary
-
Fields inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormat, dateFormatter, dateTimeFormat, dateTimeFormatter, DEFAULT_IGNORE_ZERO_DECIMAL, DEFAULT_SKIP_ROWS_WITH_INVALID_COLUMN_COUNT, EXTENDED_TYPES, header, ignoreZeroDecimal, locale, maxCharsPerColumn, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormat, timeFormatter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonReadOptions(JsonReadOptions.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonReadOptions.Builderbuilder(File file)static JsonReadOptions.Builderbuilder(InputStream stream)This method may cause tablesaw to buffer the entire InputStream.static JsonReadOptions.Builderbuilder(Reader reader)This method may cause tablesaw to buffer the entire InputStream.static JsonReadOptions.Builderbuilder(String fileName)static JsonReadOptions.Builderbuilder(URL url)static JsonReadOptions.Builderbuilder(tech.tablesaw.io.Source source)static JsonReadOptions.BuilderbuilderFromFile(String fileName)static JsonReadOptions.BuilderbuilderFromString(String contents)static JsonReadOptions.BuilderbuilderFromUrl(String url)Stringpath()-
Methods inherited from class tech.tablesaw.io.ReadOptions
allowDuplicateColumnNames, columnTypeReadOptions, columnTypesToDetect, dateFormatter, dateTimeFormatter, header, ignoreZeroDecimal, locale, minimizeColumnSizes, missingValueIndicators, sample, skipRowsWithInvalidColumnCount, source, tableName, timeFormatter
-
-
-
-
Constructor Detail
-
JsonReadOptions
protected JsonReadOptions(JsonReadOptions.Builder builder)
-
-
Method Detail
-
builder
public static JsonReadOptions.Builder builder(tech.tablesaw.io.Source source)
-
builder
public static JsonReadOptions.Builder builder(File file)
-
builder
public static JsonReadOptions.Builder builder(String fileName)
-
builder
public static JsonReadOptions.Builder builder(URL url) throws IOException
- Throws:
IOException
-
builderFromFile
public static JsonReadOptions.Builder builderFromFile(String fileName)
-
builderFromString
public static JsonReadOptions.Builder builderFromString(String contents)
-
builderFromUrl
public static JsonReadOptions.Builder builderFromUrl(String url) throws IOException
- Throws:
IOException
-
builder
public static JsonReadOptions.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 JsonReadOptions.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
-
path
public String path()
-
-