當前位置: 首頁>>代碼示例>>Java>>正文


Java IteratorChain.addIterator方法代碼示例

本文整理匯總了Java中org.apache.solr.common.util.IteratorChain.addIterator方法的典型用法代碼示例。如果您正苦於以下問題:Java IteratorChain.addIterator方法的具體用法?Java IteratorChain.addIterator怎麽用?Java IteratorChain.addIterator使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.solr.common.util.IteratorChain的用法示例。


在下文中一共展示了IteratorChain.addIterator方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: testCallNextTooEarly

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testCallNextTooEarly() {
  final IteratorChain<String> c = new IteratorChain<>();
  c.addIterator(makeIterator("a",3));
  try {
    c.next();
    fail("Calling next() before hasNext() should throw RuntimeException");
  } catch(RuntimeException asExpected) {
    // we're fine
  }
}
 
開發者ID:europeana,項目名稱:search,代碼行數:11,代碼來源:IteratorChainTest.java

示例2: testCallAddTooLate

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testCallAddTooLate() {
  final IteratorChain<String> c = new IteratorChain<>();
  c.hasNext();
  try {
    c.addIterator(makeIterator("a",3));
    fail("Calling addIterator after hasNext() should throw RuntimeException");
  } catch(RuntimeException asExpected) {
    // we're fine
  }
}
 
開發者ID:europeana,項目名稱:search,代碼行數:11,代碼來源:IteratorChainTest.java

示例3: testEmptyIteratorsInTheMiddle

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testEmptyIteratorsInTheMiddle() {
  final IteratorChain<String> c = new IteratorChain<>();
  c.addIterator(makeIterator("a",3));
  c.addIterator(makeIterator("b",0));
  c.addIterator(makeIterator("c",1));
  assertEquals("a1a2a3c1",getString(c));
}
 
開發者ID:europeana,項目名稱:search,代碼行數:8,代碼來源:IteratorChainTest.java

示例4: getParameterNamesIterator

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
@Override
public Iterator<String> getParameterNamesIterator() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.addIterator(defaults.getParameterNamesIterator());
  c.addIterator(params.getParameterNamesIterator());
  return c;
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:8,代碼來源:DefaultSolrParams.java

示例5: testCallNextTooEarly

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testCallNextTooEarly() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.addIterator(makeIterator("a",3));
  try {
    c.next();
    fail("Calling next() before hasNext() should throw RuntimeException");
  } catch(RuntimeException asExpected) {
    // we're fine
  }
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:11,代碼來源:IteratorChainTest.java

示例6: testCallAddTooLate

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testCallAddTooLate() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.hasNext();
  try {
    c.addIterator(makeIterator("a",3));
    fail("Calling addIterator after hasNext() should throw RuntimeException");
  } catch(RuntimeException asExpected) {
    // we're fine
  }
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:11,代碼來源:IteratorChainTest.java

示例7: testEmptyIteratorsInTheMiddle

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testEmptyIteratorsInTheMiddle() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.addIterator(makeIterator("a",3));
  c.addIterator(makeIterator("b",0));
  c.addIterator(makeIterator("c",1));
  assertEquals("a1a2a3c1",getString(c));
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:8,代碼來源:IteratorChainTest.java

示例8: testOneIterator

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testOneIterator() {
  final IteratorChain<String> c = new IteratorChain<>();
  c.addIterator(makeIterator("a",3));
  assertEquals("a1a2a3",getString(c));
}
 
開發者ID:europeana,項目名稱:search,代碼行數:6,代碼來源:IteratorChainTest.java

示例9: testTwoIterators

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testTwoIterators() {
  final IteratorChain<String> c = new IteratorChain<>();
  c.addIterator(makeIterator("a",3));
  c.addIterator(makeIterator("b",2));
  assertEquals("a1a2a3b1b2",getString(c));
}
 
開發者ID:europeana,項目名稱:search,代碼行數:7,代碼來源:IteratorChainTest.java

示例10: testOneIterator

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testOneIterator() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.addIterator(makeIterator("a",3));
  assertEquals("a1a2a3",getString(c));
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:6,代碼來源:IteratorChainTest.java

示例11: testTwoIterators

import org.apache.solr.common.util.IteratorChain; //導入方法依賴的package包/類
public void testTwoIterators() {
  final IteratorChain<String> c = new IteratorChain<String>();
  c.addIterator(makeIterator("a",3));
  c.addIterator(makeIterator("b",2));
  assertEquals("a1a2a3b1b2",getString(c));
}
 
開發者ID:pkarmstr,項目名稱:NYBC,代碼行數:7,代碼來源:IteratorChainTest.java


注:本文中的org.apache.solr.common.util.IteratorChain.addIterator方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。