Class FlowFileStreamUnpackerSequenceFileWriter.FlowFileUnpackager
java.lang.Object
org.apache.nifi.processors.hadoop.FlowFileStreamUnpackerSequenceFileWriter.FlowFileUnpackager
- Enclosing class:
FlowFileStreamUnpackerSequenceFileWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate byte[]private final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidfillBuffer(InputStream in, byte[] buffer, int length) booleanprivate Integerprivate byte[]protected longreadLong(InputStream in) protected StringvoidunpackageFlowFile(InputStream in, org.apache.hadoop.io.SequenceFile.Writer writer)
-
Field Details
-
nextHeader
private byte[] nextHeader -
haveReadSomething
private boolean haveReadSomething -
readBuffer
private final byte[] readBuffer
-
-
Constructor Details
-
FlowFileUnpackager
private FlowFileUnpackager()
-
-
Method Details
-
hasMoreData
public boolean hasMoreData() -
readHeader
- Throws:
IOException
-
unpackageFlowFile
public void unpackageFlowFile(InputStream in, org.apache.hadoop.io.SequenceFile.Writer writer) throws IOException - Throws:
IOException
-
readAttributes
- Throws:
IOException
-
readString
- Throws:
IOException
-
fillBuffer
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readFieldLength
- Throws:
IOException
-