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


Java Step类代码示例

本文整理汇总了Java中org.galagosearch.tupleflow.Step的典型用法代码示例。如果您正苦于以下问题:Java Step类的具体用法?Java Step怎么用?Java Step使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Step类属于org.galagosearch.tupleflow包,在下文中一共展示了Step类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: add

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void add(Step stage) throws IncompatibleProcessorException {
    if (items.size() > 0) {
        // is this a ShreddedProcessor?
        Object previousSource = items.get(items.size() - 1);
        ((Source) previousSource).setProcessor(stage);
    }

    items.add(stage);
}
 
开发者ID:jjfiv,项目名称:galagosearch,代码行数:10,代码来源:Chain.java

示例2: getStage

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public Step getStage() {
    if (items.size() > 0) {
        Step first = items.get(0);
        return first;
    }
    return null;
}
 
开发者ID:jjfiv,项目名称:galagosearch,代码行数:8,代码来源:Chain.java

示例3: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof ZipfCount.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((ZipfCount.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<ZipfCount>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:ZipfCount.java

示例4: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof AdditionalDocumentText.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((AdditionalDocumentText.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<AdditionalDocumentText>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:AdditionalDocumentText.java

示例5: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof NumberedLink.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((NumberedLink.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<NumberedLink>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:NumberedLink.java

示例6: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof NumberedDocumentData.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((NumberedDocumentData.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<NumberedDocumentData>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:NumberedDocumentData.java

示例7: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof DocumentFeature.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((DocumentFeature.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<DocumentFeature>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:DocumentFeature.java

示例8: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof WordProbability.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((WordProbability.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<WordProbability>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:WordProbability.java

示例9: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof WordOffset.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((WordOffset.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<WordOffset>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:WordOffset.java

示例10: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof DocumentData.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((DocumentData.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<DocumentData>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:DocumentData.java

示例11: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof ExtractedLink.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((ExtractedLink.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<ExtractedLink>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:ExtractedLink.java

示例12: setProcessor

import org.galagosearch.tupleflow.Step; //导入依赖的package包/类
public void setProcessor(Step processor) throws IncompatibleProcessorException {  
    if (processor instanceof ShreddedProcessor) {
        this.processor = new DuplicateEliminator((ShreddedProcessor) processor);
    } else if (processor instanceof DocumentNumberWordInteger.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((DocumentNumberWordInteger.Processor) processor));
    } else if (processor instanceof org.galagosearch.tupleflow.Processor) {
        this.processor = new DuplicateEliminator(new TupleUnshredder((org.galagosearch.tupleflow.Processor<DocumentNumberWordInteger>) processor));
    } else {
        throw new IncompatibleProcessorException(processor.getClass().getName() + " is not supported by " + this.getClass().getName());                                                                       
    }
}
 
开发者ID:youngilcho,项目名称:internet-application-2014,代码行数:12,代码来源:DocumentNumberWordInteger.java


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