if (fieldTypeEntriesVersionsMap != null) {
for (Entry<byte[], NavigableMap<Long, byte[]>> entry : fieldTypeEntriesVersionsMap.entrySet()) {
SchemaId fieldTypeId = new SchemaIdImpl(entry.getKey());
Entry<Long, byte[]> ceilingEntry = entry.getValue().ceilingEntry(version);
if (ceilingEntry != null) {
FieldTypeEntry fieldTypeEntry = decodeFieldTypeEntry(ceilingEntry.getValue(), fieldTypeId);
if (fieldTypeEntry != null) {
recordType.addFieldTypeEntry(fieldTypeEntry);
}
}
}
}
} else {
NavigableMap<byte[], byte[]> versionableMap = result.getFamilyMap(TypeCf.FIELDTYPE_ENTRY.bytes);
if (versionableMap != null) {
for (Entry<byte[], byte[]> entry : versionableMap.entrySet()) {
SchemaId fieldTypeId = new SchemaIdImpl(entry.getKey());
FieldTypeEntry fieldTypeEntry = decodeFieldTypeEntry(entry.getValue(), fieldTypeId);
if (fieldTypeEntry != null) {
recordType.addFieldTypeEntry(fieldTypeEntry);
}
}
}