本文整理汇总了Java中org.galagosearch.core.retrieval.structured.NullExtentIterator类的典型用法代码示例。如果您正苦于以下问题:Java NullExtentIterator类的具体用法?Java NullExtentIterator怎么用?Java NullExtentIterator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NullExtentIterator类属于org.galagosearch.core.retrieval.structured包,在下文中一共展示了NullExtentIterator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testIsUsableConstructor
import org.galagosearch.core.retrieval.structured.NullExtentIterator; //导入依赖的package包/类
/**
* Test of isUsableConstructor method, of class FeatureFactory.
*/
public void testIsUsableConstructor() {
FeatureFactory f = new FeatureFactory(new Parameters());
Class[] types = new Class[] { Parameters.class };
ArrayList<StructuredIterator> iterators = new ArrayList();
assertTrue(f.isUsableConstructor(types, iterators));
types = new Class[] { Parameters.class, ExtentIterator.class };
iterators.clear();
iterators.add(new NullExtentIterator());
assertTrue(f.isUsableConstructor(types, iterators));
}
示例2: testArrayArgsForConstructor
import org.galagosearch.core.retrieval.structured.NullExtentIterator; //导入依赖的package包/类
public void testArrayArgsForConstructor() {
FeatureFactory f = new FeatureFactory(new Parameters());
ArrayList<StructuredIterator> iterators = new ArrayList();
iterators.add(new NullExtentIterator());
ExtentIterator[] fakeArray = new ExtentIterator[1];
Class[] types = { Parameters.class, fakeArray.getClass() };
Object[] args = f.argsForConstructor(types, new Parameters(), iterators);
assertEquals(2, args.length);
assertEquals(Parameters.class.getName(), args[0].getClass().getName());
ExtentIterator[] array = (ExtentIterator[]) args[1];
assertEquals(iterators.get(0), array[0]);
}
示例3: testGetIterator
import org.galagosearch.core.retrieval.structured.NullExtentIterator; //导入依赖的package包/类
/**
* Test of getIterator method, of class FeatureFactory.
*/
public void testGetIterator() throws Exception {
FeatureFactory f = new FeatureFactory(new Parameters());
ArrayList<StructuredIterator> iterators = new ArrayList();
iterators.add(new NullExtentIterator());
StructuredIterator iterator = f.getIterator(new Node("od", "5"), iterators);
assertEquals(OrderedWindowIterator.class.getName(), iterator.getClass().getName());
}
示例4: testIsDone
import org.galagosearch.core.retrieval.structured.NullExtentIterator; //导入依赖的package包/类
public void testIsDone() {
NullExtentIterator instance = new NullExtentIterator();
assertEquals( true, instance.isDone() );
}