Package cormoran.pepper.parquet
Class ParquetBytesToStream
- java.lang.Object
-
- cormoran.pepper.parquet.ParquetBytesToStream
-
- All Implemented Interfaces:
IBinaryToAvroStream,cormoran.pepper.io.IBinaryToStream<org.apache.avro.generic.GenericRecord>
public class ParquetBytesToStream extends Object implements IBinaryToAvroStream
Automatic transformation of a Parquet InputStream to a Stream of objects. It requires to write the file first on the file-system- Author:
- Benoit Lacelle
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandeleteOnExitprotected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Modifier Constructor Description ParquetBytesToStream()By default, the InputStream is flushed to a temporary file which will be deleted with the JVMprotectedParquetBytesToStream(boolean deleteOnExit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PathpathWhereToDumpBytes()protected URIpersist(InputStream inputStream)Stream<org.apache.avro.generic.GenericRecord>stream(InputStream inputStream)
-
-
-
Method Detail
-
persist
protected URI persist(InputStream inputStream) throws IOException
- Throws:
IOException
-
pathWhereToDumpBytes
protected Path pathWhereToDumpBytes() throws IOException
- Throws:
IOException
-
stream
public Stream<org.apache.avro.generic.GenericRecord> stream(InputStream inputStream) throws IOException
- Specified by:
streamin interfacecormoran.pepper.io.IBinaryToStream<org.apache.avro.generic.GenericRecord>- Throws:
IOException
-
-