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
◆MatchingKeySelector()
com.vertica.sdk.vmap.v1.Encoder.MatchingKeySelector.MatchingKeySelector()
Create a MatchingKeySelector instance.
Member Function Documentation
◆consume()
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.
Referenced by com.vertica.sdk.PartitionWriter.setRowFromMap().
◆keyForIdent()
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.