Skip to content

Commit

Permalink
ConstantPostAggregator added
Browse files Browse the repository at this point in the history
  • Loading branch information
GG-Zapr committed Jun 7, 2017
1 parent 585245b commit fbfc2dd
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2017-present, Red Brick Lane Marketing Solutions Pvt. Ltd.
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package in.zapr.druid.druidry.limitSpec.orderByColumnSpec;

public abstract class OrderByColumnSpec {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2017-present, Red Brick Lane Marketing Solutions Pvt. Ltd.
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package in.zapr.druid.druidry.postAggregator;

import lombok.Getter;
import lombok.NonNull;

@Getter
public class ConstantPostAggregator extends DruidPostAggregator {

private final static String CONSTANT_POST_AGGREGATOR_TYPE = "constant";

private Double value;

public ConstantPostAggregator(@NonNull String name, @NonNull Double value) {
this.type = CONSTANT_POST_AGGREGATOR_TYPE;
this.name = name;
this.value = value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright (c) 2017-present, Red Brick Lane Marketing Solutions Pvt. Ltd.
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package in.zapr.druid.druidry.query.search;


import in.zapr.druid.druidry.query.DruidQuery;

public class DruidSearchQuery extends DruidQuery {
public String granularity;
public String filter;
public int limit;
public String intervals;
public String searchDimensions;
public String query;
public String sort;
}

0 comments on commit fbfc2dd

Please sign in to comment.