congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Operation.responseFieldMapper
Code IndexAdd Tabnine to your IDE (free)

How to use
responseFieldMapper
method
in
com.apollographql.apollo.api.Operation

Best Java code snippets using com.apollographql.apollo.api.Operation.responseFieldMapper (Showing top 6 results out of 315)

origin: apollographql/apollo-android

 @NotNull public ResponseFieldMapper create(@NotNull Operation operation) {
  checkNotNull(operation, "operation == null");
  Class operationClass = operation.getClass();
  ResponseFieldMapper mapper = pool.get(operationClass);
  if (mapper != null) {
   return mapper;
  }
  pool.putIfAbsent(operationClass, operation.responseFieldMapper());
  return pool.get(operationClass);
 }
}
origin: apollographql/apollo-android

 @Nullable @Override public T execute(ReadableStore cache) {
  Record rootRecord = cache.read(CacheKeyResolver.rootKeyForOperation(operation).key(), CacheHeaders.NONE);
  if (rootRecord == null) {
   return null;
  }
  ResponseFieldMapper<D> responseFieldMapper = operation.responseFieldMapper();
  CacheFieldValueResolver fieldValueResolver = new CacheFieldValueResolver(cache, operation.variables(),
    cacheKeyResolver(), CacheHeaders.NONE, cacheKeyBuilder);
  //noinspection unchecked
  RealResponseReader<Record> responseReader = new RealResponseReader<>(operation.variables(), rootRecord,
    fieldValueResolver, scalarTypeAdapters, ResponseNormalizer.NO_OP_NORMALIZER);
  return operation.wrapData(responseFieldMapper.map(responseReader));
 }
});
origin: com.amazonaws/aws-android-sdk-appsync-runtime

 @Nonnull public ResponseFieldMapper create(@Nonnull Operation operation) {
  checkNotNull(operation, "operation == null");
  Class operationClass = operation.getClass();
  ResponseFieldMapper mapper = pool.get(operationClass);
  if (mapper != null) {
   return mapper;
  }
  pool.putIfAbsent(operationClass, operation.responseFieldMapper());
  return pool.get(operationClass);
 }
}
origin: awslabs/aws-mobile-appsync-sdk-android

 @Nonnull public ResponseFieldMapper create(@Nonnull Operation operation) {
  checkNotNull(operation, "operation == null");
  Class operationClass = operation.getClass();
  ResponseFieldMapper mapper = pool.get(operationClass);
  if (mapper != null) {
   return mapper;
  }
  pool.putIfAbsent(operationClass, operation.responseFieldMapper());
  return pool.get(operationClass);
 }
}
origin: com.amazonaws/aws-android-sdk-appsync-runtime

 @Nullable @Override public T execute(ReadableStore cache) {
  Record rootRecord = cache.read(CacheKeyResolver.rootKeyForOperation(operation).key(), CacheHeaders.NONE);
  if (rootRecord == null) {
   return null;
  }
  ResponseFieldMapper<D> responseFieldMapper = operation.responseFieldMapper();
  CacheFieldValueResolver fieldValueResolver = new CacheFieldValueResolver(cache, operation.variables(),
    cacheKeyResolver(), CacheHeaders.NONE);
  //noinspection unchecked
  RealResponseReader<Record> responseReader = new RealResponseReader<>(operation.variables(), rootRecord,
    fieldValueResolver, scalarTypeAdapters, ResponseNormalizer.NO_OP_NORMALIZER);
  return operation.wrapData(responseFieldMapper.map(responseReader));
 }
});
origin: awslabs/aws-mobile-appsync-sdk-android

 @Nullable @Override public T execute(ReadableStore cache) {
  Record rootRecord = cache.read(CacheKeyResolver.rootKeyForOperation(operation).key(), CacheHeaders.NONE);
  if (rootRecord == null) {
   return null;
  }
  ResponseFieldMapper<D> responseFieldMapper = operation.responseFieldMapper();
  CacheFieldValueResolver fieldValueResolver = new CacheFieldValueResolver(cache, operation.variables(),
    cacheKeyResolver(), CacheHeaders.NONE);
  //noinspection unchecked
  RealResponseReader<Record> responseReader = new RealResponseReader<>(operation.variables(), rootRecord,
    fieldValueResolver, scalarTypeAdapters, ResponseNormalizer.NO_OP_NORMALIZER);
  return operation.wrapData(responseFieldMapper.map(responseReader));
 }
});
com.apollographql.apollo.apiOperationresponseFieldMapper

Javadoc

Returns a mapper that maps the server response data to generated model class D.

Popular methods of Operation

  • variables
    Returns the variables associated with this GraphQL operation.
  • operationId
    Returns a unique identifier for this operation.
  • queryDocument
    Returns the raw GraphQL operation String.
  • name
    Returns GraphQL operation name.
  • wrapData
    Wraps the generated response data class D with another class. For example, a use case for this would

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now