congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook Extensions
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