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 class
JsonReadOptions.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 protected
JsonReadOptions(JsonReadOptions.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonReadOptions.Builder
builder(File file)
static JsonReadOptions.Builder
builder(InputStream stream)
This method may cause tablesaw to buffer the entire InputStream.static JsonReadOptions.Builder
builder(Reader reader)
This method may cause tablesaw to buffer the entire InputStream.static JsonReadOptions.Builder
builder(String fileName)
static JsonReadOptions.Builder
builder(URL url)
static JsonReadOptions.Builder
builder(tech.tablesaw.io.Source source)
static JsonReadOptions.Builder
builderFromFile(String fileName)
static JsonReadOptions.Builder
builderFromString(String contents)
static JsonReadOptions.Builder
builderFromUrl(String url)
String
path()
-
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()
-
-