本文整理汇总了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);
}
}
示例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();
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}