public final class MessageCollectionSchema<V> extends CollectionSchema<V>
Collection with Message or pojo values. Does not allow null values.CollectionSchema.MessageFactories, CollectionSchema.MessageFactory| Modifier and Type | Field and Description |
|---|---|
Pipe.Schema<V> |
pipeSchema
The pipe schema of the member (message).
|
Schema<V> |
schema
The schema of the member (message).
|
FIELD_NAME_NULL, FIELD_NAME_VALUE, messageFactory, preserveNull| Constructor and Description |
|---|
MessageCollectionSchema(Schema<V> schema,
boolean preserveNull) |
MessageCollectionSchema(Schema<V> schema,
Pipe.Schema<V> pipeSchema,
boolean preserveNull) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValueFrom(Input input,
Collection<V> collection)
Adds the value from the input into the
Collection. |
protected void |
transferValue(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the value from the input to the output.
|
protected void |
writeValueTo(Output output,
int fieldNumber,
V value,
boolean repeated)
Writes the value to the output.
|
fieldName, fieldNumber, getFieldName, getFieldNumber, isInitialized, mergeFrom, messageFullName, messageName, newMessage, typeClass, writeTopublic final Pipe.Schema<V> pipeSchema
public MessageCollectionSchema(Schema<V> schema, Pipe.Schema<V> pipeSchema, boolean preserveNull)
protected void addValueFrom(Input input, Collection<V> collection) throws IOException
CollectionSchemaCollection.addValueFrom in class CollectionSchema<V>IOExceptionprotected void writeValueTo(Output output, int fieldNumber, V value, boolean repeated) throws IOException
CollectionSchemawriteValueTo in class CollectionSchema<V>IOExceptionprotected void transferValue(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException
CollectionSchematransferValue in class CollectionSchema<V>IOExceptionCopyright © 2009–2022. All rights reserved.