Package org.apache.thrift.transport
Class TFileProcessor
- java.lang.Object
-
- org.apache.thrift.transport.TFileProcessor
-
public class TFileProcessor extends java.lang.ObjectFileProcessor: helps in processing files generated by TFileTransport. Port of original cpp implementation
-
-
Constructor Summary
Constructors Constructor Description TFileProcessor(TProcessor processor, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory, TFileTransport inputTransport, TTransport outputTransport)TFileProcessor(TProcessor processor, TProtocolFactory protocolFactory, TFileTransport inputTransport, TTransport outputTransport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessChunk()Process a current chunkvoidprocessChunk(int chunkNum)Process a single chunkvoidprocessChunk(int startChunkNum, int endChunkNum)Process from start to last chunk both inclusive where chunks begin from 0
-
-
-
Constructor Detail
-
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 Detail
-
processChunk
public void processChunk(int startChunkNum, int endChunkNum) throws TExceptionProcess 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
public void processChunk(int chunkNum) throws TExceptionProcess a single chunk- Parameters:
chunkNum- chunk to be processed- Throws:
TException- on error while processing the given chunk.
-
processChunk
public void processChunk() throws TExceptionProcess a current chunk- Throws:
TException- on error while processing the given chunk.
-
-