| 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
|
| io.protostuff.runtime | |
| org.apache.servicecomb.foundation.protobuf.internal.schema | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.any | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.map | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.serializer | |
| org.apache.servicecomb.foundation.protobuf.internal.schema.serializer.repeated |
| Modifier and Type | Class and Description |
|---|---|
class |
ProtobufOutputEx
Forked and modified from protostuff
Protobuf serialization where the messages must be fully buffered on memory before it can be written to the socket ( OutputStream). |
| Modifier and Type | Method and Description |
|---|---|
void |
SchemaWriter.writeTo(OutputEx output,
T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
FieldSchema.getAndWriteTo(OutputEx output,
T message) |
void |
FieldSchema.writeTo(OutputEx output,
Object value)
write from map
|
| Modifier and Type | Method and Description |
|---|---|
void |
MessageAsFieldSchema.getAndWriteTo(OutputEx output,
T message) |
void |
PropertyWrapperAsFieldSchema.getAndWriteTo(OutputEx output,
T message) |
void |
MessageAsFieldSchema.writeTo(OutputEx output,
Object value) |
void |
PropertyWrapperAsFieldSchema.writeTo(OutputEx output,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
AnySchema.getAndWriteTo(OutputEx output,
T message) |
protected void |
AnyEntrySchema.jsonExtend(OutputEx output,
Object input) |
protected void |
AnyEntrySchema.standardPack(OutputEx output,
Object message,
String canonicalName,
RootSerializer valueSerializer) |
void |
AnyEntrySchema.writeTo(OutputEx output,
Object value)
if message is type of CustomGeneric<User>
we can not get any information of "User" from message.getClass()
when use with ServiceComb
proto definition convert from swagger, the proto type will be "CustomGenericUser"
is not match to "CustomGeneric"
so message will be serialized with json schema
|
void |
AnySchema.writeTo(OutputEx output,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageReadSchema.writeTo(OutputEx output,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
MapSchema.getAndWriteTo(OutputEx output,
T message) |
void |
MapEntrySchema.writeTo(OutputEx output,
Map.Entry<Object,Object> value) |
void |
MapSchema.writeTo(OutputEx output,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MessageWriteSchema.writeFromMap(OutputEx output,
Map<String,Object> map) |
void |
RootPropertyWrapperWriteSchema.writeTo(OutputEx output,
Object value) |
void |
MessageWriteSchema.writeTo(OutputEx output,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractWriters.dynamicWriteTo(OutputEx output,
Object value) |
void |
AbstractPrimitiveWriters.dynamicWriteTo(OutputEx output,
Object value) |
Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.