public class JsonReader extends Object implements RecordReader
| Constructor and Description |
|---|
JsonReader(Iterator<com.google.gson.JsonElement> parser,
FSDataInputStream underlying,
long size,
TypeDescription schema,
String timestampFormat) |
JsonReader(Reader reader,
FSDataInputStream underlying,
long size,
TypeDescription schema,
String timestampFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
float |
getProgress() |
long |
getRowNumber() |
boolean |
nextBatch(VectorizedRowBatch batch) |
void |
seekToRow(long rowCount) |
public JsonReader(Reader reader, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException
IOExceptionpublic JsonReader(Iterator<com.google.gson.JsonElement> parser, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException
IOExceptionpublic boolean nextBatch(VectorizedRowBatch batch) throws IOException
nextBatch in interface RecordReaderIOExceptionpublic long getRowNumber()
throws IOException
getRowNumber in interface RecordReaderIOExceptionpublic float getProgress()
throws IOException
getProgress in interface RecordReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface RecordReaderIOExceptionpublic void seekToRow(long rowCount)
throws IOException
seekToRow in interface RecordReaderIOExceptionCopyright © 2013–2021 The Apache Software Foundation. All rights reserved.