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) |
JsonReader(Reader reader,
FSDataInputStream underlying,
long size,
TypeDescription schema,
String timestampFormat,
String unionTag,
String unionValue) |
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, String unionTag, String unionValue) throws IOException
IOException
public JsonReader(Reader reader, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException
IOException
public JsonReader(Iterator<com.google.gson.JsonElement> parser, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException
IOException
public boolean nextBatch(VectorizedRowBatch batch) throws IOException
nextBatch
in interface RecordReader
IOException
public long getRowNumber() throws IOException
getRowNumber
in interface RecordReader
IOException
public float getProgress() throws IOException
getProgress
in interface RecordReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface RecordReader
IOException
public void seekToRow(long rowCount) throws IOException
seekToRow
in interface RecordReader
IOException
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.