本文整理汇总了Java中org.apache.cassandra.io.util.RandomAccessReader.getPath方法的典型用法代码示例。如果您正苦于以下问题:Java RandomAccessReader.getPath方法的具体用法?Java RandomAccessReader.getPath怎么用?Java RandomAccessReader.getPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.io.util.RandomAccessReader
的用法示例。
在下文中一共展示了RandomAccessReader.getPath方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SSTableIdentityIterator
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
/**
* Used to iterate through the columns of a row.
* @param sstable SSTable we are reading ffrom.
* @param file Reading using this file.
* @param key Key of this row.
*/
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key)
{
this.sstable = sstable;
this.filename = file.getPath();
this.key = key;
try
{
this.partitionLevelDeletion = DeletionTime.serializer.deserialize(file);
SerializationHelper helper = new SerializationHelper(sstable.metadata, sstable.descriptor.version.correspondingMessagingVersion(), SerializationHelper.Flag.LOCAL);
this.iterator = SSTableSimpleIterator.create(sstable.metadata, file, sstable.header, helper, partitionLevelDeletion);
this.staticRow = iterator.readStaticRow();
}
catch (IOException e)
{
sstable.markSuspect();
throw new CorruptSSTableException(e, filename);
}
}
示例2: create
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
public static SSTableIdentityIterator create(SSTableReader sstable, RandomAccessReader file, DecoratedKey key)
{
try
{
DeletionTime partitionLevelDeletion = DeletionTime.serializer.deserialize(file);
SerializationHelper helper = new SerializationHelper(sstable.metadata, sstable.descriptor.version.correspondingMessagingVersion(), SerializationHelper.Flag.LOCAL);
SSTableSimpleIterator iterator = SSTableSimpleIterator.create(sstable.metadata, file, sstable.header, helper, partitionLevelDeletion);
return new SSTableIdentityIterator(sstable, key, partitionLevelDeletion, file.getPath(), iterator);
}
catch (IOException e)
{
sstable.markSuspect();
throw new CorruptSSTableException(e, file.getPath());
}
}
示例3: getPath
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
public String getPath()
{
// if input is from file, then return that path, otherwise it's from streaming
if (in instanceof RandomAccessReader)
{
RandomAccessReader file = (RandomAccessReader) in;
return file.getPath();
}
else
{
throw new UnsupportedOperationException();
}
}
示例4: getPath
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
public String getPath()
{
// if input is from file, then return that path, otherwise it's from streaming
if (input instanceof RandomAccessReader)
{
RandomAccessReader file = (RandomAccessReader) input;
return file.getPath();
}
else
{
throw new UnsupportedOperationException();
}
}
示例5: SSTableIdentityIterator
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
/**
* Used to iterate through the columns of a row.
* @param sstable SSTable we are reading ffrom.
* @param file Reading using this file.
* @param key Key of this row.
* @param dataSize length of row data
* @param checkData if true, do its best to deserialize and check the coherence of row data
*/
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataSize, boolean checkData)
{
this(sstable.metadata, file, file.getPath(), key, dataSize, checkData, sstable, ColumnSerializer.Flag.LOCAL);
}
示例6: SSTableIdentityIterator
import org.apache.cassandra.io.util.RandomAccessReader; //导入方法依赖的package包/类
/**
* Used to iterate through the columns of a row.
* @param sstable SSTable we are reading ffrom.
* @param file Reading using this file.
* @param key Key of this row.
* @param dataStart Data for this row starts at this pos.
* @param dataSize length of row data
* @param checkData if true, do its best to deserialize and check the coherence of row data
*/
public SSTableIdentityIterator(SSTableReader sstable, RandomAccessReader file, DecoratedKey key, long dataStart, long dataSize, boolean checkData)
{
this(sstable.metadata, file, file.getPath(), key, dataStart, dataSize, checkData, sstable, IColumnSerializer.Flag.LOCAL);
}