generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 237
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
1 parent
891b1de
commit b77364e
Showing
6 changed files
with
182 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ | |
|
||
public interface GraphQLCacheKey | ||
{ | ||
String getQueryClassPath(); | ||
} |
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
49 changes: 49 additions & 0 deletions
49
...in/java/org/finos/legend/engine/query/graphQL/api/cache/GraphQLProdDataspaceCacheKey.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,49 @@ | ||
package org.finos.legend.engine.query.graphQL.api.cache; | ||
|
||
import com.google.common.base.Objects; | ||
|
||
public class GraphQLProdDataspaceCacheKey extends GraphQLProdCacheKey | ||
{ | ||
private String dataspacePath; | ||
private String executionContext; | ||
|
||
public GraphQLProdDataspaceCacheKey(String groupID, String artifactId, String versionId, String dataspacePath, String executionContext, String queryClassPath, String query) | ||
{ | ||
super(groupID, artifactId, versionId, queryClassPath, query); | ||
this.dataspacePath = dataspacePath; | ||
this.executionContext = executionContext; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) | ||
{ | ||
if (this == o) | ||
{ | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) | ||
{ | ||
return false; | ||
} | ||
GraphQLProdDataspaceCacheKey that = (GraphQLProdDataspaceCacheKey) o; | ||
return super.equals(that) | ||
&& Objects.equal(dataspacePath, that.dataspacePath) | ||
&& Objects.equal(executionContext, that.executionContext); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return Objects.hashCode(groupID, artifactId, versionId, dataspacePath, executionContext, queryClassPath, query); | ||
} | ||
|
||
public String getDataspacePath() | ||
{ | ||
return dataspacePath; | ||
} | ||
|
||
public String getExecutionContext() | ||
{ | ||
return executionContext; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...va/org/finos/legend/engine/query/graphQL/api/cache/GraphQLProdMappingRuntimeCacheKey.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,49 @@ | ||
package org.finos.legend.engine.query.graphQL.api.cache; | ||
|
||
import com.google.common.base.Objects; | ||
|
||
public class GraphQLProdMappingRuntimeCacheKey extends GraphQLProdCacheKey | ||
{ | ||
private String mappingPath; | ||
private String runtimePath; | ||
|
||
public GraphQLProdMappingRuntimeCacheKey(String groupID, String artifactId, String versionId, String mappingPath, String runtimePath, String queryClassPath, String query) | ||
{ | ||
super(groupID, artifactId, versionId, queryClassPath, query); | ||
this.mappingPath = mappingPath; | ||
this.runtimePath = runtimePath; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) | ||
{ | ||
if (this == o) | ||
{ | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) | ||
{ | ||
return false; | ||
} | ||
GraphQLProdMappingRuntimeCacheKey that = (GraphQLProdMappingRuntimeCacheKey) o; | ||
return super.equals(that) | ||
&& Objects.equal(mappingPath, that.mappingPath) | ||
&& Objects.equal(runtimePath, that.runtimePath); | ||
} | ||
|
||
@Override | ||
public int hashCode() | ||
{ | ||
return Objects.hashCode(groupID, artifactId, versionId, mappingPath, runtimePath, queryClassPath, query); | ||
} | ||
|
||
public String getMappingPath() | ||
{ | ||
return mappingPath; | ||
} | ||
|
||
public String getRuntimePath() | ||
{ | ||
return runtimePath; | ||
} | ||
} |
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