Package io.trino.hive.formats.avro
Class AvroFileReader
java.lang.Object
io.trino.hive.formats.avro.AvroFileReader
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionAvroFileReader(TrinoInputFile inputFile, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager) AvroFileReader(TrinoInputFile inputFile, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager, long offset, OptionalLong length) -
Method Summary
-
Constructor Details
-
AvroFileReader
public AvroFileReader(TrinoInputFile inputFile, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager) throws IOException, AvroTypeException - Throws:
IOExceptionAvroTypeException
-
AvroFileReader
public AvroFileReader(TrinoInputFile inputFile, org.apache.avro.Schema schema, AvroTypeManager avroTypeManager, long offset, OptionalLong length) throws IOException, AvroTypeException - Throws:
IOExceptionAvroTypeException
-
-
Method Details
-
getCompletedBytes
public long getCompletedBytes() -
getReadTimeNanos
public long getReadTimeNanos() -
hasNext
- Throws:
IOException
-
next
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-