Mapper { public abstract List<IndexableField> indexableFields(Columns columns); protected  Mapper(String field,
                     Boolean docValues,
                     Boolean validated,
                     String analyzer,
                     List<String> mappedColumns,
                     List<Class<?>> supportedTypes,
                     List<Class<?>> excludedTypes,
                     Boolean supportsCollections); abstract List<IndexableField> indexableFields(Columns columns); List<IndexableField> bestEffortIndexableFields(Columns columns); void validate(Columns columns); abstract SortField sortField(String name, boolean reverse); boolean mapsCell(String cell); @Override String toString(); final String field; final Boolean docValues; final Boolean validated; final String analyzer; final List<String> mappedColumns; final List<String> mappedCells; final List<Class<?>> supportedTypes; final List<Class<?>> excludedTypes; final Boolean supportsCollections; }
@Test public void testIndexableFields() { Mapper mapper = stringMapper().build("f"); Columns columns = Columns.empty().add("f", "v"); List<IndexableField> fields = mapper.indexableFields(columns); assertEquals("Expected 2 fields", 2, fields.size()); }