forked from gagangupt16/druidry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/in/zapr/druid/druidry/limitSpec/orderByColumnSpec/OrderByColumnSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/in/zapr/druid/druidry/postAggregator/ConstantPostAggregator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/in/zapr/druid/druidry/query/search/DruidSearchQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |