Package com.browseengine.bobo.util

Examples of com.browseengine.bobo.util.BigFloatArray


  }

  @Override
  public String[] getFieldValues(BoboIndexReader reader, int id) {
    GeoFacetData dataCache = getFacetData(reader);
    BigFloatArray xvals = dataCache.get_xValArray();
    BigFloatArray yvals = dataCache.get_yValArray();
    BigFloatArray zvals = dataCache.get_zValArray();
   
    float xvalue = xvals.get(id);
    float yvalue = yvals.get(id);
    float zvalue = zvals.get(id);
    float lat = GeoMatchUtil.getMatchLatDegreesFromXYZCoords(xvalue, yvalue, zvalue);
    float lon = GeoMatchUtil.getMatchLonDegreesFromXYZCoords(xvalue, yvalue, zvalue);
   
    String[] fieldValues = new String[2];
    fieldValues[0] = String.valueOf(lat);
View Full Code Here


      _yValArray = yvals;
      _zValArray = zvals;
    }
   
    public static BigFloatArray newInstance(int maxDoc) {
      BigFloatArray array = new BigFloatArray(maxDoc);
      array.ensureCapacity(maxDoc);
      return array;
    }
View Full Code Here

      FacetDataCache<?> latCache = (FacetDataCache<?>)reader.getFacetData(latFieldName);
      FacetDataCache<?> lonCache = (FacetDataCache<?>)reader.getFacetData(lonFieldName);
     
      int maxDoc = reader.maxDoc();
     
      BigFloatArray xVals = this._xValArray;
      BigFloatArray yVals = this._yValArray;
      BigFloatArray zVals = this._zValArray;
     
      if(xVals == null)
        xVals = newInstance(maxDoc);
      else
        xVals.ensureCapacity(maxDoc);
      if(yVals == null)
        yVals = newInstance(maxDoc);
      else
        yVals.ensureCapacity(maxDoc);
      if(zVals == null)
        zVals = newInstance(maxDoc);
      else
        zVals.ensureCapacity(maxDoc);
     
      this._xValArray = xVals;
      this._yValArray = yVals;
      this._zValArray = zVals;
     
View Full Code Here

  }

  @Override
  public String[] getFieldValues(BoboSegmentReader reader, int id) {
    GeoFacetData dataCache = getFacetData(reader);
    BigFloatArray xvals = dataCache.get_xValArray();
    BigFloatArray yvals = dataCache.get_yValArray();
    BigFloatArray zvals = dataCache.get_zValArray();

    float xvalue = xvals.get(id);
    float yvalue = yvals.get(id);
    float zvalue = zvals.get(id);
    float lat = GeoMatchUtil.getMatchLatDegreesFromXYZCoords(xvalue, yvalue, zvalue);
    float lon = GeoMatchUtil.getMatchLonDegreesFromXYZCoords(xvalue, yvalue, zvalue);

    String[] fieldValues = new String[2];
    fieldValues[0] = String.valueOf(lat);
View Full Code Here

      _yValArray = yvals;
      _zValArray = zvals;
    }

    public static BigFloatArray newInstance(int maxDoc) {
      BigFloatArray array = new BigFloatArray(maxDoc);
      array.ensureCapacity(maxDoc);
      return array;
    }
View Full Code Here

      FacetDataCache<?> latCache = (FacetDataCache<?>) reader.getFacetData(latFieldName);
      FacetDataCache<?> lonCache = (FacetDataCache<?>) reader.getFacetData(lonFieldName);

      int maxDoc = reader.maxDoc();

      BigFloatArray xVals = this._xValArray;
      BigFloatArray yVals = this._yValArray;
      BigFloatArray zVals = this._zValArray;

      if (xVals == null) xVals = newInstance(maxDoc);
      else xVals.ensureCapacity(maxDoc);
      if (yVals == null) yVals = newInstance(maxDoc);
      else yVals.ensureCapacity(maxDoc);
      if (zVals == null) zVals = newInstance(maxDoc);
      else zVals.ensureCapacity(maxDoc);

      this._xValArray = xVals;
      this._yValArray = yVals;
      this._zValArray = zVals;
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.util.BigFloatArray

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.