/** * Instantiate UpdatableSketch from a given Memory * @param <U> Type of update value * @param <S> Type of Summary * @param mem Memory object representing a Sketch * @param deserializer instance of SummaryDeserializer * @param summaryFactory instance of SummaryFactory * @return Sketch created from its Memory representation */ public static <U, S extends UpdatableSummary<U>> UpdatableSketch<U, S> heapifyUpdatableSketch(final Memory mem, final SummaryDeserializer<S> deserializer, final SummaryFactory<S> summaryFactory) { return new UpdatableSketch<U, S>(mem, deserializer, summaryFactory); }
/** * Returns an UpdatableSketch with the current configuration of this Builder. * @return an UpdatableSketch */ public UpdatableSketch<U, S> build() { return new UpdatableSketch<U, S>(nomEntries_, resizeFactor_.lg(), samplingProbability_, summaryFactory_); }
/** * Instantiate UpdatableSketch from a given Memory * @param <U> Type of update value * @param <S> Type of Summary * @param mem Memory object representing a Sketch * @param deserializer instance of SummaryDeserializer * @param summaryFactory instance of SummaryFactory * @return Sketch created from its Memory representation */ public static <U, S extends UpdatableSummary<U>> UpdatableSketch<U, S> heapifyUpdatableSketch(final Memory mem, final SummaryDeserializer<S> deserializer, final SummaryFactory<S> summaryFactory) { return new UpdatableSketch<U, S>(mem, deserializer, summaryFactory); }
/** * Returns an UpdatableSketch with the current configuration of this Builder. * @return an UpdatableSketch */ public UpdatableSketch<U, S> build() { return new UpdatableSketch<U, S>(nomEntries_, resizeFactor_.lg(), samplingProbability_, summaryFactory_); }