Schema implements Closeable { @Override public String toString() { return MoreObjects.toStringHelper(this).add("mappers", mappers).add("analyzer", analyzer).toString(); } Schema(Analyzer defaultAnalyzer, Map<String, Mapper> mappers, Map<String, Analyzer> analyzers); Analyzer analyzer(String fieldName); Mapper mapper(String field); Set<String> mappedCells(); void validate(Columns columns); List<IndexableField> indexableFields(Columns columns); List<IndexableField> postProcessingIndexableFields(Columns columns, Search search); boolean mapsCell(String cell); @Override void close(); @Override String toString(); final Map<String, Mapper> mappers; final SchemaAnalyzer analyzer; final Analyzer defaultAnalyzer; }
@Test public void testToString() { Schema schema = schema().mapper("field1", stringMapper()).mapper("field2", textMapper()).build(); assertNotNull("Expected not null schema", schema.toString()); schema.close(); }