/** * Load the avro schema from this file. */ public void loadSchema(Path schemaPath) { Schema schema; try { schema = new Schema.Parser().parse(schemaPath.toFile()); } catch (IOException e) { throw new IllegalArgumentException("Invalid schema file: " + schemaPath, e); } addSchema(schema); }