本文整理汇总了Java中org.apache.cassandra.io.compress.CompressedRandomAccessReader类的典型用法代码示例。如果您正苦于以下问题:Java CompressedRandomAccessReader类的具体用法?Java CompressedRandomAccessReader怎么用?Java CompressedRandomAccessReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CompressedRandomAccessReader类属于org.apache.cassandra.io.compress包,在下文中一共展示了CompressedRandomAccessReader类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public RandomAccessReader createReader()
{
return CompressedRandomAccessReader.open(path, metadata, null);
}
示例2: createPooledReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
protected RandomAccessReader createPooledReader()
{
return CompressedRandomAccessReader.open(path, metadata, this);
}
示例3: createReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public RandomAccessReader createReader()
{
return CompressedRandomAccessReader.open(path, metadata);
}
示例4: openDataReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public RandomAccessReader openDataReader()
{
return compression
? CompressedRandomAccessReader.open(getFilename(), getCompressionMetadata())
: RandomAccessReader.open(new File(getFilename()));
}
示例5: createReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
protected RandomAccessReader createReader(String path)
{
return CompressedRandomAccessReader.open(path, metadata, this);
}
示例6: getSegment
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public FileDataInput getSegment(long position)
{
RandomAccessReader reader = CompressedRandomAccessReader.open(path, metadata, null);
reader.seek(position);
return reader;
}
示例7: createReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public RandomAccessReader createReader()
{
return new CompressedRandomAccessReader.Builder(this).build();
}
示例8: openDataReader
import org.apache.cassandra.io.compress.CompressedRandomAccessReader; //导入依赖的package包/类
public RandomAccessReader openDataReader(boolean skipIOCache)
{
return compression
? CompressedRandomAccessReader.open(getFilename(), getCompressionMetadata(), skipIOCache)
: RandomAccessReader.open(new File(getFilename()), skipIOCache);
}