Java 类org.hibernate.search.spatial.Coordinates 实例源码

项目:CoCoTemp    文件:Site.java   
/**
 * Formats the site's location into a coordinate.
 *
 * @return A coordinate
 */
@Transient
@JsonIgnore
@Spatial(spatialMode = SpatialMode.HASH)
public Coordinates getLocation()
{
    return new Coordinates()
    {
        @Override
        public Double getLatitude()
        {
            return getSiteLatitude();
        }

        @Override
        public Double getLongitude()
        {
            return getSiteLongitude();
        }
    };
}
项目:Hibernate-Search-GenericJPA    文件:FullTextQueryImpl.java   
@Override
public FullTextQuery setSpatialParameters(Coordinates center, String fieldName) {
    this.hsearchQuery.setSpatialParameters( center, fieldName );
    return this;
}
项目:Hibernate-Search-GenericJPA    文件:HSearchQueryImpl.java   
@Override
public HSearchQuery setSpatialParameters(Coordinates center, String fieldName) {
    this.hsquery.setSpatialParameters( center, fieldName );
    return this;
}
项目:Hibernate-Search-GenericJPA    文件:FullTextQuery.java   
/**
 * Defines the center of the spatial search for this query to project distance in results
 *
 * @param center the search center
 * @param fieldName name of the spatial field
 *
 * @return {@code this} for method chaining
 */
FullTextQuery setSpatialParameters(Coordinates center, String fieldName);
项目:spring-data-snowdrop    文件:Ops.java   
List<SimpleEntity> findByLocationWithin(Coordinates coordinates, double distance);
项目:Hibernate-Search-GenericJPA    文件:HSearchQuery.java   
HSearchQuery setSpatialParameters(Coordinates center, String fieldName);