Java SDK Documentation  12.0.0
com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector Class Reference
Inheritance diagram for com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector:
Inheritance graph
Collaboration diagram for com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector:
Collaboration graph

Public Member Functions

 MatchingKeySelector ()
 
void consume (Map< String,?> data)
 
String keyForIdent (String ident)
 

Detailed Description

A class that mimics the exact behavior of Encoder#keyForIdent(String) without having to pay the full performance cost of Encoder#consume(Map).

Constructor & Destructor Documentation

com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector.MatchingKeySelector ( )

Create a MatchingKeySelector instance.

Member Function Documentation

void com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector.consume ( Map< String,?>  data)

Consumes a map of data, looking only at the keys. This is necessary before calling keyForIdent(String).

Parameters
dataA map of data specified with String keys.
String com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector.keyForIdent ( String  ident)

Returns the key name of the first key that matches ident according to identifier comparison. Requires that data already be consumed.

See Also
#consume(Map)

Implements com.vertica.sdk.vmap.v1.KeySelector.