本文整理匯總了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);
}
示例2: getStage
import org.galagosearch.tupleflow.Step; //導入依賴的package包/類
public Step getStage() {
if (items.size() > 0) {
Step first = items.get(0);
return first;
}
return null;
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}