this))));
final AdapterPersistenceEncoding encoding;
if (entry instanceof FitToIndexGridCoverage) {
encoding = new FitToIndexPersistenceEncoding(
getAdapterId(),
new ByteArrayId(
new byte[] {}),
new PersistentDataset<CommonIndexValue>(),
adapterExtendedData,
((FitToIndexGridCoverage) entry).getIndexId());
}
else {
// this shouldn't happen
LOGGER.warn("Grid coverage is not fit to the index");
encoding = new AdapterPersistenceEncoding(
getAdapterId(),
new ByteArrayId(
new byte[] {}),
new PersistentDataset<CommonIndexValue>(),
adapterExtendedData);
}
return encoding;