Examples of BlurResultIterableMultiple


Examples of org.apache.blur.manager.results.BlurResultIterableMultiple

public class MultipleBlurResultIterableTest {

  @Test
  public void testMultipleHitsIterable() throws BlurException {
    BlurResultIterableMultiple iterable = new BlurResultIterableMultiple();
    iterable.addBlurResultIterable(newBlurResultIterable(0, 0.1, 3, 2, 9, 10, 2));
    iterable.addBlurResultIterable(newBlurResultIterable(7, 2, 9, 1, 34, 53, 12));
    iterable.addBlurResultIterable(newBlurResultIterable(4, 3));
    iterable.addBlurResultIterable(newBlurResultIterable(7, 2, 34, 132));
    iterable.addBlurResultIterable(newBlurResultIterable());

    BlurIterator<BlurResult, BlurException> iterator = iterable.iterator();
    while (iterator.hasNext()) {
      BlurResult hit = iterator.next();
      System.out.println(hit);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.