Uses of Class
org.apache.datasketches.tuple.Sketch
Package
Description
Frequent Distinct Tuples Sketch
This package contains common tools and methods for the theta,
tuple, tuple/* and fdt packages.
The tuple package contains a number of sketches based on the same
fundamental algorithms of the Theta Sketch Framework and extend these
concepts for whole new families of sketches.
This package is for a generic implementation of the Tuple sketch for single Double value.
This package is for a generic implementation of the Tuple sketch for single Integer value.
This package is for a generic implementation of the Tuple sketch for single String value.
-
Uses of Sketch in org.apache.datasketches.fdt
-
Uses of Sketch in org.apache.datasketches.thetacommon
Modifier and TypeMethodDescriptionstatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getEstimateOfBoverA
(Sketch<S> sketchA, Sketch sketchB) Gets the estimate for B over Astatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getEstimateOfBoverA
(Sketch<S> sketchA, Sketch<S> sketchB) Gets the estimate for B over Astatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getLowerBoundForBoverA
(Sketch<S> sketchA, Sketch sketchB) Gets the approximate lower bound for B over A based on a 95% confidence intervalstatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getLowerBoundForBoverA
(Sketch<S> sketchA, Sketch<S> sketchB) Gets the approximate lower bound for B over A based on a 95% confidence intervalstatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getUpperBoundForBoverA
(Sketch<S> sketchA, Sketch sketchB) Gets the approximate upper bound for B over A based on a 95% confidence intervalstatic <S extends Summary>
doubleBoundsOnRatiosInTupleSketchedSets.getUpperBoundForBoverA
(Sketch<S> sketchA, Sketch<S> sketchB) Gets the approximate upper bound for B over A based on a 95% confidence interval -
Uses of Sketch in org.apache.datasketches.tuple
Modifier and TypeClassDescriptionfinal class
CompactSketch<S extends Summary>
CompactSketches are never created directly.class
UpdatableSketch<U,
S extends UpdatableSummary<U>> An extension of QuickSelectSketch<S>, which can be updated with many types of keys.Modifier and TypeMethodDescriptionSketches.createEmptySketch()
Sketches.heapifySketch
(org.apache.datasketches.memory.Memory mem, SummaryDeserializer<S> deserializer) Instantiate a Sketch from a given Memory.Modifier and TypeMethodDescriptionstatic <S extends Summary>
CompactSketch<S>Returns the A-and-not-B set operation on a Tuple sketch and a Theta sketch.static <S extends Summary>
CompactSketch<S>Returns the A-and-not-B set operation on the two given Tuple sketches.static <S extends Summary>
booleanJaccardSimilarity.dissimilarityTest
(Sketch<S> measured, Sketch expected, S summary, SummarySetOperations<S> summarySetOps, double threshold) Tests dissimilarity of a measured Sketch against an expected Sketch.static <S extends Summary>
booleanJaccardSimilarity.dissimilarityTest
(Sketch<S> measured, Sketch<S> expected, SummarySetOperations<S> summarySetOps, double threshold) Tests dissimilarity of a measured Sketch against an expected Sketch.static <S extends Summary>
booleanJaccardSimilarity.exactlyEqual
(Sketch<S> sketchA, Sketch sketchB, S summary, SummarySetOperations<S> summarySetOps) Returns true if the two given sketches have exactly the same hash values and the same theta values.static <S extends Summary>
booleanJaccardSimilarity.exactlyEqual
(Sketch<S> sketchA, Sketch<S> sketchB, SummarySetOperations<S> summarySetOps) Returns true if the two given sketches have exactly the same hash values and the same theta values.Filters elements on the providedSketch
void
Performs a stateful intersection of the internal set with the given tupleSketch.Perform a stateless intersect set operation on a tuple sketch and a theta sketch and returns the result as an unordered CompactSketch on the heap.Perform a stateless intersect set operation on the two given tuple sketches and returns the result as an unordered CompactSketch on the heap.static <S extends Summary>
double[]JaccardSimilarity.jaccard
(Sketch<S> sketchA, Sketch sketchB, S summary, SummarySetOperations<S> summarySetOps) Computes the Jaccard similarity index with upper and lower bounds.static <S extends Summary>
double[]JaccardSimilarity.jaccard
(Sketch<S> sketchA, Sketch<S> sketchB, SummarySetOperations<S> summarySetOps) Computes the Jaccard similarity index with upper and lower bounds.void
This is part of a multistep, stateful AnotB operation and sets the given Tuple sketch as the second (or n+1th) argument B of A-AND-NOT-B.void
This is part of a multistep, stateful AnotB operation and sets the given Tuple sketch as the first argument A of A-AND-NOT-B.static <S extends Summary>
booleanJaccardSimilarity.similarityTest
(Sketch<S> measured, Sketch expected, S summary, SummarySetOperations<S> summarySetOps, double threshold) Tests similarity of a measured Sketch against an expected Sketch.static <S extends Summary>
booleanJaccardSimilarity.similarityTest
(Sketch<S> measured, Sketch<S> expected, SummarySetOperations<S> summarySetOps, double threshold) Tests similarity of a measured Sketch against an expected Sketch.void
Performs a stateful union of the internal set with the given tupleSketch.Perform a stateless, pair-wise union operation between a tupleSketch and a thetaSketch.Perform a stateless, pair-wise union operation between two tuple sketches. -
Uses of Sketch in org.apache.datasketches.tuple.adouble
-
Uses of Sketch in org.apache.datasketches.tuple.aninteger
-
Uses of Sketch in org.apache.datasketches.tuple.strings