MapSchema.MapWrapper<K,V>, MapSchema.MessageFactories, MapSchema.MessageFactory| Modifier and Type | Field and Description |
|---|---|
Pipe.Schema<K> |
kPipeSchema
The pipe schema of the message key.
|
Schema<K> |
kSchema
The schema of the message key.
|
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 |
|---|
MessageMapSchema(Schema<K> kSchema,
Schema<V> vSchema) |
MessageMapSchema(Schema<K> kSchema,
Schema<V> vSchema,
Pipe.Schema<K> kPipeSchema,
Pipe.Schema<V> vPipeSchema) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
putValueFrom(Input input,
MapSchema.MapWrapper<K,V> wrapper,
K key)
Puts the entry(key and value), obtained from the input, into the
MapWrapper. |
protected K |
readKeyFrom(Input input,
MapSchema.MapWrapper<K,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,
K 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 final Pipe.Schema<K> kPipeSchema
public final Pipe.Schema<V> vPipeSchema
public MessageMapSchema(Schema<K> kSchema, Schema<V> vSchema, Pipe.Schema<K> kPipeSchema, Pipe.Schema<V> vPipeSchema)
protected K readKeyFrom(Input input, MapSchema.MapWrapper<K,V> wrapper) throws IOException
MapSchemaThe extra wrapper arg is internally used as an object placeholder during polymorhic deserialization.
readKeyFrom in class MapSchema<K,V>IOExceptionprotected void putValueFrom(Input input, MapSchema.MapWrapper<K,V> wrapper, K key) throws IOException
MapSchemaMapWrapper.putValueFrom in class MapSchema<K,V>IOExceptionprotected void writeKeyTo(Output output, int fieldNumber, K value, boolean repeated) throws IOException
MapSchemawriteKeyTo in class MapSchema<K,V>IOExceptionprotected void writeValueTo(Output output, int fieldNumber, V value, boolean repeated) throws IOException
MapSchemawriteValueTo in class MapSchema<K,V>IOExceptionprotected void transferKey(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
MapSchematransferKey in class MapSchema<K,V>IOExceptionprotected void transferValue(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
MapSchematransferValue in class MapSchema<K,V>IOExceptionCopyright © 2009–2020. All rights reserved.