R - the row key typeC - the column key typeCloseable, AutoCloseablepublic static class JsonSource.Options<R,C> extends Object implements Closeable
| Modifier and Type | Field | Description |
|---|---|---|
private Charset |
charset |
The character encoding for content
|
private com.d3x.morpheus.array.ArrayBuilder<C> |
colKeyBuilder |
|
private Predicate<C> |
colPredicate |
The optional column predicate to filter columns
|
private List<com.d3x.morpheus.array.Array<?>> |
dataList |
|
private com.d3x.morpheus.util.text.Formats |
formats |
The formats used to parse JSON values
|
private com.google.gson.stream.JsonReader |
reader |
|
private com.d3x.morpheus.util.Resource |
resource |
The resource to load frame from
|
private com.d3x.morpheus.array.ArrayBuilder<R> |
rowKeyBuilder |
|
private Predicate<R> |
rowPredicate |
The optional row predicate to filter rows
|
| Constructor | Description |
|---|---|
Options() |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
private com.google.gson.stream.JsonReader |
getReader() |
Returns the reader for these options
|
void |
setFile(File file) |
Sets the input file for these options
|
void |
setInputStream(InputStream inputStream) |
Applies to resource to load CSV content from
|
void |
setURL(URL url) |
Sets the input URL for these options
|
private com.google.gson.stream.JsonReader reader
private List<com.d3x.morpheus.array.Array<?>> dataList
private com.d3x.morpheus.array.ArrayBuilder<R> rowKeyBuilder
private com.d3x.morpheus.array.ArrayBuilder<C> colKeyBuilder
private com.d3x.morpheus.util.Resource resource
private com.d3x.morpheus.util.text.Formats formats
private Charset charset
public void setFile(File file)
file - the input filepublic void setURL(URL url)
url - the input urlpublic void setInputStream(InputStream inputStream)
inputStream - the input stream to load fromprivate com.google.gson.stream.JsonReader getReader()
public void close()
close in interface AutoCloseableclose in interface CloseableCopyright 2014-2018, D3X Systems