本文整理汇总了Java中com.amazonaws.services.kinesis.connectors.interfaces.IFilter类的典型用法代码示例。如果您正苦于以下问题:Java IFilter类的具体用法?Java IFilter怎么用?Java IFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IFilter类属于com.amazonaws.services.kinesis.connectors.interfaces包,在下文中一共展示了IFilter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: KinesisConnectorRecordProcessor
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
public KinesisConnectorRecordProcessor(IBuffer<T> buffer,
IFilter<T> filter,
IEmitter<U> emitter,
ITransformerBase<T, U> transformer,
KinesisConnectorConfiguration configuration) {
if (buffer == null || filter == null || emitter == null || transformer == null) {
throw new IllegalArgumentException("buffer, filter, emitter, and transformer must not be null");
}
this.buffer = buffer;
this.filter = filter;
this.emitter = emitter;
this.transformer = transformer;
// Limit must be greater than zero
if (configuration.RETRY_LIMIT <= 0) {
retryLimit = 1;
} else {
retryLimit = configuration.RETRY_LIMIT;
}
this.backoffInterval = configuration.BACKOFF_INTERVAL;
}
示例2: createProcessor
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IRecordProcessor createProcessor() {
try {
IBuffer<T> buffer = pipeline.getBuffer(configuration);
IEmitter<U> emitter = pipeline.getEmitter(configuration);
ITransformerBase<T, U> transformer = pipeline.getTransformer(configuration);
IFilter<T> filter = pipeline.getFilter(configuration);
KinesisConnectorRecordProcessor<T, U> processor =
new KinesisConnectorRecordProcessor<T, U>(buffer, filter, emitter, transformer, configuration);
return processor;
} catch (Throwable t) {
throw new RuntimeException(t);
}
}
开发者ID:SumoLogic,项目名称:sumologic-kinesis-connector,代码行数:15,代码来源:KinesisConnectorRecordProcessorFactory.java
示例3: getFilter
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IFilter<SimpleKinesisMessageModel> getFilter(KinesisConnectorConfiguration configuration) {
return new AllPassFilter<SimpleKinesisMessageModel>();
}
示例4: getFilter
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IFilter<byte[]> getFilter(KinesisConnectorConfiguration configuration) {
return new AllPassFilter<>();
}
示例5: getFilter
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IFilter<KinesisMessageModel> getFilter(KinesisConnectorConfiguration configuration) {
return new AllPassFilter<KinesisMessageModel>();
}