# MappingAddressTranslator

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>
            <span class="ancestors"><a href="index.html">policies/addressResolution</a>~</span>MappingAddressTranslator<span class="signature">(mapping)</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Address translator that creates a fixed mapping between the addresses sent by the database
into locally queryable addresses.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="MappingAddressTranslator"><span class="type-signature"></span>new MappingAddressTranslator<span class="signature">(mapping)</span><span class="type-signature"></span></h4>
    

    











    <h5>Parameters:</h5>
    

<table class="params docutils align-default">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>mapping</code></td>
            

            <td class="type">
            
                
<span class="param-type">Map&lt;_nodeNet.SocketAddress, \_nodeNet.SocketAddress></span>


            
            </td>

            

            

            <td class="description last"><p>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.</p></td>
        </tr>

    
    </tbody>
</table>






<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.6.1/lib/policies/address-resolution.js#L123" target="_blank" rel="noopener">policies/address-resolution.js, line 123</a></p></div>




















    
    </div>
