本文整理汇总了Java中org.apache.cassandra.db.marshal.CounterColumnType.instance方法的典型用法代码示例。如果您正苦于以下问题:Java CounterColumnType.instance方法的具体用法?Java CounterColumnType.instance怎么用?Java CounterColumnType.instance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.db.marshal.CounterColumnType
的用法示例。
在下文中一共展示了CounterColumnType.instance方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEmptiableTypes
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
@Test
public void testEmptiableTypes()
{
AbstractType<?>[] types = new AbstractType<?>[]{
BooleanType.instance,
CounterColumnType.instance,
DateType.instance,
DecimalType.instance,
DoubleType.instance,
FloatType.instance,
InetAddressType.instance,
Int32Type.instance,
IntegerType.instance,
LongType.instance,
TimestampType.instance,
TimeUUIDType.instance,
UUIDType.instance
};
for (AbstractType<?> type : types)
{
Assert.assertTrue(type.getClass().getSimpleName(), UDHelper.isNullOrEmpty(type, ByteBufferUtil.EMPTY_BYTE_BUFFER));
Assert.assertTrue("reversed " + type.getClass().getSimpleName(),
UDHelper.isNullOrEmpty(ReversedType.getInstance(type), ByteBufferUtil.EMPTY_BYTE_BUFFER));
}
}
示例2: getTopLevelColumns
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
public ColumnFamily getTopLevelColumns(boolean copyOnHeap)
{
return filter.filter instanceof NamesQueryFilter
&& cfs.metadata.getDefaultValidator() != CounterColumnType.instance
? collectTimeOrderedData(copyOnHeap)
: collectAllData(copyOnHeap);
}
示例3: getTopLevelColumns
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
public ColumnFamily getTopLevelColumns()
{
return filter.filter instanceof NamesQueryFilter
&& cfs.metadata.getDefaultValidator() != CounterColumnType.instance
? collectTimeOrderedData()
: collectAllData();
}
示例4: getTopLevelColumns
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
public ColumnFamily getTopLevelColumns(boolean copyOnHeap)
{
//@daidong Most of the time, we run collectAllData() function.
return filter.filter instanceof NamesQueryFilter
&& cfs.metadata.getDefaultValidator() != CounterColumnType.instance
? collectTimeOrderedData(copyOnHeap)
: collectAllData(copyOnHeap);
}
示例5: getTopLevelColumns
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
public ColumnFamily getTopLevelColumns()
{
return filter.filter instanceof NamesQueryFilter
&& (cfs.metadata.cfType == ColumnFamilyType.Standard || filter.path.superColumnName != null)
&& cfs.metadata.getDefaultValidator() != CounterColumnType.instance
? collectTimeOrderedData()
: collectAllData();
}
示例6: makeLegacyDefaultValidator
import org.apache.cassandra.db.marshal.CounterColumnType; //导入方法依赖的package包/类
public AbstractType<?> makeLegacyDefaultValidator()
{
return isCounter()
? CounterColumnType.instance
: (isCompactTable() ? compactValueColumn().type : BytesType.instance);
}