Package org.apache.lucene.index
Class PayloadProcessorProvider.PayloadProcessor
- java.lang.Object
-
- org.apache.lucene.index.PayloadProcessorProvider.PayloadProcessor
-
- Enclosing class:
- PayloadProcessorProvider
public abstract static class PayloadProcessorProvider.PayloadProcessor extends Object
Processes the given payload. One should callpayloadLength()to get the length of the processed payload.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description PayloadProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intpayloadLength()Returns the length of the payload that was returned byprocessPayload(byte[], int, int).abstract byte[]processPayload(byte[] payload, int start, int length)Process the incoming payload and returns the resulting byte[].
-
-
-
Method Detail
-
payloadLength
public abstract int payloadLength() throws IOExceptionReturns the length of the payload that was returned byprocessPayload(byte[], int, int).- Throws:
IOException
-
processPayload
public abstract byte[] processPayload(byte[] payload, int start, int length) throws IOExceptionProcess the incoming payload and returns the resulting byte[]. Note that a new array might be allocated if the given array is not big enough. The length of the new payload data can be obtained viapayloadLength().- Throws:
IOException
-
-