final SchemaRegistrationType schemaRegistrationType)
throws NoSuchColumnException, InvalidLayoutException {
Preconditions.checkNotNull(columnName);
Preconditions.checkNotNull(schemaRegistrationType);
final CellSchema cellSchema = getColumnSchema(columnName);
// Avoid tracking schemas final or non-AVRO cells.
if ((SchemaType.AVRO != cellSchema.getType())
|| (SchemaStorage.FINAL == cellSchema.getStorage())) {
throw new InvalidLayoutException("Final or non-AVRO column schema cannot be modified.");
}
final String fieldName = schemaRegistrationType.getCellSchemaFieldName();
return (List<AvroSchema>) Preconditions.checkNotNull(cellSchema.get(fieldName));
}