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.Texpand()Expands the innerWriteableto its original representation and returns itlongramBytesUsed()voidwriteTo(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:WriteableWrite this into the StreamOutput. -
expand
Description copied from class:DelayableWriteableExpands the innerWriteableto its original representation and returns it- Specified by:
expandin classDelayableWriteable<T extends Writeable>
-
asSerialized
public DelayableWriteable.Serialized<T> asSerialized(Writeable.Reader<T> reader, NamedWriteableRegistry registry)Description copied from class:DelayableWriteableReturns a DelayableWriteable that stores its contents in serialized form.- Specified by:
asSerializedin classDelayableWriteable<T extends Writeable>
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-