Package org.hibernate.search.spatial

Examples of org.hibernate.search.spatial.Coordinates


  public void testSpatialQueries() {
    Transaction transaction = fullTextSession.beginTransaction();
    final QueryBuilder builder = fullTextSession.getSearchFactory()
        .buildQueryBuilder().forEntity( POI.class ).get();

    Coordinates coordinates = Point.fromDegrees( 24d, 31.5d );
    Query query = builder
        .spatial()
          .onCoordinates( "location" )
          .within( 51, Unit.KM )
            .ofCoordinates( coordinates )
View Full Code Here


  double longitude;

  @Spatial
  @Embedded
  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

  @NumericField
  double longitude;

  @Spatial(spatialMode = SpatialMode.HASH)
  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

  double latitude;
  double longitude;

  @Spatial
  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

  @NumericField
  double longitude;

  @Spatial
  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

  private Double latitude;
  private Double longitude;

  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

  @Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO)
  @FieldBridge(impl = SpatialFieldBridgeByHash.class)
  @Embedded
  public Coordinates getLocation() {
    return new Coordinates() {
      @Override
      public Double getLatitude() {
        return latitude;
      }
View Full Code Here

TOP

Related Classes of org.hibernate.search.spatial.Coordinates

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.