Interface MatrixSketch<T>
- 
- All Known Implementing Classes:
- KMVSketch
 
 public interface MatrixSketch<T>
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CorrMatrixBlockcreate(MatrixBlock blkIn)Create a initial sketch of a given block.MatrixBlockgetMatrixValue(CorrMatrixBlock blkIn)Obtain matrix distinct count value from estimation Used for estimating distinct in rows or columns.TgetScalarValue(MatrixBlock blkIn)Get scalar distinct count from a input matrix block.CorrMatrixBlockintersection(CorrMatrixBlock arg0, CorrMatrixBlock arg1)Intersect two sketchesCorrMatrixBlockunion(CorrMatrixBlock arg0, CorrMatrixBlock arg1)Union two sketches together to from a combined sketch.
 
- 
- 
- 
Method Detail- 
getScalarValueT getScalarValue(MatrixBlock blkIn) Get scalar distinct count from a input matrix block.- Parameters:
- blkIn- A input block to estimate the number of distinct values in
- Returns:
- The distinct count estimate
 
 - 
getMatrixValueMatrixBlock getMatrixValue(CorrMatrixBlock blkIn) Obtain matrix distinct count value from estimation Used for estimating distinct in rows or columns.- Parameters:
- blkIn- The sketch block to extract the count from
- Returns:
- The result matrix block
 
 - 
createCorrMatrixBlock create(MatrixBlock blkIn) Create a initial sketch of a given block.- Parameters:
- blkIn- A block to process
- Returns:
- A sketch
 
 - 
unionCorrMatrixBlock union(CorrMatrixBlock arg0, CorrMatrixBlock arg1) Union two sketches together to from a combined sketch.- Parameters:
- arg0- Sketch one
- arg1- Sketch two
- Returns:
- The combined sketch
 
 - 
intersectionCorrMatrixBlock intersection(CorrMatrixBlock arg0, CorrMatrixBlock arg1) Intersect two sketches- Parameters:
- arg0- Sketch one
- arg1- Sketch two
- Returns:
- The intersected sketch
 
 
- 
 
-