org.eclipse.rdf4j.sail.extensiblestore.evaluationstatistics

## Interface DynamicStatistics

- All Known Implementing Classes:
    ExtensibleDynamicEvaluationStatistics

      @Experimental
      public interface DynamicStatistics

  Interface to support evaluation statistics that keep their own internal estimates and need to be notified of added or removed statements.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(ExtensibleStatement statement)`
    `void` | `remove(ExtensibleStatement statement)`
    `void` | `removeByQuery(Resource subj, IRI pred, Value obj, boolean inferred, Resource... contexts)`
    `double` | `staleness(long expectedSize)`

- - ### Method Detail

    - #### add

          void add(ExtensibleStatement statement)

    - #### remove

          void remove(ExtensibleStatement statement)

    - #### removeByQuery

          void removeByQuery(Resource subj,
                             IRI pred,
                             Value obj,
                             boolean inferred,
                             Resource... contexts)

    - #### staleness

          double staleness(long expectedSize)

      Parameters:
        `expectedSize` -
      Returns:
        1 if stale, 0 if not stale, 0.5 if 50% stale. Seen as, given a random statement (that has either been added, or removed), what is the probability that the statistics will return an incorrect result?

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.