本文整理汇总了Java中org.apache.cassandra.cql3.Tuples类的典型用法代码示例。如果您正苦于以下问题:Java Tuples类的具体用法?Java Tuples怎么用?Java Tuples使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Tuples类属于org.apache.cassandra.cql3包,在下文中一共展示了Tuples类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: splitValues
import org.apache.cassandra.cql3.Tuples; //导入依赖的package包/类
public List<List<ByteBuffer>> splitValues(QueryOptions options) throws InvalidRequestException
{
Tuples.InMarker inMarker = (Tuples.InMarker)marker;
Tuples.InValue inValue = inMarker.bind(options);
if (inValue == null)
throw new InvalidRequestException("Invalid null value for IN restriction");
return inValue.getSplitValues();
}
示例2: values
import org.apache.cassandra.cql3.Tuples; //导入依赖的package包/类
public List<ByteBuffer> values(QueryOptions options) throws InvalidRequestException
{
Tuples.Value t = (Tuples.Value)value.bind(options);
return t.getElements();
}
示例3: componentBounds
import org.apache.cassandra.cql3.Tuples; //导入依赖的package包/类
/**
* Similar to bounds(), but returns one ByteBuffer per-component in the bound instead of a single
* ByteBuffer to represent the entire bound.
*/
public List<ByteBuffer> componentBounds(Bound b, QueryOptions options) throws InvalidRequestException
{
Tuples.Value value = (Tuples.Value)bounds[b.idx].bind(options);
return value.getElements();
}