Package org.elasticsearch.cluster
Class DiffableUtils.StringSetValueSerializer<K>
java.lang.Object
org.elasticsearch.cluster.DiffableUtils.NonDiffableValueSerializer<K,java.util.Set<java.lang.String>>
org.elasticsearch.cluster.DiffableUtils.StringSetValueSerializer<K>
- Type Parameters:
K- type of map key
- All Implemented Interfaces:
DiffableUtils.ValueSerializer<K,java.util.Set<java.lang.String>>
- Enclosing class:
- DiffableUtils
public static class DiffableUtils.StringSetValueSerializer<K> extends DiffableUtils.NonDiffableValueSerializer<K,java.util.Set<java.lang.String>>
Implementation of ValueSerializer that serializes immutable sets
-
Constructor Summary
Constructors Constructor Description StringSetValueSerializer() -
Method Summary
Modifier and Type Method Description static <K> DiffableUtils.StringSetValueSerializer<K>getInstance()java.util.Set<java.lang.String>read(StreamInput in, K key)Reads value from stream.voidwrite(java.util.Set<java.lang.String> value, StreamOutput out)Writes value to streamMethods inherited from class org.elasticsearch.cluster.DiffableUtils.NonDiffableValueSerializer
diff, readDiff, supportsDiffableValues, writeDiffMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.DiffableUtils.ValueSerializer
supportsVersion, supportsVersion
-
Constructor Details
-
StringSetValueSerializer
public StringSetValueSerializer()
-
-
Method Details
-
getInstance
-
write
public void write(java.util.Set<java.lang.String> value, StreamOutput out) throws java.io.IOExceptionDescription copied from interface:DiffableUtils.ValueSerializerWrites value to stream- Throws:
java.io.IOException
-
read
Description copied from interface:DiffableUtils.ValueSerializerReads value from stream. Reading operation can be made dependent on map key.- Throws:
java.io.IOException
-