Class Writeable.WriteableRegistry
java.lang.Object
org.opensearch.core.common.io.stream.Writeable.WriteableRegistry
- Enclosing interface:
Writeable
A WriteableRegistry registers
Writeable.Writer methods for writing data types over a
StreamOutput channel and Writeable.Reader methods for reading data from a
StreamInput channel.- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> getCustomClassFromInstance(Object value) static <R extends Writeable.Reader<?>>
RgetReader(byte b) Returns the ristered reader keyed by the unique ordinalstatic <W extends Writeable.Writer<?>>
WReturns the registered writer keyed by the class typestatic voidregisterClassAlias(Class<?> classInstance, Class<?> classGeneric) static <R extends Writeable.Reader<?>>
voidregisterReader(byte ordinal, R reader) registers a streamable readerstatic <W extends Writeable.Writer<?>>
voidregisterWriter(Class<?> clazz, W writer) registers a streamable writer
-
Constructor Details
-
WriteableRegistry
public WriteableRegistry()
-
-
Method Details
-
registerWriter
registers a streamable writer- Opensearch.internal:
-
registerReader
registers a streamable reader- Opensearch.internal:
-
registerClassAlias
-
getWriter
Returns the registered writer keyed by the class type -
getReader
Returns the ristered reader keyed by the unique ordinal -
getCustomClassFromInstance
-