Class ArrayOfDoublesSketches
java.lang.Object
org.apache.datasketches.tuple.arrayofdoubles.ArrayOfDoublesSketches
public final class ArrayOfDoublesSketches extends Object
Convenient static methods to instantiate tuple sketches of type ArrayOfDoubles.
-
Constructor Summary
Constructors Constructor Description ArrayOfDoublesSketches() -
Method Summary
Modifier and Type Method Description static ArrayOfDoublesSketchheapifySketch(org.apache.datasketches.memory.Memory mem)Heapify the given Memory as an ArrayOfDoublesSketchstatic ArrayOfDoublesSketchheapifySketch(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as a ArrayOfDoublesSketchstatic ArrayOfDoublesUnionheapifyUnion(org.apache.datasketches.memory.Memory mem)Heapify the given Memory as an ArrayOfDoublesUnionstatic ArrayOfDoublesUnionheapifyUnion(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as an ArrayOfDoublesUnionstatic ArrayOfDoublesUpdatableSketchheapifyUpdatableSketch(org.apache.datasketches.memory.Memory mem)Heapify the given Memory as an ArrayOfDoublesUpdatableSketchstatic ArrayOfDoublesUpdatableSketchheapifyUpdatableSketch(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as a ArrayOfDoublesUpdatableSketchstatic ArrayOfDoublesSketchwrapSketch(org.apache.datasketches.memory.Memory mem)Wrap the given Memory as an ArrayOfDoublesSketchstatic ArrayOfDoublesSketchwrapSketch(org.apache.datasketches.memory.Memory mem, long seed)Wrap the given Memory and seed as a ArrayOfDoublesSketchstatic ArrayOfDoublesUnionwrapUnion(org.apache.datasketches.memory.Memory mem)Wrap the given Memory as an ArrayOfDoublesUnionstatic ArrayOfDoublesUnionwrapUnion(org.apache.datasketches.memory.Memory mem, long seed)Wrap the given Memory and seed as an ArrayOfDoublesUnionstatic ArrayOfDoublesUnionwrapUnion(org.apache.datasketches.memory.WritableMemory mem)Wrap the given Memory as an ArrayOfDoublesUnionstatic ArrayOfDoublesUnionwrapUnion(org.apache.datasketches.memory.WritableMemory mem, long seed)Wrap the given Memory and seed as an ArrayOfDoublesUnionstatic ArrayOfDoublesUpdatableSketchwrapUpdatableSketch(org.apache.datasketches.memory.WritableMemory mem)Wrap the given WritableMemory as an ArrayOfDoublesUpdatableSketchstatic ArrayOfDoublesUpdatableSketchwrapUpdatableSketch(org.apache.datasketches.memory.WritableMemory mem, long seed)Wrap the given WritableMemory and seed as a ArrayOfDoublesUpdatableSketch
-
Constructor Details
-
ArrayOfDoublesSketches
public ArrayOfDoublesSketches()
-
-
Method Details
-
heapifySketch
Heapify the given Memory as an ArrayOfDoublesSketch- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesSketch
-
heapifySketch
public static ArrayOfDoublesSketch heapifySketch(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as a ArrayOfDoublesSketch- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesSketch
-
heapifyUpdatableSketch
public static ArrayOfDoublesUpdatableSketch heapifyUpdatableSketch(org.apache.datasketches.memory.Memory mem)Heapify the given Memory as an ArrayOfDoublesUpdatableSketch- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesUpdatableSketch
-
heapifyUpdatableSketch
public static ArrayOfDoublesUpdatableSketch heapifyUpdatableSketch(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as a ArrayOfDoublesUpdatableSketch- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesUpdatableSketch
-
wrapSketch
Wrap the given Memory as an ArrayOfDoublesSketch- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesSketch
-
wrapSketch
public static ArrayOfDoublesSketch wrapSketch(org.apache.datasketches.memory.Memory mem, long seed)Wrap the given Memory and seed as a ArrayOfDoublesSketch- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesSketch
-
wrapUpdatableSketch
public static ArrayOfDoublesUpdatableSketch wrapUpdatableSketch(org.apache.datasketches.memory.WritableMemory mem)Wrap the given WritableMemory as an ArrayOfDoublesUpdatableSketch- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesUpdatableSketch
-
wrapUpdatableSketch
public static ArrayOfDoublesUpdatableSketch wrapUpdatableSketch(org.apache.datasketches.memory.WritableMemory mem, long seed)Wrap the given WritableMemory and seed as a ArrayOfDoublesUpdatableSketch- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesUpdatableSketch
-
heapifyUnion
Heapify the given Memory as an ArrayOfDoublesUnion- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesUnion
-
heapifyUnion
public static ArrayOfDoublesUnion heapifyUnion(org.apache.datasketches.memory.Memory mem, long seed)Heapify the given Memory and seed as an ArrayOfDoublesUnion- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesUnion
-
wrapUnion
Wrap the given Memory as an ArrayOfDoublesUnion- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesUnion
-
wrapUnion
Wrap the given Memory and seed as an ArrayOfDoublesUnion- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesUnion
-
wrapUnion
Wrap the given Memory as an ArrayOfDoublesUnion- Parameters:
mem- the given Memory- Returns:
- an ArrayOfDoublesUnion
-
wrapUnion
public static ArrayOfDoublesUnion wrapUnion(org.apache.datasketches.memory.WritableMemory mem, long seed)Wrap the given Memory and seed as an ArrayOfDoublesUnion- Parameters:
mem- the given Memoryseed- the given seed- Returns:
- an ArrayOfDoublesUnion
-