@Test public void getFieldType() { IndexMapping indexMapping = new IndexMapping(ImmutableMap.of("name", "text")); assertEquals("text", indexMapping.getFieldType("name")); assertNull(indexMapping.getFieldType("not_exist")); }
public String getFieldType(String fieldName) { return fieldMappings.get(fieldName); }
IndexMapping { public String getFieldType(String fieldName) { return fieldMappings.get(fieldName); } }
IndexMapping { public String getFieldType(String fieldName) { return fieldMappings.get(fieldName); } IndexMapping(Map<String, String> fieldMappings);  IndexMapping(MappingMetadata metaData); }
IndexMapping { public String getFieldType(String fieldName) { return fieldMappings.get(fieldName); } IndexMapping(Map<String, String> fieldMappings);  IndexMapping(MappingMetadata metaData); int size(); String getFieldType(String fieldName); Map<String, T> getAllFieldTypes(Function<String, T> transform); }
IndexMapping { public String getFieldType(String fieldName) { return fieldMappings.get(fieldName); } IndexMapping(Map<String, String> fieldMappings);  IndexMapping(MappingMetadata metaData); int size(); String getFieldType(String fieldName); Map<String, T> getAllFieldTypes(Function<String, T> transform);  }