MapSchema.MapWrapper<K,V>, MapSchema.MessageFactories, MapSchema.MessageFactory| Modifier and Type | Field and Description |
|---|---|
static StringMapSchema<String> |
VALUE_STRING
The schema for
Map<String,String> |
Pipe.Schema<V> |
vPipeSchema
The pipe schema of the message value.
|
Schema<V> |
vSchema
The schema of the message value.
|
FIELD_NAME_ENTRY, FIELD_NAME_KEY, FIELD_NAME_VALUE, messageFactory, pipeSchema| Constructor and Description |
|---|
StringMapSchema(Schema<V> vSchema) |
StringMapSchema(Schema<V> vSchema,
Pipe.Schema<V> vPipeSchema) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
putValueFrom(Input input,
MapSchema.MapWrapper<String,V> wrapper,
String key)
Puts the entry(key and value), obtained from the input, into the
MapWrapper. |
protected String |
readKeyFrom(Input input,
MapSchema.MapWrapper<String,V> wrapper)
Reads the key from the input.
|
protected void |
transferKey(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the key from the input to the output.
|
protected void |
transferValue(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the value from the input to the output.
|
protected void |
writeKeyTo(Output output,
int fieldNumber,
String value,
boolean repeated)
Writes the key to the output.
|
protected void |
writeValueTo(Output output,
int fieldNumber,
V value,
boolean repeated)
Writes the value to the output.
|
getFieldName, getFieldNumber, isInitialized, mergeFrom, messageFullName, messageName, newMessage, typeClass, writeTopublic static final StringMapSchema<String> VALUE_STRING
Map<String,String>public final Pipe.Schema<V> vPipeSchema
public StringMapSchema(Schema<V> vSchema, Pipe.Schema<V> vPipeSchema)
protected final String readKeyFrom(Input input, MapSchema.MapWrapper<String,V> wrapper) throws IOException
MapSchemaThe extra wrapper arg is internally used as an object placeholder during polymorhic deserialization.
readKeyFrom in class MapSchema<String,V>IOExceptionprotected void putValueFrom(Input input, MapSchema.MapWrapper<String,V> wrapper, String key) throws IOException
MapSchemaMapWrapper.putValueFrom in class MapSchema<String,V>IOExceptionprotected final void writeKeyTo(Output output, int fieldNumber, String value, boolean repeated) throws IOException
MapSchemawriteKeyTo in class MapSchema<String,V>IOExceptionprotected void writeValueTo(Output output, int fieldNumber, V value, boolean repeated) throws IOException
MapSchemawriteValueTo in class MapSchema<String,V>IOExceptionprotected void transferKey(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
MapSchematransferKey in class MapSchema<String,V>IOExceptionprotected void transferValue(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
MapSchematransferValue in class MapSchema<String,V>IOExceptionCopyright © 2009–2016. All rights reserved.