本文整理汇总了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());
}
}