Class SerializedStorage<T>
- java.lang.Object
-
- org.apache.druid.query.aggregation.SerializedStorage<T>
-
- Type Parameters:
T
-
public class SerializedStorage<T> extends Object
simple utility class useful for when multiple passes of input are needed for encoding (e.g. delta or dictionary encoding). This allows objects to be serialized to some temporary storage and iterated over for final processing.
-
-
Constructor Summary
Constructors Constructor Description SerializedStorage(WriteOutBytes writeOutBytes, StagedSerde<T> serde)
-
-
-
Constructor Detail
-
SerializedStorage
public SerializedStorage(WriteOutBytes writeOutBytes, StagedSerde<T> serde)
-
-
Method Detail
-
store
public void store(@Nullable T value) throws IOException
- Throws:
IOException
-
iterator
public IOIterator<T> iterator() throws IOException
- Throws:
IOException
-
-