config.getBufferSizePerGeoSegmentReader(), geoRecordSerializer,
geoComparator);
}
private GeoSegmentInfo buildGeoSegmentInfo(String segmentName) throws IOException {
IGeoConverter converter = config.getGeoConverter();
//write version
GeoSegmentInfo info = new GeoSegmentInfo();
info.setGeoVersion(GeoVersion.CURRENT_GEOONLY_VERSION);
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;