Package com.github.ambry.store
Interface Transformer
-
public interface Transformer
An interface for a transformation function. Transformations parse the message and may modify any data in the message (including keys). Needs to be thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransformationOutput
transform(Message message)
void
warmup(java.util.List<MessageInfo> messageInfos)
Warms up transformer with message infos representing messages it will transform later
-
-
-
Method Detail
-
transform
TransformationOutput transform(Message message)
- Parameters:
message
- the inputMessage
to change.- Returns:
- the output
TransformationOutput
.
-
warmup
void warmup(java.util.List<MessageInfo> messageInfos) throws java.lang.Exception
Warms up transformer with message infos representing messages it will transform later- Parameters:
messageInfos
- message infos that will be used to warmup transformer, each message info corresponds to a message the transformer is expected to convert in the immediate future- Throws:
java.lang.Exception
-
-