public class Downsampler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Downsampler.Builder
A class to supporting building a Downsampler in a fluent manner.
|
static class |
Downsampler.TimeBinMode |
Modifier and Type | Method and Description |
---|---|
static Downsampler.Builder |
downsample(Database db,
Table table,
MatchPair timestampColumn,
long periodValue,
String... keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
static Downsampler.Builder |
downsample(Database db,
Table table,
MatchPair timestampColumn,
String period,
Collection<String> keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
static Downsampler.Builder |
downsample(Database db,
Table table,
MatchPair timestampColumn,
String period,
String... keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
static Downsampler.Builder |
downsample(Database db,
Table table,
String timestampColumn,
long periodValue,
String... keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
static Downsampler.Builder |
downsample(Database db,
Table table,
String timestampColumn,
String period,
Collection<String> keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
static Downsampler.Builder |
downsample(Database db,
Table table,
String timestampColumn,
String period,
String... keyColumns)
Initialize a downsampler builder that will sample the given table at the given time period.
|
public static Downsampler.Builder downsample(Database db, Table table, MatchPair timestampColumn, long periodValue, String... keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiodValue
- Sampling period/frequency in nanosecondskeyColumns
- Columns by which to group the resultpublic static Downsampler.Builder downsample(Database db, Table table, MatchPair timestampColumn, String period, String... keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiod
- Sampling period/frequency in HH:mm:ss formatkeyColumns
- Columns by which to group the resultpublic static Downsampler.Builder downsample(Database db, Table table, MatchPair timestampColumn, String period, Collection<String> keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiod
- Sampling period/frequency in HH:mm:ss formatkeyColumns
- Columns by which to group the resultpublic static Downsampler.Builder downsample(Database db, Table table, String timestampColumn, long periodValue, String... keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiodValue
- Sampling period/frequency in nanosecondskeyColumns
- Columns by which to group the resultpublic static Downsampler.Builder downsample(Database db, Table table, String timestampColumn, String period, String... keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiod
- Sampling period/frequency in HH:mm:ss formatkeyColumns
- Columns by which to group the resultpublic static Downsampler.Builder downsample(Database db, Table table, String timestampColumn, String period, Collection<String> keyColumns)
db
- Database that will be used to generate time tabletable
- Raw data to tabletimestampColumn
- Column from which to generate time binsperiod
- Sampling period/frequency in HH:mm:ss formatkeyColumns
- Columns by which to group the result