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


Java TupleInput.skipFast方法代码示例

本文整理汇总了Java中com.sleepycat.bind.tuple.TupleInput.skipFast方法的典型用法代码示例。如果您正苦于以下问题:Java TupleInput.skipFast方法的具体用法?Java TupleInput.skipFast怎么用?Java TupleInput.skipFast使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sleepycat.bind.tuple.TupleInput的用法示例。


在下文中一共展示了TupleInput.skipFast方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createSecondaryKeys

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public void createSecondaryKeys(TupleInput primaryKeyInput, TupleInput dataInput, Set<TupleOutput> indexKeys) {
    TupleOutput interval;
    
    dataInput.skipFast(13);
    startTimeInterval = dataInput.readUnsignedInt();
    startTimeInterval >>= 10;
    
    dataInput.skipFast(4);
    endTimeInterval = dataInput.readUnsignedInt();
    endTimeInterval >>= 10;
    
    for (long i = startTimeInterval; i <= endTimeInterval; ++i) {
        interval = getTupleOutput(null);
        interval.writeUnsignedInt(i);
        indexKeys.add(interval);
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:19,代码来源:FlowIDExistTimeKeyCreator.java

示例2: createSecondaryKeys

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public void createSecondaryKeys(TupleInput primaryKeyInput, TupleInput dataInput, Set<TupleOutput> indexKeys) {
    try {
        TupleOutput src = getTupleOutput(null);
        TupleOutput dest = getTupleOutput(null);

        dataInput.skipFast(1);
        dataInput.read(ip);
        src.write(ip);
        dataInput.read(ip);
        dest.write(ip);
        
        indexKeys.add(src);
        indexKeys.add(dest);
    } catch (IOException ex) {
        ex.printStackTrace();
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:19,代码来源:FlowIDHostKeyCreator.java

示例3: createSecondaryKeys

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public void createSecondaryKeys(TupleInput primaryKeyInput,
                                TupleInput dataInput,
                                Set<TupleOutput> indexKeys) {
    
    long begin, end;
    
    primaryKeyInput.skipFast(13);
    begin = primaryKeyInput.readUnsignedInt() >> 10;
    primaryKeyInput.skipFast(4);
    end = primaryKeyInput.readUnsignedInt() >> 10;
    
    for (long i = begin; i <= end; ++i) {
        TupleOutput o = getTupleOutput(null);
        
        o.writeUnsignedInt(i);
        indexKeys.add(o);
    }
}
 
开发者ID:nologic,项目名称:nabs,代码行数:20,代码来源:NeoflowExistTimeKeyCreator.java

示例4: createSecondaryKey

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public boolean createSecondaryKey(TupleInput keyInput, TupleInput dataInput, TupleOutput keyOutput) {
    dataInput.skipFast(21);
    endTimeInterval = dataInput.readUnsignedInt();
    endTimeInterval >>= 10;
    keyOutput.writeUnsignedInt(endTimeInterval);
    return true;
}
 
开发者ID:nologic,项目名称:nabs,代码行数:9,代码来源:FlowIDEndTimeKeyCreator.java

示例5: createSecondaryKey

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public boolean createSecondaryKey(TupleInput primaryKeyInput,
                                  TupleInput dataInput,
                                  TupleOutput keyOutput) {
    
    primaryKeyInput.skipFast(13);
    keyOutput.writeUnsignedInt(primaryKeyInput.readUnsignedInt() >> 10);
    
    return true;
}
 
开发者ID:nologic,项目名称:nabs,代码行数:11,代码来源:NeoflowStartTimeKeyCreator.java

示例6: createSecondaryKeys

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public void createSecondaryKeys(TupleInput primaryKeyInput, TupleInput dataInput, Set<TupleOutput> indexKeys) {
    TupleOutput src = getTupleOutput(null);
    TupleOutput dest = getTupleOutput(null);
    
    primaryKeyInput.skipFast(5);
    src.writeUnsignedInt(primaryKeyInput.readUnsignedInt());
    dest.writeUnsignedInt(primaryKeyInput.readUnsignedInt());
    
    indexKeys.add(src);
    indexKeys.add(dest);
}
 
开发者ID:nologic,项目名称:nabs,代码行数:13,代码来源:NeoflowHostKeyCreator.java

示例7: createSecondaryKey

import com.sleepycat.bind.tuple.TupleInput; //导入方法依赖的package包/类
@Override
public boolean createSecondaryKey(TupleInput primaryKeyInput,
                                  TupleInput dataInput,
                                  TupleOutput keyOutput) {
    
    primaryKeyInput.skipFast(21);
    keyOutput.writeUnsignedInt(primaryKeyInput.readUnsignedInt() >> 10);
    
    return true;
}
 
开发者ID:nologic,项目名称:nabs,代码行数:11,代码来源:NeoflowEndTimeKeyCreator.java


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