Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
MappingAddressTranslator¶
policies/addressResolution~MappingAddressTranslator(mapping)
Address translator that creates a fixed mapping between the addresses sent by the database into locally queryable addresses.
Constructor¶
new MappingAddressTranslator(mapping)
Parameters:
| Name | Type | Description |
|---|---|---|
mapping |
Map<_nodeNet.SocketAddress, _nodeNet.SocketAddress> | Map of addresses to be translated. If an address is present as a key in the map, it will be translated to the value present under that key in the map. Otherwise, the address will remain unchanged. |
Methods¶
(package) getRustConfiguration() → {Array<Array<_nodeNet.SocketAddress>>}
Returns:
Array of pairs of addresses
- Type
- Array<Array<_nodeNet.SocketAddress>>