Exemple #1
0
  GeoSegmentWriter<IDGeoRecord> getGeoSegmentWriter(Set<IDGeoRecord> dataToFlush)
      throws IOException {
    String fileName = indexName + "." + config.getGeoFileExtension();

    return new GeoSegmentWriter<IDGeoRecord>(
        dataToFlush, directory, fileName, buildGeoSegmentInfo(indexName), geoRecordSerializer);
  }
Exemple #2
0
  GeoSegmentReader<IDGeoRecord> getGeoSegmentReader() throws IOException {
    String fileName = indexName + "." + config.getGeoFileExtension();

    return new GeoSegmentReader<IDGeoRecord>(
        directory,
        fileName,
        -1,
        config.getBufferSizePerGeoSegmentReader(),
        geoRecordSerializer,
        geoComparator);
  }