public class SimpleNodeFilter extends Object implements Predicate<Node>
If both lists are empty, all nodes are accepted. If the allow list is not empty, only nodes in that list will be allowed. If the deny list is not empty, only nodes not in that list will be allowed.
Usually just one of the two lists would be non-empty, but the filter also functions properly when both are non-empty, in which case the deny list wins. In other words, if a node appears in both lists, it will be excluded.
Nodes are resolved eagerly during startup and are not re-resolved after.
This filter is not compatible with DataStax Astra cloud deployments.
| Constructor and Description |
|---|
SimpleNodeFilter(DriverContext context,
String profileName)
Constructor required by the driver to create an instance of this filter.
|
SimpleNodeFilter(Set<EndPoint> includedHosts,
Set<EndPoint> excludedHosts) |
public SimpleNodeFilter(DriverContext context, String profileName)
context - The driver context to get the configuration from.profileName - The execution profile name; for DSBulk, this should always be the default
profile name.Copyright © 2017–2021 DataStax. All rights reserved.