GeoSegmentWriter<IDGeoRecord> getGeoSegmentWriter(Set<IDGeoRecord> dataToFlush) throws IOException { String fileName = indexName + "." + config.getGeoFileExtension(); return new GeoSegmentWriter<IDGeoRecord>( dataToFlush, directory, fileName, buildGeoSegmentInfo(indexName), geoRecordSerializer); }
GeoSegmentReader<IDGeoRecord> getGeoSegmentReader() throws IOException { String fileName = indexName + "." + config.getGeoFileExtension(); return new GeoSegmentReader<IDGeoRecord>( directory, fileName, -1, config.getBufferSizePerGeoSegmentReader(), geoRecordSerializer, geoComparator); }