Class InputStreamWritable
java.lang.Object
org.apache.nifi.processors.hadoop.util.InputStreamWritable
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
Simple implementation of
Writable that writes data from an InputStream. This class will throw an
UnsupportedOperationException if readFields(DataInput) is called.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inStream
-
size
private final int size
-
-
Constructor Details
-
InputStreamWritable
-
-
Method Details
-
write
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
readFields
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-