本文整理汇总了Java中org.apache.cassandra.io.compress.LZ4Compressor类的典型用法代码示例。如果您正苦于以下问题:Java LZ4Compressor类的具体用法?Java LZ4Compressor怎么用?Java LZ4Compressor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LZ4Compressor类属于org.apache.cassandra.io.compress包,在下文中一共展示了LZ4Compressor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSerializerNormal
import org.apache.cassandra.io.compress.LZ4Compressor; //导入依赖的package包/类
@Test
public void testSerializerNormal() throws IOException
{
UUID hostId = UUID.randomUUID();
int version = HintsDescriptor.CURRENT_VERSION;
long timestamp = System.currentTimeMillis();
ImmutableMap<String, Object> parameters =
ImmutableMap.of("compression", (Object) ImmutableMap.of("class_name", LZ4Compressor.class.getName()));
HintsDescriptor descriptor = new HintsDescriptor(hostId, version, timestamp, parameters);
testSerializeDeserializeLoop(descriptor);
}
示例2: generateData
import org.apache.cassandra.io.compress.LZ4Compressor; //导入依赖的package包/类
@Parameters()
public static Collection<Object[]> generateData()
{
return Arrays.asList(new Object[][] {
{ null }, // No compression
{ new ParameterizedClass(LZ4Compressor.class.getName(), Collections.emptyMap()) },
{ new ParameterizedClass(SnappyCompressor.class.getName(), Collections.emptyMap()) },
{ new ParameterizedClass(DeflateCompressor.class.getName(), Collections.emptyMap()) } });
}
示例3: lz4Compressor
import org.apache.cassandra.io.compress.LZ4Compressor; //导入依赖的package包/类
@Test
public void lz4Compressor() throws Exception
{
multiFlushAndDeserializeTest(LZ4Compressor.class);
}