当前位置: 首页>>代码示例>>Java>>正文


Java IFilter类代码示例

本文整理汇总了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;
}
 
开发者ID:SumoLogic,项目名称:sumologic-kinesis-connector,代码行数:21,代码来源:KinesisConnectorRecordProcessor.java

示例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>();
}
 
开发者ID:SumoLogic,项目名称:sumologic-kinesis-connector,代码行数:5,代码来源:SumologicMessageModelPipeline.java

示例4: getFilter

import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IFilter<byte[]> getFilter(KinesisConnectorConfiguration configuration) {
    return new AllPassFilter<>();
}
 
开发者ID:codeflows,项目名称:kinesis-to-s3,代码行数:5,代码来源:S3Pipeline.java

示例5: getFilter

import com.amazonaws.services.kinesis.connectors.interfaces.IFilter; //导入依赖的package包/类
@Override
public IFilter<KinesisMessageModel> getFilter(KinesisConnectorConfiguration configuration) {
    return new AllPassFilter<KinesisMessageModel>();
}
 
开发者ID:awslabs,项目名称:aws-big-data-blog,代码行数:5,代码来源:HBasePipeline.java


注:本文中的com.amazonaws.services.kinesis.connectors.interfaces.IFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。