Package org.apache.lucene.util.collections

Examples of org.apache.lucene.util.collections.IntToDoubleMap


  public DistanceCollector(Collector delegate, Point center, int hitsCount, String fieldname) {
    this.delegate = delegate;
    this.acceptsDocsOutOfOrder = delegate.acceptsDocsOutOfOrder();
    this.center = center;
    this.distances = new IntToDoubleMap( hitsCount );
    this.latitudeValues = new IntToDoubleMap( hitsCount );
    this.longitudeValues = new IntToDoubleMap( hitsCount );
    this.latitudeField = SpatialHelper.formatLatitude( fieldname );
    this.longitudeField = SpatialHelper.formatLongitude( fieldname );
  }
View Full Code Here


  private Double bottomDistance;
  private int docBase = 0;

  public DistanceComparator(Point center, int hitsCount, String fieldname) {
    this.center = center;
    this.distances = new IntToDoubleMap( hitsCount );
    this.latitudeValues = new IntToDoubleMap( hitsCount );
    this.longitudeValues = new IntToDoubleMap( hitsCount );
    this.latitudeField = SpatialHelper.formatLatitude( fieldname );
    this.longitudeField = SpatialHelper.formatLongitude( fieldname );
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.util.collections.IntToDoubleMap

Copyright © 2018 www.massapicom. 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.