Examples of combine()


Examples of org.apache.hama.examples.MindistSearch.MinTextCombiner.combine()

    Text a = new Text("1");
    Text b = new Text("2");
    Text d = new Text("4");
    Text c = new Text("3");
    List<Text> asList = Arrays.asList(new Text[] { a, b, c, d });
    Text combine = combiner.combine(asList);
    assertEquals(combine, a);
  }

  private void verifyResult() throws IOException {
    FileStatus[] globStatus = fs.globStatus(new Path(OUTPUT + "/part-*"));
 
View Full Code Here

Examples of org.apache.hama.examples.MindistSearch.MinTextCombiner.combine()

    Text a = new Text("1");
    Text b = new Text("2");
    Text d = new Text("4");
    Text c = new Text("3");
    List<Text> asList = Arrays.asList(new Text[] { a, b, c, d });
    Text combine = combiner.combine(asList);
    assertEquals(combine, a);
  }

  private void verifyResult() throws IOException {
    FileStatus[] globStatus = fs.globStatus(new Path(OUTPUT + "/part-*"));
 
View Full Code Here

Examples of org.apache.lucene.search.Query.combine()

         // will correspond to the second term from the list.

         termQueries[i - 1] = new TermQuery(terms.get(i));
      }

      tq = tq.combine(termQueries);
      return tq;
   }
  
}
View Full Code Here

Examples of org.apache.lucene.search.TermQuery.combine()

         // will correspond to the second term from the list.

         termQueries[i - 1] = new TermQuery(terms.get(i));
      }

      tq = tq.combine(termQueries);
      return tq;
   }
  
}
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.CombineResultService.combine()

      if (results.size() == 1) {
        response.setUserData(results.get(0).getUserData());
      }

      // combine location envelopes
      Envelope resultEnvelope = combineResultService.combine(results);
      Bbox bbox = dtoConverterService.toDto(resultEnvelope);
      response.setBbox(bbox);
      response.setCenter(new Coordinate(bbox.getX() + bbox.getWidth() / 2, bbox.getY() + bbox.getHeight() / 2));
    } else {
      List<GetLocationForStringAlternative> altList = new ArrayList<GetLocationForStringAlternative>();
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.CombineResultService.combine()

    List<GetLocationResult> list = new ArrayList<GetLocationResult>();
    list.add(glr1);
    list.add(glr2);

    CombineResultService cis = new CombineIntersectionService();
    Envelope res = cis.combine(list);
    Assert.assertEquals(20.0, res.getMinX(), DELTA);
    Assert.assertEquals(25.0, res.getMinY(), DELTA);
    Assert.assertEquals(35.0, res.getMaxX(), DELTA);
    Assert.assertEquals(30.0, res.getMaxY(), DELTA);
  }
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.CombineResultService.combine()

    List<GetLocationResult> list = new ArrayList<GetLocationResult>();
    list.add(glr1);
    list.add(glr2);

    CombineResultService cis = new CombineUnionService();
    Envelope res = cis.combine(list);
    Assert.assertEquals(10.0, res.getMinX(), DELTA);
    Assert.assertEquals(10.0, res.getMinY(), DELTA);
    Assert.assertEquals(40.0, res.getMaxX(), DELTA);
    Assert.assertEquals(50.0, res.getMaxY(), DELTA);
  }
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.SplitGeocoderStringService.combine()

      String matchedLocation = location;
      String geocoderName = null;
      if (results.size() == 1) {
        List<String> matchedStrings = results.get(0).getCanonicalStrings();
        if (null != matchedStrings) {
          matchedLocation = splitGeocoderStringService.combine(matchedStrings);
        }
        geocoderName = results.get(0).getGeocoderName();
      }
      response.setCanonicalLocation(matchedLocation);
      response.setGeocoderName(geocoderName);
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.SplitGeocoderStringService.combine()

          GetLocationForStringAlternative one = new GetLocationForStringAlternative();

          String matchedLocation = location;
          List<String> matchedStrings = alt.getCanonicalStrings();
          if (null != matchedStrings) {
            matchedLocation = splitGeocoderStringService.combine(matchedStrings);
          }
          one.setCanonicalLocation(matchedLocation);

          // set additional info data
          one.setGeocoderName(alt.getGeocoderName());
View Full Code Here

Examples of org.jbox2d.collision.AABB.combine()

    int height;
    height = 1 + MathUtils.max(height1, height2);
    assert (node.height == height);

    AABB aabb = new AABB();
    aabb.combine(child1.aabb, child2.aabb);

    assert (aabb.lowerBound.equals(node.aabb.lowerBound));
    assert (aabb.upperBound.equals(node.aabb.upperBound));

    validateMetrics(child1);
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.