...
Code Block |
---|
public interface FixedKeyProcessor<KIn, VIn, VOut> { default void init(final FixedKeyProcessorContext<KIn, VOut> context) {} void process(FixedKeyRecord<KIn, VIn> record); default void close() {} } |
...
Contextual
FixedKeyProcessor
Helper, same as ContextualProcessor
.
Code Block |
---|
public abstract class FixedKeyContextualProcessor<KInContextualFixedKeyProcessor<KIn, VIn, VOut> implements FixedKeyProcessor<KIn, VIn, VOut> { private FixedKeyProcessorContext<KIn, VOut> context; protected FixedKeyContextualProcessor() {} @Override public void init(final FixedKeyProcessorContext<KIn, VOut> context) { this.context = context; } protected final FixedKeyProcessorContext<KIn, VOut> context() { return context; } } |
...