Package com.browseengine.bobo.geosearch

Examples of com.browseengine.bobo.geosearch.IFieldNameFilterConverter


        GeoCoordinate coordinate = field.getGeoCoordinate();
       
        LatitudeLongitudeDocId longLatDocId = new LatitudeLongitudeDocId(coordinate.getLatitude(),
                coordinate.getLongitude(), docID);
       
        IFieldNameFilterConverter fieldNameFilterConverter = geoConverter.makeFieldNameFilterConverter();
        CartesianGeoRecord geoRecord = geoConverter.toCartesianGeoRecord(fieldNameFilterConverter, fieldName, longLatDocId);
       
        //For now, we need to synchronize this since we can only safely have one thread at a
        //time adding an item to a treeset.  One alternative strategy is to add geoRecords to
        //an object with better concurrency while indexing and then sort using the TreeSet on
View Full Code Here


        info.setGeoVersion(GeoVersion.CURRENT_VERSION);

        info.setSegmentName(segmentName);
       
        //now write field -> filterByte mapping info
        IFieldNameFilterConverter fieldNameFilterConverter = geoConverter.makeFieldNameFilterConverter();
        if (fieldNameFilterConverter != null) {
            info.setFieldNameFilterConverter(fieldNameFilterConverter);
        }
       
        return info;
View Full Code Here

        List<BitVector> deletedDocsList =  new ArrayList<BitVector>(segments.size());
        boolean success = false;
        try {
            assert (readers.size() == segments.size());
           
            IFieldNameFilterConverter fieldNameFilterConverter = config.getGeoConverter().makeFieldNameFilterConverter();

            boolean hasFieldNameFilterConverter = false;
            for (SegmentReader reader : readers) {
                String geoFileName = config.getGeoFileName(reader.getSegmentName());
               
View Full Code Here

        info.setSegmentName(segmentName);
       
        info.setBytesPerRecord(IDGeoRecordSerializer.INTERLACE_BYTES + config.getBytesForId());
       
        //now write field -> filterByte mapping info
        IFieldNameFilterConverter fieldNameFilterConverter = converter.makeFieldNameFilterConverter();
        if (fieldNameFilterConverter != null) {
            info.setFieldNameFilterConverter(fieldNameFilterConverter);
        }
       
        return info;
View Full Code Here

        if (geoSegmentInfo.getGeoVersion() > GeoVersion.VERSION_0) {
            indexOutput.writeVInt(geoSegmentInfo.getBytesPerRecord());
        }
       
        //now write field -> filterByte mapping info
        IFieldNameFilterConverter filterConverter = geoSegmentInfo.getFieldNameFilterConverter();
        filterConverter.writeToOutput(indexOutput);
       
        //seek back to just after version and write actual tree location
        treeDataStart = indexOutput.getFilePointer();
        indexOutput.seek(afterVersionFilePointer);
        indexOutput.writeInt((int)treeDataStart);
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.geosearch.IFieldNameFilterConverter

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.