Examples of IDGeoRecord


Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

        CartesianCoordinateUUID minCoordinate = buildMinCoordinate(centroidCoordinate, query.getRangeInKm());
        CartesianCoordinateUUID maxCoordinate = buildMaxCoordinate(centroidCoordinate, query.getRangeInKm());

        GeoSegmentReader<IDGeoRecord> segmentReader = getGeoSegmentReader();

        IDGeoRecord minRecord = geoConverter.toIDGeoRecord(minCoordinate);
        IDGeoRecord maxRecord = geoConverter.toIDGeoRecord(maxCoordinate);
        Iterator<IDGeoRecord> hitIterator = segmentReader.getIterator(minRecord, maxRecord);
       
        return collectHits(centroidCoordinate, hitIterator, minCoordinate, maxCoordinate, start, count);
    }
View Full Code Here

Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

            int start, int count) {
       
        int totalHits = 0;
        GeoOnlyHitQueue hitQueue = new GeoOnlyHitQueue(start+count);
        while (hitIterator.hasNext()) {
            IDGeoRecord record = hitIterator.next();
            CartesianCoordinateUUID hitCoordinate = geoConverter.toCartesianCoordinate(record);
            if (minCoordinate.x <= hitCoordinate.x && hitCoordinate.x <= maxCoordinate.x
                    && minCoordinate.y <= hitCoordinate.y && hitCoordinate.y <= maxCoordinate.y
                    && minCoordinate.z <= hitCoordinate.z && hitCoordinate.z <= maxCoordinate.z
                    ) {
View Full Code Here

Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

        int lowOrderPosition = INTLENGTH - 2;
        lowOrderBits = interlaceToInteger(x, xPos, lowOrderBits, lowOrderPosition, 3);
        lowOrderBits = interlaceToInteger(y, yPos, lowOrderBits, --lowOrderPosition, 3);
        lowOrderBits = interlaceToInteger(z, zPos, lowOrderBits, --lowOrderPosition, 3);

        return new IDGeoRecord(highOrderBits, lowOrderBits, uuid);
    }
View Full Code Here

Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

        }
       
        IGeoConverter converter = config.getGeoConverter();
       
        GeoCoordinate geoCoordinate = field.getGeoCoordinate();
        IDGeoRecord geoRecord = converter.toIDGeoRecord(
                geoCoordinate.getLatitude(), geoCoordinate.getLongitude(), uuid);
        newRecords.add(geoRecord);
    }
View Full Code Here

Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

            try {
                Iterator<IDGeoRecord> currentIndexIterator =
                    currentIndex.getIterator(IDGeoRecord.MIN_VALID_GEORECORD, IDGeoRecord.MAX_VALID_GEORECORD);
               
                while (currentIndexIterator.hasNext()) {
                    IDGeoRecord geoRecord = currentIndexIterator.next();
                   
                    if (!isDeleted(geoRecord.id)) {
                        inMemoryIndex.add(geoRecord);
                    }
                }
View Full Code Here

Examples of com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord

        long highOrder = input.readLong();
        int lowOrder = input.readInt();
        int countIdBytes = recordByteCount - INTERLACE_BYTES;
        byte[] id = new byte[countIdBytes];
        input.readBytes(id, 0, countIdBytes, false);
        return new IDGeoRecord(highOrder, lowOrder, id);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.