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