Tabnine Logo
ListType.decompose
Code IndexAdd Tabnine to your IDE (free)

How to use
decompose
method
in
org.apache.cassandra.db.marshal.ListType

Best Java code snippets using org.apache.cassandra.db.marshal.ListType.decompose (Showing top 2 results out of 315)

origin: Impetus/Kundera

return listType.decompose((List) value).array();
origin: com.impetus.client/kundera-cassandra

private static byte[] compose(Object value, Class clazz, Class<?> mapGenericClassses)
{
  Class<?> valueValidationClass = CassandraValidationClassMapper.getValidationClassInstance(
      mapGenericClassses, true);
  Object valueClassInstance;
  try
  {
    valueClassInstance = valueValidationClass.getDeclaredField("instance").get(null);
    ListType listType = ListType.getInstance((AbstractType) valueClassInstance);
    return listType.decompose((List) value).array();
  }
  catch (Exception e)
  {
    log.error("Error while retrieving field{} value via CQL, Caused by: .", clazz.getSimpleName(), e);
    throw new PersistenceException(e);
  }
}
org.apache.cassandra.db.marshalListTypedecompose

Popular methods of ListType

  • getElementsType
  • getInstance
  • getSerializer
  • <init>
  • compareListOrSet
  • compose
  • isMultiCell
  • setOrListToJsonString
  • toString
  • valueComparator

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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