Package org.hibernate.search.spatial

Examples of org.hibernate.search.spatial.SpatialFieldBridgeByGrid


  public static FieldBridge buildSpatialBridge(Spatial spatial, String latitudeField, String longitudeField) {
    FieldBridge bridge = null;
    if ( spatial != null ) {
      if ( spatial.spatialMode() == SpatialMode.GRID ) {
        if ( latitudeField != null && longitudeField != null ) {
          bridge = new SpatialFieldBridgeByGrid( spatial.topGridLevel(), spatial.bottomGridLevel(), latitudeField, longitudeField );
        }
        else {
          bridge = new SpatialFieldBridgeByGrid( spatial.topGridLevel(), spatial.bottomGridLevel() );
                                }
      }
      else {
        if ( latitudeField != null && longitudeField != null ) {
          bridge = new SpatialFieldBridgeByRange( latitudeField, longitudeField );
View Full Code Here


   */
  public static FieldBridge buildSpatialBridge( Spatial spatial) {
    FieldBridge bridge = null;
    if ( spatial != null )  {
      if( spatial.spatialMode() == SpatialMode.GRID ) {
        bridge = new SpatialFieldBridgeByGrid( spatial.topGridLevel(), spatial.bottomGridLevel() );
      } else {
        bridge = new SpatialFieldBridgeByRange();
      }
    }

View Full Code Here

TOP

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

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.