Class DelayableWriteable.Serialized<T extends Writeable>
java.lang.Object
org.elasticsearch.common.io.stream.DelayableWriteable<T>
org.elasticsearch.common.io.stream.DelayableWriteable.Serialized<T>
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
,Writeable
- Enclosing class:
- DelayableWriteable<T extends Writeable>
public static class DelayableWriteable.Serialized<T extends Writeable> extends DelayableWriteable<T> implements org.apache.lucene.util.Accountable
A
Writeable
stored in serialized form.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.common.io.stream.DelayableWriteable
DelayableWriteable.Serialized<T extends Writeable>
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Method Summary
Modifier and Type Method Description DelayableWriteable.Serialized<T>
asSerialized(Writeable.Reader<T> reader, NamedWriteableRegistry registry)
Returns a DelayableWriteable that stores its contents in serialized form.T
expand()
Expands the innerWriteable
to its original representation and returns itlong
ramBytesUsed()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.common.io.stream.DelayableWriteable
delayed, referencing
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
expand
Description copied from class:DelayableWriteable
Expands the innerWriteable
to its original representation and returns it- Specified by:
expand
in classDelayableWriteable<T extends Writeable>
-
asSerialized
public DelayableWriteable.Serialized<T> asSerialized(Writeable.Reader<T> reader, NamedWriteableRegistry registry)Description copied from class:DelayableWriteable
Returns a DelayableWriteable that stores its contents in serialized form.- Specified by:
asSerialized
in classDelayableWriteable<T extends Writeable>
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-