Package org.apache.thrift.transport
Class TFileProcessor
java.lang.Object
org.apache.thrift.transport.TFileProcessor
FileProcessor: helps in processing files generated by TFileTransport. Port of original cpp
implementation
-
Constructor Summary
ConstructorDescriptionTFileProcessor
(TProcessor processor, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory, TFileTransport inputTransport, TTransport outputTransport) TFileProcessor
(TProcessor processor, TProtocolFactory protocolFactory, TFileTransport inputTransport, TTransport outputTransport) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Process a current chunkvoid
processChunk
(int chunkNum) Process a single chunkvoid
processChunk
(int startChunkNum, int endChunkNum) Process from start to last chunk both inclusive where chunks begin from 0
-
Constructor Details
-
TFileProcessor
public TFileProcessor(TProcessor processor, TProtocolFactory protocolFactory, TFileTransport inputTransport, TTransport outputTransport) -
TFileProcessor
public TFileProcessor(TProcessor processor, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory, TFileTransport inputTransport, TTransport outputTransport)
-
-
Method Details
-
processChunk
Process from start to last chunk both inclusive where chunks begin from 0- Parameters:
startChunkNum
- first chunk to be processedendChunkNum
- last chunk to be processed- Throws:
TException
- if endChunkNum is less than startChunkNum.
-
processChunk
Process a single chunk- Parameters:
chunkNum
- chunk to be processed- Throws:
TException
- on error while processing the given chunk.
-
processChunk
Process a current chunk- Throws:
TException
- on error while processing the given chunk.
-