public abstract class CassandraFetcher<ResultT> extends Object implements graphql.schema.DataFetcher<ResultT>
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizationService |
authorizationService |
protected DataStoreFactory |
dataStoreFactory |
static ConsistencyLevel |
DEFAULT_CONSISTENCY |
static int |
DEFAULT_PAGE_SIZE |
static Parameters |
DEFAULT_PARAMETERS |
static ConsistencyLevel |
DEFAULT_SERIAL_CONSISTENCY |
| Constructor and Description |
|---|
CassandraFetcher(AuthorizationService authorizationService,
DataStoreFactory dataStoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
ResultT |
get(graphql.schema.DataFetchingEnvironment environment) |
protected abstract ResultT |
get(graphql.schema.DataFetchingEnvironment environment,
DataStore dataStore,
AuthenticationSubject authenticationSubject) |
protected Parameters |
getDatastoreParameters(graphql.schema.DataFetchingEnvironment environment) |
protected final AuthorizationService authorizationService
protected final DataStoreFactory dataStoreFactory
public static final ConsistencyLevel DEFAULT_CONSISTENCY
public static final ConsistencyLevel DEFAULT_SERIAL_CONSISTENCY
public static final int DEFAULT_PAGE_SIZE
public static final Parameters DEFAULT_PARAMETERS
public CassandraFetcher(AuthorizationService authorizationService, DataStoreFactory dataStoreFactory)
protected Parameters getDatastoreParameters(graphql.schema.DataFetchingEnvironment environment)
protected abstract ResultT get(graphql.schema.DataFetchingEnvironment environment, DataStore dataStore, AuthenticationSubject authenticationSubject) throws Exception
ExceptionCopyright © 2021. All rights reserved.