public Builder remove(String index) { if (indicesRouting == null) { throw new IllegalStateException("once build is called the builder cannot be reused"); } indicesRouting.remove(index); return this; }
@Override public ImmutableOpenMap<K, T> apply(ImmutableOpenMap<K, T> map) { ImmutableOpenMap.Builder<K, T> builder = ImmutableOpenMap.builder(); builder.putAll(map); for (K part : deletes) { builder.remove(part); } for (Map.Entry<K, Diff<T>> diff : diffs.entrySet()) { builder.put(diff.getKey(), diff.getValue().apply(builder.get(diff.getKey()))); } for (Map.Entry<K, T> upsert : upserts.entrySet()) { builder.put(upsert.getKey(), upsert.getValue()); } return builder.build(); } }
public Builder removeCustom(String type) { customs.remove(type); return this; }
public Builder remove(String index) { indices.remove(index); return this; }
public Builder remove(DiscoveryNode node) { if (node.equals(nodes.get(node.getId()))) { nodes.remove(node.getId()); } return this; }
public Builder removeTemplate(String templateName) { templates.remove(templateName); return this; }
public Builder remove(String index) { if (indicesRouting == null) { throw new IllegalStateException("once build is called the builder cannot be reused"); } indicesRouting.remove(index); return this; }
public Builder remove(String index) { if (indicesRouting == null) { throw new IllegalStateException("once build is called the builder cannot be reused"); } indicesRouting.remove(index); return this; }
public Builder remove(DiscoveryNode node) { if (node.equals(nodes.get(node.getId()))) { nodes.remove(node.getId()); } return this; }
public Builder remove(DiscoveryNode node) { if (node.equals(nodes.get(node.getId()))) { nodes.remove(node.getId()); } return this; }
public Map<String, String> removeCustom(String type) { return this.customMetaData.remove(type); }
public Builder removeCustom(String type) { customs.remove(type); return this; }
public Builder removeCustom(String type) { customs.remove(type); return this; }
public Builder removeTemplate(String templateName) { templates.remove(templateName); return this; }
public Builder remove(String index) { indices.remove(index); return this; }
public Builder removeAlias(String alias) { aliases.remove(alias); return this; }
public Builder removeMapping(String mappingType) { mappings.remove(mappingType); return this; }
public Builder remove(String nodeId) { nodes.remove(nodeId); return this; }
public Builder remove(DiscoveryNode node) { if (node.equals(nodes.get(node.getId()))) { nodes.remove(node.getId()); } return this; }