Codota Logo
ListType.compose
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ListType
private void myMethod () {
ListType l =
  • Codota Icon(ListType) column.type
  • Codota IconCollectionType collectionType;ListType.getInstance(collectionType.valueComparator(), false)
  • Codota IconAbstractType elements;new ListType<T>(elements, isMultiCell)
  • Smart code suggestions by Codota
}
origin: org.apache.cassandra/cassandra-all

public <T> List<T> getFrozenList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, false).compose(raw);
}
origin: org.apache.cassandra/cassandra-all

public <T> List<T> getList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, true).compose(raw);
}
origin: com.strapdata.cassandra/cassandra-all

public <T> List<T> getList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, true).compose(raw);
}
origin: jsevellec/cassandra-unit

public <T> List<T> getFrozenList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, false).compose(raw);
}
origin: com.facebook.presto.cassandra/cassandra-server

public <T> List<T> getList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, true).compose(raw);
}
origin: jsevellec/cassandra-unit

public <T> List<T> getList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, true).compose(raw);
}
origin: com.strapdata.cassandra/cassandra-all

public <T> List<T> getFrozenList(String column, AbstractType<T> type)
{
  ByteBuffer raw = data.get(column);
  return raw == null ? null : ListType.getInstance(type, false).compose(raw);
}
origin: com.impetus.client/kundera-cassandra

  private static Object decompose(Object value, Class clazz, Class<?> mapGenericClassses)
  {
    ByteBuffer buf = ByteBuffer.wrap((byte[]) value, 0, ((byte[]) value).length);
    Class<?> valueValidationClass = CassandraValidationClassMapper.getValidationClassInstance(
        mapGenericClassses, true);
    Object valueClassInstance;
    try
    {
      valueClassInstance = valueValidationClass.getDeclaredField("instance").get(null);
      ListType listType = ListType.getInstance((AbstractType) valueClassInstance);
      Collection outputCollection = new ArrayList();
      outputCollection.addAll(listType.compose(buf));
      return marshalCollection(valueValidationClass, outputCollection, mapGenericClassses);
    }
    catch (Exception e)
    {
      log.error("Error while setting field{} value via CQL, Caused by: .", clazz.getSimpleName());
      throw new PersistenceException(e);
    }
  }
}
origin: com.impetus.client/kundera-cassandra

outputCollection.addAll(listType.compose(valueByteBuffer));
origin: org.apache.cassandra/cassandra-all

  return listType.compose(foundValue).contains(listType.getElementsType().compose(value));
case SET:
  SetType<?> setType = (SetType<?>)type;
origin: jsevellec/cassandra-unit

  return listType.compose(foundValue).contains(listType.getElementsType().compose(value));
case SET:
  SetType<?> setType = (SetType<?>)type;
origin: com.strapdata.cassandra/cassandra-all

  return listType.compose(foundValue).contains(listType.getElementsType().compose(value));
case SET:
  SetType<?> setType = (SetType<?>)type;
org.apache.cassandra.db.marshalListTypecompose

Popular methods of ListType

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reference (javax.naming)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now