Package org.apache.orc.tools.convert
Class JsonReader
java.lang.Object
org.apache.orc.tools.convert.JsonReader
- All Implemented Interfaces:
Closeable,AutoCloseable,RecordReader
-
Constructor Summary
ConstructorsConstructorDescriptionJsonReader(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) JsonReader(Iterator<com.google.gson.JsonElement> parser, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) -
Method Summary
-
Constructor Details
-
JsonReader
public JsonReader(Reader reader, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat, String unionTag, String unionValue) throws IOException - Throws:
IOException
-
JsonReader
public JsonReader(Reader reader, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException - Throws:
IOException
-
JsonReader
public JsonReader(Iterator<com.google.gson.JsonElement> parser, FSDataInputStream underlying, long size, TypeDescription schema, String timestampFormat) throws IOException - Throws:
IOException
-
-
Method Details
-
nextBatch
public boolean nextBatch(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) throws IOException - Specified by:
nextBatchin interfaceRecordReader- Throws:
IOException
-
getRowNumber
- Specified by:
getRowNumberin interfaceRecordReader- Throws:
IOException
-
getProgress
- Specified by:
getProgressin interfaceRecordReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordReader- Throws:
IOException
-
seekToRow
- Specified by:
seekToRowin interfaceRecordReader- Throws:
IOException
-