Package io.activej.aggregation
Class AggregationChunkCodec
java.lang.Object
io.activej.aggregation.AggregationChunkCodec
- All Implemented Interfaces:
com.dslplatform.json.JsonReader.ReadObject<AggregationChunk>,com.dslplatform.json.JsonWriter.WriteObject<AggregationChunk>,JsonCodec<AggregationChunk>,io.activej.common.initializer.WithInitializer<AggregationChunkCodec>
public class AggregationChunkCodec
extends Object
implements JsonCodec<AggregationChunk>, io.activej.common.initializer.WithInitializer<AggregationChunkCodec>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationChunkCodeccreate(ChunkIdCodec<?> chunkIdCodec, JsonCodec<PrimaryKey> primaryKeyCodec, Set<String> allowedMeasures) read(@NotNull com.dslplatform.json.JsonReader reader) voidwrite(@NotNull com.dslplatform.json.JsonWriter writer, AggregationChunk chunk) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.common.initializer.WithInitializer
withInitializer
-
Field Details
-
ID
- See Also:
-
MIN
- See Also:
-
MAX
- See Also:
-
COUNT
- See Also:
-
MEASURES
- See Also:
-
-
Method Details
-
create
public static AggregationChunkCodec create(ChunkIdCodec<?> chunkIdCodec, JsonCodec<PrimaryKey> primaryKeyCodec, Set<String> allowedMeasures) -
read
public AggregationChunk read(@NotNull @NotNull com.dslplatform.json.JsonReader reader) throws IOException - Specified by:
readin interfacecom.dslplatform.json.JsonReader.ReadObject<AggregationChunk>- Throws:
IOException
-
write
- Specified by:
writein interfacecom.dslplatform.json.JsonWriter.WriteObject<AggregationChunk>
-