當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。