Vertica documentation is moving! Use our new documentation site at https://docs.rocketsoftware.com/bundle/vertica_12.0/page/index.html

com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector Class Reference

Inheritance diagram for com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector:

Collaboration diagram for com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector:

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

  • data: A 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.