-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from zapr-oss/develop
Version bumped to 2.11
- Loading branch information
Showing
71 changed files
with
961 additions
and
794 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
<groupId>in.zapr.druid</groupId> | ||
<artifactId>druidry</artifactId> | ||
<version>2.10</version> | ||
<version>2.11</version> | ||
|
||
<name>Druidry - Druid Java Client</name> | ||
<description>Druidry is an open-source Java based utility library which supports creating | ||
|
@@ -16,7 +16,7 @@ | |
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<jackson.version>2.9.7</jackson.version> | ||
<jackson.version>2.9.8</jackson.version> | ||
<jodatime.version>2.9.7</jodatime.version> | ||
<lombok.version>1.16.14</lombok.version> | ||
<testng.version>6.11</testng.version> | ||
|
@@ -236,13 +236,19 @@ | |
<name>Gagan Gupta</name> | ||
<email>[email protected]</email> | ||
<organization>ZAPR Media Labs</organization> | ||
<organizationUrl>http://www.zapr.in</organizationUrl> | ||
<organizationUrl>https://www.zapr.in</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Nihit Alamuru</name> | ||
<email>[email protected]</email> | ||
<organization>ZAPR Media Labs</organization> | ||
<organizationUrl>http://www.zapr.in</organizationUrl> | ||
<organizationUrl>https://www.zapr.in</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Abhi Sapariya</name> | ||
<email>[email protected]</email> | ||
<organization>ZAPR Media Labs</organization> | ||
<organizationUrl>https://www.zapr.in</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
|
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
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
71 changes: 71 additions & 0 deletions
71
src/main/java/in/zapr/druid/druidry/query/select/DruidSelectQuery.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,71 @@ | ||
/* | ||
* Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package in.zapr.druid.druidry.query.select; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import in.zapr.druid.druidry.Context; | ||
import in.zapr.druid.druidry.Interval; | ||
import in.zapr.druid.druidry.dimension.DruidDimension; | ||
import in.zapr.druid.druidry.filter.DruidFilter; | ||
import in.zapr.druid.druidry.granularity.Granularity; | ||
import in.zapr.druid.druidry.query.DruidQuery; | ||
import in.zapr.druid.druidry.query.QueryType; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Generate Druid select query. | ||
* See documentation http://druid.io/docs/latest/querying/select-query.html | ||
*/ | ||
@Getter | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class DruidSelectQuery extends DruidQuery { | ||
private List<Interval> intervals; | ||
private DruidFilter filter; | ||
private Boolean descending; | ||
private Granularity granularity; | ||
private List<DruidDimension> dimensions; | ||
private List<String> metrics; | ||
private PagingSpec pagingSpec; | ||
|
||
@Builder | ||
public DruidSelectQuery( | ||
@NonNull String dataSource, | ||
DruidFilter filter, | ||
Boolean descending, | ||
Granularity granularity, | ||
List<DruidDimension> dimensions, | ||
List<String> metrics, | ||
@NonNull List<Interval> intervals, | ||
@NonNull PagingSpec pagingSpec, | ||
Context context) { | ||
this.queryType = QueryType.SELECT; | ||
this.context = context; | ||
this.dataSource = dataSource; | ||
this.filter = filter; | ||
this.descending = descending; | ||
this.granularity = granularity; | ||
this.intervals = intervals; | ||
this.dimensions = dimensions; | ||
this.metrics = metrics; | ||
this.pagingSpec = pagingSpec; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/in/zapr/druid/druidry/query/select/PagingSpec.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 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package in.zapr.druid.druidry.query.select; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.*; | ||
|
||
import java.util.Map; | ||
|
||
@Getter | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@RequiredArgsConstructor | ||
@AllArgsConstructor | ||
@EqualsAndHashCode | ||
public class PagingSpec { | ||
@NonNull | ||
private Integer threshold; | ||
|
||
private Boolean fromNext; | ||
|
||
@NonNull | ||
private Map<String, Integer> pagingIdentifiers; | ||
} |
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
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
22 changes: 10 additions & 12 deletions
22
src/test/java/in/zapr/druid/druidry/aggregator/CardinalityAggregatorTest.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
22 changes: 10 additions & 12 deletions
22
src/test/java/in/zapr/druid/druidry/aggregator/CountAggregatorTest.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
22 changes: 10 additions & 12 deletions
22
src/test/java/in/zapr/druid/druidry/aggregator/DoubleFirstAggregatorTest.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
22 changes: 10 additions & 12 deletions
22
src/test/java/in/zapr/druid/druidry/aggregator/DoubleLastAggregatorTest.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
Oops, something went wrong.