/**
* {@inheritDoc}
*/
@Override
public IndexStructure read(String file) throws IOException {
SenseiDBFieldsDefinitionReader reader = new SenseiDBFieldsDefinitionReader(new File(file));
try {
List<FieldAttributes> fields = reader.readFields();
IndexStructure structure = new BasicIndexStructure();
for (FieldAttributes field : fields) {
structure.addField(field.name(), field);
}
return structure;