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:
nextBatch
in interfaceRecordReader
- Throws:
IOException
-
getRowNumber
- Specified by:
getRowNumber
in interfaceRecordReader
- Throws:
IOException
-
getProgress
- Specified by:
getProgress
in interfaceRecordReader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceRecordReader
- Throws:
IOException
-
seekToRow
- Specified by:
seekToRow
in interfaceRecordReader
- Throws:
IOException
-