public class GraphqlCache extends Object
GraphQL instances used by our REST resources.
This includes staying up to date with CQL schema changes.
NO_PORT| Constructor and Description |
|---|
GraphqlCache(Persistence persistence,
DataStoreFactory dataStoreFactory,
boolean enableGraphqlFirst) |
| Modifier and Type | Method and Description |
|---|---|
graphql.GraphQL |
getDdl() |
String |
getDefaultKeyspaceName() |
graphql.GraphQL |
getDml(String keyspaceName,
DataStore dataStore,
Map<String,String> headers) |
graphql.GraphQL |
getSchemaFirstAdminGraphql() |
default void |
onAlterAggregate(String keyspaceName,
String aggregate,
List<String> argumentTypes) |
default void |
onAlterFunction(String keyspaceName,
String function,
List<String> argumentTypes) |
default void |
onAlterTable(String keyspaceName,
String table) |
default void |
onAlterType(String keyspaceName,
String type) |
default void |
onAlterView(String keyspaceName,
String view) |
default void |
onCreateAggregate(String keyspaceName,
String aggregate,
List<String> argumentTypes) |
default void |
onCreateFunction(String keyspaceName,
String function,
List<String> argumentTypes) |
default void |
onCreateTable(String keyspaceName,
String table) |
default void |
onCreateType(String keyspaceName,
String type) |
default void |
onCreateView(String keyspaceName,
String view) |
default void |
onDropAggregate(String keyspaceName,
String aggregate,
List<String> argumentTypes) |
default void |
onDropFunction(String keyspaceName,
String function,
List<String> argumentTypes) |
default void |
onDropKeyspace(String keyspaceName) |
default void |
onDropTable(String keyspaceName,
String table) |
default void |
onDropType(String keyspaceName,
String type) |
default void |
onDropView(String keyspaceName,
String view) |
void |
onKeyspaceChanged(String decoratedKeyspaceName,
String reason,
Object... reasonArguments) |
void |
putDml(String keyspaceName,
SchemaSource newSource,
graphql.GraphQL graphql,
AuthenticationSubject subject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAlterKeyspace, onCreateKeyspace, onDown, onJoinCluster, onLeaveCluster, onMove, onUppublic GraphqlCache(Persistence persistence, DataStoreFactory dataStoreFactory, boolean enableGraphqlFirst)
public graphql.GraphQL getDdl()
public graphql.GraphQL getSchemaFirstAdminGraphql()
public graphql.GraphQL getDml(String keyspaceName, DataStore dataStore, Map<String,String> headers) throws Exception
Exceptionpublic void putDml(String keyspaceName, SchemaSource newSource, graphql.GraphQL graphql, AuthenticationSubject subject)
public String getDefaultKeyspaceName()
@FormatMethod public void onKeyspaceChanged(String decoratedKeyspaceName, @FormatString String reason, Object... reasonArguments)
public void onDropKeyspace(String keyspaceName)
onDropKeyspace in interface EventListenerpublic void onCreateTable(String keyspaceName, String table)
onCreateTable in interface EventListenerpublic void onCreateView(String keyspaceName, String view)
onCreateView in interface EventListenerpublic void onCreateType(String keyspaceName, String type)
onCreateType in interface EventListenerpublic void onCreateFunction(String keyspaceName, String function, List<String> argumentTypes)
onCreateFunction in interface EventListenerpublic void onCreateAggregate(String keyspaceName, String aggregate, List<String> argumentTypes)
onCreateAggregate in interface EventListenerpublic void onAlterTable(String keyspaceName, String table)
onAlterTable in interface EventListenerpublic void onAlterView(String keyspaceName, String view)
onAlterView in interface EventListenerpublic void onAlterType(String keyspaceName, String type)
onAlterType in interface EventListenerpublic void onAlterFunction(String keyspaceName, String function, List<String> argumentTypes)
onAlterFunction in interface EventListenerpublic void onAlterAggregate(String keyspaceName, String aggregate, List<String> argumentTypes)
onAlterAggregate in interface EventListenerpublic void onDropTable(String keyspaceName, String table)
onDropTable in interface EventListenerpublic void onDropView(String keyspaceName, String view)
onDropView in interface EventListenerpublic void onDropType(String keyspaceName, String type)
onDropType in interface EventListenerpublic void onDropFunction(String keyspaceName, String function, List<String> argumentTypes)
onDropFunction in interface EventListenerpublic void onDropAggregate(String keyspaceName, String aggregate, List<String> argumentTypes)
onDropAggregate in interface EventListenerCopyright © 2022. All rights reserved.