| Package | Description |
|---|---|
| io.protostuff |
classes in protostuff are "final" or not all suitable for ServiceComb
1.final
io.protostuff.ProtobufOutputEx
io.protostuff.ByteArrayInput
2.not suitable
1) io.protostuff.OutputEx
fieldNumber changed to tag, avoid makeTag every time
not support write packed value
not support ignore default scalar value
2) io.protostuff.SchemaEx
make it simpler
3) codec of map is not compatible to protobuf
so we must copy and modified them
|
| org.apache.servicecomb.foundation.protobuf.internal.schema.any | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer.repeated.impl | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.map | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.serializer |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SchemaEx<T>
Forked and modified from protostuff
Handles the serialization and deserialization of a message/object tied to this.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
InputEx.mergeObject(T value,
SchemaReader<T> schema)
Merges an object(with schema) field value.
|
<T> T |
ByteArrayInputEx.mergeObject(T value,
SchemaReader<T> schema) |
| Modifier and Type | Class and Description |
|---|---|
class |
AnyEntrySchema |
| Modifier and Type | Class and Description |
|---|---|
class |
MessageReadSchema<T>
map.put("user", new User())
root write from map, but user should write from pojo
so one schema should support dynamic and concrete logic at the same time
|
| Modifier and Type | Method and Description |
|---|---|
static <T> FieldSchema<T> |
MessageRepeatedReadSchemas.create(io.protostuff.compiler.model.Field protoField,
PropertyDescriptor propertyDescriptor,
SchemaReader<Object> elementSchema) |
static <T> FieldSchema<T> |
PropertyWrapperRepeatedReadSchemas.create(io.protostuff.compiler.model.Field protoField,
PropertyDescriptor propertyDescriptor,
SchemaReader<Object> elementSchema) |
| Modifier and Type | Class and Description |
|---|---|
class |
MapEntrySchema |
| Modifier and Type | Class and Description |
|---|---|
class |
MessageWriteSchema<T>
map.put("user", new User())
root write from map, but user should write from pojo
so one schema should support dynamic and concrete logic at the same time
|
class |
RootPropertyWrapperWriteSchema<T> |
Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.