public final class HiveRewriteToDataSketchesRules extends Object
count(distinct(x))
using CountDistinctRewrite
percentile_disc(0.2) within group (order by id)
using PercentileDiscRewrite
cume_dist() over (order by id)
using CumeDistRewrite
Modifier and Type | Class and Description |
---|---|
static class |
HiveRewriteToDataSketchesRules.AbstractRankBasedRewriteRule
Provides a generic way to rewrite function into using an estimation based on CDF.
|
static class |
HiveRewriteToDataSketchesRules.CountDistinctRewrite
Rewrites
count(distinct(x)) to distinct counting sketches. |
static class |
HiveRewriteToDataSketchesRules.CumeDistRewriteRule
Rewrites
cume_dist() over (order by id) . |
static class |
HiveRewriteToDataSketchesRules.NTileRewrite
Rewrites
ntile(n) over (order by id) . |
static class |
HiveRewriteToDataSketchesRules.PercentileDiscRewrite
Rewrites
percentile_disc(0.2) within group (order by id) . |
static class |
HiveRewriteToDataSketchesRules.RankRewriteRule
Rewrites
rank() over (order by id) . |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
HiveRewriteToDataSketchesRules() |
Copyright © 2023 The Apache Software Foundation. All rights reserved.