当前位置: 首页>>代码示例>>Java>>正文


Java RandomAccessReader.getPath方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:scylladb,项目名称:scylla-tools-java,代码行数:26,代码来源:SSTableIdentityIterator.java

示例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());
    }
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:16,代码来源:SSTableIdentityIterator.java

示例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();
    }
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:14,代码来源:SSTableIdentityIterator.java

示例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();
    }
}
 
开发者ID:dprguiuc,项目名称:Cassandra-Wasef,代码行数:14,代码来源:SSTableIdentityIterator.java

示例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);
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:13,代码来源:SSTableIdentityIterator.java

示例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);
}
 
开发者ID:dprguiuc,项目名称:Cassandra-Wasef,代码行数:14,代码来源:SSTableIdentityIterator.java


注:本文中的org.apache.cassandra.io.util.RandomAccessReader.getPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。