congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ListType.getInstance
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: Impetus/Kundera

ListType listType = ListType.getInstance((AbstractType) valueClassInstance, false);
return listType.decompose((List) value).array();
origin: Impetus/Kundera

valueType = ListType.getInstance(parser.parse(), true).toString();
origin: Impetus/Kundera

try
  listType = ListType.getInstance(new TypeParser(cqlColumnMetadata.substring(
      cqlColumnMetadata.indexOf("("), cqlColumnMetadata.length())));
origin: org.apache.cassandra/cassandra-all

@Override
public AbstractType<?> freeze()
{
  if (isMultiCell)
    return getInstance(this.elements, false);
  else
    return this;
}
origin: jsevellec/cassandra-unit

@Override
public AbstractType<?> freeze()
{
  if (isMultiCell)
    return getInstance(this.elements, false);
  else
    return this;
}
origin: org.apache.cassandra/cassandra-all

@Override
public AbstractType<?> getExactTypeIfKnown(String keyspace)
{
  for (Term.Raw term : elements)
  {
    AbstractType<?> type = term.getExactTypeIfKnown(keyspace);
    if (type != null)
      return ListType.getInstance(type, false);
  }
  return null;
}
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: 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: jsevellec/cassandra-unit

@Override
public AbstractType<?> getExactTypeIfKnown(String keyspace)
{
  for (Term.Raw term : elements)
  {
    AbstractType<?> type = term.getExactTypeIfKnown(keyspace);
    if (type != null)
      return ListType.getInstance(type, false);
  }
  return null;
}
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: 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

@Override
public AbstractType<?> getExactTypeIfKnown(String keyspace)
{
  for (Term.Raw term : elements)
  {
    AbstractType<?> type = term.getExactTypeIfKnown(keyspace);
    if (type != null)
      return ListType.getInstance(type, false);
  }
  return null;
}
origin: jsevellec/cassandra-unit

public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
{
  List<AbstractType<?>> l = parser.getTypeParameters();
  if (l.size() != 1)
    throw new ConfigurationException("ListType takes exactly 1 type parameter");
  return getInstance(l.get(0), true);
}
origin: org.apache.cassandra/cassandra-all

public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
{
  List<AbstractType<?>> l = parser.getTypeParameters();
  if (l.size() != 1)
    throw new ConfigurationException("ListType takes exactly 1 type parameter");
  return getInstance(l.get(0), true);
}
origin: com.strapdata.cassandra/cassandra-all

private static ColumnSpecification makeInReceiver(ColumnSpecification receiver)
{
  ColumnIdentifier inName = new ColumnIdentifier("in(" + receiver.name + ")", true);
  return new ColumnSpecification(receiver.ksName, receiver.cfName, inName, ListType.getInstance(receiver.type, false));
}
origin: jsevellec/cassandra-unit

private static ColumnSpecification makeInReceiver(ColumnSpecification receiver)
{
  ColumnIdentifier inName = new ColumnIdentifier("in(" + receiver.name + ")", true);
  return new ColumnSpecification(receiver.ksName, receiver.cfName, inName, ListType.getInstance(receiver.type, false));
}
origin: org.apache.cassandra/cassandra-all

private static ColumnSpecification makeInReceiver(ColumnSpecification receiver)
{
  ColumnIdentifier inName = new ColumnIdentifier("in(" + receiver.name + ")", true);
  return new ColumnSpecification(receiver.ksName, receiver.cfName, inName, ListType.getInstance(receiver.type, false));
}
origin: jsevellec/cassandra-unit

@Override
public AbstractType<?> freezeNestedMulticellTypes()
{
  if (!isMultiCell())
    return this;
  if (elements.isFreezable() && elements.isMultiCell())
    return getInstance(elements.freeze(), isMultiCell);
  return getInstance(elements.freezeNestedMulticellTypes(), isMultiCell);
}
origin: org.apache.cassandra/cassandra-all

@Override
public AbstractType<?> freezeNestedMulticellTypes()
{
  if (!isMultiCell())
    return this;
  if (elements.isFreezable() && elements.isMultiCell())
    return getInstance(elements.freeze(), isMultiCell);
  return getInstance(elements.freezeNestedMulticellTypes(), isMultiCell);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public AbstractType<?> freezeNestedMulticellTypes()
{
  if (!isMultiCell())
    return this;
  if (elements.isFreezable() && elements.isMultiCell())
    return getInstance(elements.freeze(), isMultiCell);
  return getInstance(elements.freezeNestedMulticellTypes(), isMultiCell);
}
org.apache.cassandra.db.marshalListTypegetInstance

Popular methods of ListType

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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