Skip to content

Commit

Permalink
Replacing strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Jan 1, 2025
1 parent a1ad39d commit bd2ffb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static void main(String[] args) throws Exception {
final JsonObject jsonObject = jsonElement.getAsJsonObject();
final String samplerType = jsonObject.get("sampler").getAsString();

if("all".equalsIgnoreCase(samplerType)) {
if(AllQueriesQuerySampler.NAME.equalsIgnoreCase(samplerType)) {

final AllQueriesQuerySamplerParameters parameters = gson.fromJson(jsonString, AllQueriesQuerySamplerParameters.class);

Expand All @@ -111,7 +111,7 @@ public static void main(String[] args) throws Exception {

System.out.println("Query set created: " + querySetId);

} else if("pptss".equalsIgnoreCase(samplerType)) {
} else if(ProbabilityProportionalToSizeQuerySampler.NAME.equalsIgnoreCase(samplerType)) {

final ProbabilityProportionalToSizeParameters parameters = gson.fromJson(jsonString, ProbabilityProportionalToSizeParameters.class);

Expand Down

0 comments on commit bd2ffb3

Please sign in to comment.