public class JsonFileWriter extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonFileWriter.JSONWriteConfig |
| Constructor and Description |
|---|
JsonFileWriter(File outputFile) |
JsonFileWriter(File outputFile,
JsonFileWriter.JSONWriteConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static JsonFileWriter.JSONWriteConfig |
config() |
void |
start(Schema schema,
DictionaryProvider provider) |
void |
write(VectorSchemaRoot recordBatch) |
public JsonFileWriter(File outputFile) throws IOException
IOExceptionpublic JsonFileWriter(File outputFile, JsonFileWriter.JSONWriteConfig config) throws IOException
IOExceptionpublic static JsonFileWriter.JSONWriteConfig config()
public void start(Schema schema, DictionaryProvider provider) throws IOException
IOExceptionpublic void write(VectorSchemaRoot recordBatch) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.