Uses of Interface
io.protostuff.Schema
Packages that use Schema
-
Uses of Schema in io.protostuff
Classes in io.protostuff that implement SchemaModifier and TypeClassDescriptionclassA schema for standard jdkcollections.classCustomSchema<T>A schema (helper class) that wraps another schema and allows its subclasses to override certain methods for more customization.final classA ByteArrayInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.final classA CodedInput w/c can handle cyclic dependencies when deserializing objects with graph transformations.classMapSchema<K,V> A schema for aMap.final classA schema for aCollectionwithMessageor pojo values.final classMessageMapSchema<K,V> static classPipe.Schema<T>classFields in io.protostuff declared as SchemaModifier and TypeFieldDescriptionMessageMapSchema.kSchemaThe schema of the message key.CustomSchema.schemaMessageCollectionSchema.schemaThe schema of the member (message).final Schema<?> UninitializedMessageException.targetSchemaMessageMapSchema.vSchemaThe schema of the message value.StringMapSchema.vSchemaThe schema of the message value.Pipe.Schema.wrappedSchemaMethods in io.protostuff that return SchemaModifier and TypeMethodDescriptionMessage.cachedSchema()Gets the cached schema of this message.<T> Schema<T> UninitializedMessageException.getTargetSchema()Methods in io.protostuff with parameters of type SchemaModifier and TypeMethodDescription<T> voidByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidByteBufferInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidCodedInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidFilterInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidGraphByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidGraphCodedInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidInput.handleUnknownField(int fieldNumber, Schema<T> schema) The underlying implementation should handle the unknown field.<T> voidJsonInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidKvpByteArrayInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidKvpInput.handleUnknownField(int fieldNumber, Schema<T> schema) <T> voidXmlInput.handleUnknownField(int fieldNumber, Schema<T> schema) static <T> intGraphIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intGraphIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intGraphIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> intProtobufIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtobufIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intProtobufIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> intProtostuffIOUtil.mergeDelimitedFrom(DataInput in, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtostuffIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema) static <T> intProtostuffIOUtil.mergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidGraphIOUtil.mergeFrom(CodedInput input, T message, Schema<T> schema) static <T> voidGraphIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidGraphIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidJsonIOUtil.mergeFrom(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidJsonIOUtil.mergeFrom(com.fasterxml.jackson.core.JsonParser parser, T message, Schema<T> schema, boolean numeric) Merges themessagefrom the JsonParser using the givenschema.static <T> voidJsonIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> voidJsonIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidstatic <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidProtobufIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidProtobufIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidProtostuffIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidProtostuffIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) static <T> voidSmileIOUtil.mergeFrom(byte[] data, int offset, int length, T message, Schema<T> schema, boolean numeric) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidSmileIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric) static <T> voidSmileIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidXmlIOUtil.mergeFrom(byte[] data, int offset, int len, T message, Schema<T> schema, XMLInputFactory inFactory) Merges themessagewith the byte array using the givenschema.static <T> voidMerges themessagewith the byte array using the givenschema.static <T> voidXmlIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema) static <T> voidXmlIOUtil.mergeFrom(InputStream in, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> voidstatic <T> voidXmlIOUtil.mergeFrom(Reader r, T message, Schema<T> schema, XMLInputFactory inFactory) static <T> voidXmlIOUtil.mergeFrom(XMLStreamReader parser, T message, Schema<T> schema) <T> TByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TByteBufferInput.mergeObject(T value, Schema<T> schema) <T> TCodedInput.mergeObject(T value, Schema<T> schema) <T> TFilterInput.mergeObject(T value, Schema<T> schema) <T> TGraphByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TGraphCodedInput.mergeObject(T value, Schema<T> schema) <T> TInput.mergeObject(T value, Schema<T> schema) Merges an object(with schema) field value.<T> TJsonInput.mergeObject(T value, Schema<T> schema) <T> TKvpByteArrayInput.mergeObject(T value, Schema<T> schema) <T> TKvpInput.mergeObject(T value, Schema<T> schema) <T> TXmlInput.mergeObject(T value, Schema<T> schema) static <T> booleanGraphIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> booleanGraphIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> booleanProtobufIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> booleanProtobufIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> booleanProtostuffIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, boolean drainRemainingBytesIfTooLarge, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> booleanProtostuffIOUtil.optMergeDelimitedFrom(InputStream in, T message, Schema<T> schema, LinkedBuffer buffer) Optimal/Optional mergeDelimitedFrom - If the message does not fit the buffer, no merge is done and this method will return false.static <T> intGraphIOUtil.optWriteDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> intProtobufIOUtil.optWriteDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> intProtostuffIOUtil.optWriteDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Optimal writeDelimitedTo - The varint32 prefix is written to the buffer instead of directly writing to outputstream.static <T> List<T> JsonIOUtil.parseListFrom(com.fasterxml.jackson.core.JsonParser parser, Schema<T> schema, boolean numeric) Parses themessagesfrom the parser using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric) Parses themessagesfrom the stream using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessagesfrom the stream using the givenschema.static <T> List<T> JsonIOUtil.parseListFrom(Reader reader, Schema<T> schema, boolean numeric) Parses themessagesfrom the reader using the givenschema.static <T> List<T> ProtobufIOUtil.parseListFrom(InputStream in, Schema<T> schema) static <T> List<T> ProtostuffIOUtil.parseListFrom(InputStream in, Schema<T> schema) static <T> List<T> SmileIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric) Parses themessagesfrom the stream using the givenschema.static <T> List<T> SmileIOUtil.parseListFrom(InputStream in, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Parses themessagesfrom the stream using the givenschema.static <T> List<T> XmlIOUtil.parseListFrom(InputStream in, Schema<T> schema) static <T> List<T> XmlIOUtil.parseListFrom(InputStream in, Schema<T> schema, XMLInputFactory inFactory) static <T> List<T> XmlIOUtil.parseListFrom(XMLStreamReader parser, Schema<T> schema) <T> intByteArrayInput.readFieldNumber(Schema<T> schema) <T> intByteBufferInput.readFieldNumber(Schema<T> schema) <T> intCodedInput.readFieldNumber(Schema<T> schema) <T> intFilterInput.readFieldNumber(Schema<T> schema) <T> intGraphByteArrayInput.readFieldNumber(Schema<T> schema) <T> intGraphCodedInput.readFieldNumber(Schema<T> schema) <T> intInput.readFieldNumber(Schema<T> schema) Reads the field number of a message/object tied to the givenschema.<T> intJsonInput.readFieldNumber(Schema<T> schema) <T> intKvpByteArrayInput.readFieldNumber(Schema<T> schema) <T> intKvpInput.readFieldNumber(Schema<T> schema) <T> intXmlInput.readFieldNumber(Schema<T> schema) static <T> byte[]GraphIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]JsonIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric) Serializes themessageinto a byte array using the givenschema.static <T> byte[]JsonIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessageinto a byte array using the givenschema.static <T> byte[]JsonXIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> byte[]ProtobufIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]ProtostuffIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]SmileIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric) Serializes themessageinto a byte array using the givenschema.static <T> byte[]SmileIOUtil.toByteArray(T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessageinto a byte array using the givenschema.static <T> byte[]XmlIOUtil.toByteArray(T message, Schema<T> schema) Serializes themessageinto a byte array.static <T> byte[]XmlIOUtil.toByteArray(T message, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessageinto a byte array.static <T> byte[]XmlXIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array using the given schema.static <T> byte[]YamlIOUtil.toByteArray(T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto a byte array with the supplied buffer.voidJsonOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidJsonXOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidStatefulOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) Updates the schema iflastSchemawas indeed the last schema used.voidXmlOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidXmlXOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) voidYamlOutput.updateLast(Schema<?> schema, Schema<?> lastSchema) Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.Before serializing a message/object tied to a schema, this should be called.static <T> intGraphIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intGraphIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> intProtobufIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtobufIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> intProtostuffIOUtil.writeDelimitedTo(DataOutput out, T message, Schema<T> schema) Used by the code generated messages that implementExternalizable.static <T> intProtostuffIOUtil.writeDelimitedTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessage, prefixed with its length, into anOutputStream.static <T> voidJsonIOUtil.writeListTo(com.fasterxml.jackson.core.JsonGenerator generator, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the generator using the given schema.static <T> voidJsonIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the stream using the given schema.static <T> voidJsonIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema.static <T> voidJsonIOUtil.writeListTo(Writer writer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the writer using the given schema.static <T> voidJsonXIOUtil.writeListTo(LinkedBuffer buffer, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto theLinkedBufferusing the given schema.static <T> voidJsonXIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema with the supplied buffer.static <T> intProtobufIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages(delimited) into anOutputStreamusing the given schema.static <T> intProtostuffIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessages(delimited) into anOutputStreamusing the given schema.static <T> voidSmileIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric) Serializes themessagesinto the stream using the given schema.static <T> voidSmileIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, boolean numeric, LinkedBuffer buffer) Serializes themessagesinto the stream using the given schema.static <T> voidXmlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema) Serializes themessagesinto theOutputStreamusing the given schema.static <T> voidXmlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, XMLOutputFactory outFactory) Serializes themessagesinto theOutputStreamusing the given schema.static <T> voidXmlIOUtil.writeListTo(XMLStreamWriter writer, List<T> messages, Schema<T> schema) Serializes themessagesinto theXMLStreamWriterusing the given schema.static <T> intYamlIOUtil.writeListTo(LinkedBuffer buffer, List<T> messages, Schema<T> schema) Serializes themessagesaLinkedBufferusing the given schema.static <T> intYamlIOUtil.writeListTo(OutputStream out, List<T> messages, Schema<T> schema, LinkedBuffer buffer) Serializes themessagesinto anOutputStreamusing the given schema with the supplied buffer.<T> voidFilterOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidGraphProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidJsonOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidJsonXOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidKvpOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidLowCopyProtobufOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidLowCopyProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) Writes an object(using its schema) field.<T> voidProtobufOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidProtostuffOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidXmlOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidXmlXOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) <T> voidYamlOutput.writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) static <T> intGraphIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intGraphIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> voidJsonIOUtil.writeTo(com.fasterxml.jackson.core.JsonGenerator generator, T message, Schema<T> schema, boolean numeric) Serializes themessageinto a JsonGenerator using the givenschema.static <T> voidJsonIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> voidJsonIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidstatic <T> voidJsonXIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema, boolean numeric) Serializes themessageinto aLinkedBufferviaJsonXOutputusing the givenschemawith the supplied buffer.static <T> voidJsonXIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> intProtobufIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intProtobufIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> intProtostuffIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intProtostuffIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> voidSmileIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric) static <T> voidSmileIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, boolean numeric, LinkedBuffer buffer) static <T> voidXmlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema) static <T> voidXmlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> voidstatic <T> voidXmlIOUtil.writeTo(Writer w, T message, Schema<T> schema, XMLOutputFactory outFactory) static <T> voidXmlIOUtil.writeTo(XMLStreamWriter writer, T message, Schema<T> schema) static <T> intXmlXIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Writes themessageinto theLinkedBufferusing the given schema.static <T> intXmlXIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamusing the given schema.static <T> intYamlIOUtil.writeTo(LinkedBuffer buffer, T message, Schema<T> schema) Serializes themessageinto theLinkedBuffer.static <T> intYamlIOUtil.writeTo(OutputStream out, T message, Schema<T> schema, LinkedBuffer buffer) Serializes themessageinto anOutputStreamwith the supplied buffer.Constructors in io.protostuff with parameters of type SchemaModifierConstructorDescriptionCustomSchema(Schema<T> schema) JsonOutput(com.fasterxml.jackson.core.JsonGenerator generator, boolean numeric, Schema<?> schema) JsonXOutput(LinkedBuffer head, boolean numeric, Schema<?> schema) JsonXOutput(LinkedBuffer head, OutputStream out, boolean numeric, Schema<?> schema) JsonXOutput(LinkedBuffer head, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, boolean numeric, Schema<?> schema) KvpOutput(LinkedBuffer head, Schema<?> schema, boolean numeric) KvpOutput(LinkedBuffer head, OutputStream out, Schema<?> schema, boolean numeric) MessageCollectionSchema(Schema<V> schema, boolean preserveNull) MessageCollectionSchema(Schema<V> schema, Pipe.Schema<V> pipeSchema, boolean preserveNull) MessageMapSchema(Schema<K> kSchema, Schema<V> vSchema) MessageMapSchema(Schema<K> kSchema, Schema<V> vSchema, Pipe.Schema<K> kPipeSchema, Pipe.Schema<V> vPipeSchema) StringMapSchema(Schema<V> vSchema) StringMapSchema(Schema<V> vSchema, Pipe.Schema<V> vPipeSchema) UninitializedMessageException(Object targetMessage, Schema<?> targetSchema) UninitializedMessageException(String msg, Object targetMessage, Schema<?> targetSchema) XmlOutput(XMLStreamWriter writer, Schema<?> schema) XmlXOutput(LinkedBuffer head, Schema<?> schema) XmlXOutput(LinkedBuffer head, OutputStream out, Schema<?> schema) XmlXOutput(LinkedBuffer head, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, Schema<?> schema) YamlOutput(LinkedBuffer buffer, Schema<?> schema) YamlOutput(LinkedBuffer buffer, OutputStream out, Schema<?> schema) YamlOutput(LinkedBuffer buffer, OutputStream out, WriteSession.FlushHandler flushHandler, int nextBufferSize, Schema<?> schema) -
Uses of Schema in io.protostuff.runtime
Classes in io.protostuff.runtime that implement SchemaModifier and TypeClassDescriptionclassUsed when a field is an array (Object[] or any polymorphic component type).static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classclassUsed when a field is declared asClass<?>(with or with-out generics).classThis schema delegates to another schema derived from the input.classUsed when the type isNumber.classA schema for dynamic types (fields where the type isObject).classUsed when the type is an interface (Collection/List/Set/SortedSet).classUsed when a field is declared asEnum<?>(with or with-out generics).classUsed when the type is an interface (Map/SortedMap).classWill be used ifRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDSis enabled and the field is assignable from Collection.classPlaceholder for annotated interface/object fields configured to use this.classWill be used if eitherRuntimeEnv.POJO_SCHEMA_ON_COLLECTION_FIELDSorRuntimeEnv.POJO_SCHEMA_ON_MAP_FIELDSis set.classUsed when the type is either polymorphic or too complex.classUsed when the type is assignable fromThrowable.final classRuntime pipe schema.final classA schema that can be generated and cached at runtime for objects that have no schema.static classThe base schema used by the built-in factories.static classMethods in io.protostuff.runtime that return SchemaModifier and TypeMethodDescription<T> Schema<T> RuntimeView.Factory.create(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, Predicate.Factory pf, String[] args) Creates a view schema based from the given metadata.static <T> Schema<T> RuntimeView.createFrom(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.static <T> Schema<T> RuntimeView.createFrom(RuntimeSchema<T> rs, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.HasSchema.getSchema()Gets the schema.static <T> Schema<T> Gets the schema that was either registered or lazily initialized at runtime.static <T> Schema<T> RuntimeSchema.getSchema(Class<T> typeClass, IdStrategy strategy) Gets the schema that was either registered or lazily initialized at runtime.protected <T> Schema<T> Generates a schema from the given class.protected <T> Schema<T> DefaultIdStrategy.writeMessageIdTo(Output output, int fieldNumber, Message<T> message) protected <T> Schema<T> ExplicitIdStrategy.writeMessageIdTo(Output output, int fieldNumber, Message<T> message) protected abstract <T> Schema<T> IdStrategy.writeMessageIdTo(Output output, int fieldNumber, Message<T> message) protected <T> Schema<T> IncrementalIdStrategy.writeMessageIdTo(Output output, int fieldNumber, Message<T> message) Methods in io.protostuff.runtime with parameters of type SchemaModifier and TypeMethodDescriptionprotected abstract voidDerivativeSchema.doMergeFrom(Input input, Schema<Object> derivedSchema, Object owner) static <T> booleanReturns true if this there is no existing one or the same schema has already been registered (this must be done on application startup).<T> booleanDefaultIdStrategy.registerPojo(Class<T> typeClass, Schema<T> schema) Registers a pojo.ExplicitIdStrategy.Registry.registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.IncrementalIdStrategy.Registry.registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.NumericIdStrategy.Registry.registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, int id) Pojo ids start at 1.Constructors in io.protostuff.runtime with parameters of type SchemaModifierConstructorDescriptionRuntimePipeSchema(Schema<T> schema, io.protostuff.runtime.FieldMap<T> fieldMap)