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