All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.sgv2.graphql.schema.cqlfirst.ddl.fetchers.IndexFetcher Maven / Gradle / Ivy

There is a newer version: 2.0.0-ALPHA-17
Show newest version
package io.stargate.sgv2.graphql.schema.cqlfirst.ddl.fetchers;

import graphql.schema.DataFetchingEnvironment;
import io.stargate.bridge.proto.QueryOuterClass.Query;
import io.stargate.sgv2.graphql.web.resources.StargateGraphqlContext;

public abstract class IndexFetcher extends DdlQueryFetcher {

  @Override
  protected Query buildQuery(DataFetchingEnvironment environment, StargateGraphqlContext context) {
    String keyspaceName = environment.getArgument("keyspaceName");
    String tableName = environment.getArgument("tableName");
    return buildQuery(environment, keyspaceName, tableName);
  }

  protected abstract Query buildQuery(
      DataFetchingEnvironment environment, String keyspaceName, String tableName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy