本文整理了Java中org.apache.tephra.Transaction.getFirstShortInProgress()
方法的一些代码示例,展示了Transaction.getFirstShortInProgress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Transaction.getFirstShortInProgress()
方法的具体详情如下:
包路径:org.apache.tephra.Transaction
类名称:Transaction
方法名:getFirstShortInProgress
暂无
代码示例来源:origin: co.cask.cdap/cdap-data-fabric
public static void write(DataOutput dataOutput, Transaction tx) throws IOException {
dataOutput.writeLong(tx.getReadPointer());
dataOutput.writeLong(tx.getWritePointer());
dataOutput.writeLong(tx.getFirstShortInProgress());
write(dataOutput, tx.getInProgress());
write(dataOutput, tx.getInvalids());
}
代码示例来源:origin: org.apache.tephra/tephra-api
/**
* Creates a new transaction for a checkpoint operation, copying all members from the original transaction,
* with the updated checkpoint write pointers.
*
* @param toCopy the original transaction containing the state to copy
* @param writePointer the new write pointer to use for the transaction
* @param checkpointPointers the list of write pointers added from checkpoints on the transaction
*/
public Transaction(Transaction toCopy, long writePointer, long[] checkpointPointers) {
this(toCopy.getReadPointer(), toCopy.getTransactionId(), writePointer, toCopy.getInvalids(),
toCopy.getInProgress(), toCopy.getFirstShortInProgress(), toCopy.getType(), checkpointPointers,
toCopy.getVisibilityLevel());
}
代码示例来源:origin: co.cask.cdap/cdap-data-fabric
break;
if (updateStartKey && key.txId < tx.getFirstShortInProgress()) {
代码示例来源:origin: org.apache.tephra/tephra-core
public static TTransaction wrap(Transaction tx) {
return new TTransaction(tx.getTransactionId(), tx.getReadPointer(),
Longs.asList(tx.getInvalids()), Longs.asList(tx.getInProgress()),
tx.getFirstShortInProgress(), getTTransactionType(tx.getType()),
tx.getWritePointer(), Longs.asList(tx.getCheckpointWritePointers()),
getTVisibilityLevel(tx.getVisibilityLevel()));
}
代码示例来源:origin: co.cask.cdap/cdap-data-fabric
if (enqueueWritePointer < transaction.getFirstShortInProgress()) {
return CanConsume.NO_INCLUDING_ALL_OLDER;
内容来源于网络,如有侵权,请联系作者删除!