本文整理汇总了Java中org.apache.cassandra.db.marshal.ListType.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java ListType.getInstance方法的具体用法?Java ListType.getInstance怎么用?Java ListType.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.db.marshal.ListType
的用法示例。
在下文中一共展示了ListType.getInstance方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExactTypeIfKnown
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
@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;
}
示例2: Lists
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public Lists(String name, Generator<T> valueType, GeneratorConfig config)
{
super(ListType.getInstance(valueType.type, true), config, name, List.class);
this.valueType = valueType;
buffer = (T[]) new Object[(int) sizeDistribution.maxValue()];
}
示例3: makeInReceiver
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
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));
}
示例4: Lists
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
public Lists(String name, Generator valueType, GeneratorConfig config)
{
super(ListType.getInstance(valueType.type, true), config, name, List.class);
this.valueType = valueType;
buffer = new Object[(int) sizeDistribution.maxValue()];
}
示例5: makeInReceiver
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
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));
}
示例6: Lists
import org.apache.cassandra.db.marshal.ListType; //导入方法依赖的package包/类
public Lists(String name, Generator valueType, GeneratorConfig config)
{
super(ListType.getInstance(valueType.type), config, name, List.class);
this.valueType = valueType;
buffer = new Object[(int) sizeDistribution.maxValue()];
}