@Override public BulkNodeClient newIndex( String index, String type, InputStream settings, InputStream mappings) throws IOException { configHelper.reset(); configHelper.setting(settings); configHelper.mapping(type, mappings); return newIndex(index, configHelper.settings(), configHelper.mappings()); }
@Override public BulkNodeClient deleteMapping(String index, String type) { if (client == null) { logger.warn("no client for delete mapping"); return this; } configHelper.deleteMapping(client, index, type); return this; }
@Override public BulkNodeClient putMapping(String index) { if (client == null) { logger.warn("no client for put mapping"); return this; } configHelper.putMapping(client, index); return this; }
public Map<String, String> getMappings() { return configHelper.mappings(); }
public void mapping(String type, String mapping) throws IOException { configHelper.mapping(type, mapping); }
public void mapping(String type, InputStream in) throws IOException { configHelper.mapping(type, in); }
public void addSetting(String key, Integer value) { configHelper.setting(key, value); }
public void addSetting(String key, Boolean value) { configHelper.setting(key, value); }
public void setting(InputStream in) throws IOException { configHelper.setting(in); }
public ImmutableSettings.Builder getSettingsBuilder() { return configHelper.settingsBuilder(); }
public Settings getSettings() { return configHelper.settings(); }
public void setSettings(Settings settings) { configHelper.settings(settings); }