Skip to content

This project extracts input/output streams from Spark. Learning these I/O streams' design and usage is helpful for us to know better with I/O streams.

Notifications You must be signed in to change notification settings

Ngone51/iostreams-in-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iostreams-in-spark

This project extracts input/output streams from Spark. Also, there're some JDK streams included, which were used by Spark. Learning these I/O streams' design and usage is helpful for us to know better with I/O streams.

We added unit tests for each stream to show it's feature and usage.

streams collected yet

  • LimitedInputStream

    A LimitedInputStream only allow to read a size limited data from a InputStream.

  • TimeTrackingOutputStream

    A TimeTrackingOutputStream can track the time we spending on writing data to a OutputStream.

  • ByteBufferInputStream

    ByteBufferInputStream supports read data from a ByteBuffer and save it into a byte array.

  • ByteBufferOutputStream

    ByteBufferOutputStream supports read data from a byte array, and then convert into a ByteBuffer after close() called.

About

This project extracts input/output streams from Spark. Learning these I/O streams' design and usage is helpful for us to know better with I/O streams.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published