// Update original stream statistics
.partitionPersist(new MemoryMapState.Factory(), new Fields("instance"), new StreamStatisticsUpdater("originalStreamStats", new StreamStatistics()),
new Fields("instance", "originalStreamStats")).newValuesStream()
// Standardized stream using original stream statistics
.each(new Fields("instance", "originalStreamStats"), new StandardScaler(), new Fields("scaledInstance"))
// Update scaled stream statistics
.partitionPersist(new MemoryMapState.Factory(), new Fields("scaledInstance"), new StreamStatisticsUpdater("scaledStreamStats", new StreamStatistics()));
toppology.newDRPCStream("queryStats", localDRPC)