| Modifier | Constructor and Description |
|---|---|
protected |
StoreRequest(co.cask.cdap.proto.id.TopicId topicId,
boolean transactional,
long transactionWritePointer) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
computeNext() |
protected abstract byte[] |
doComputeNext()
Returns the next message payloads or return
null to signal the end of payload messages. |
co.cask.cdap.proto.id.TopicId |
getTopicId() |
long |
getTransactionWritePointer()
Returns the transaction write pointer if the message is going to be published transactionally, that is
when
isTransactional() returns true. |
boolean |
isTransactional()
Returns
true if the message should be published transactionally. |
endOfData, hasNext, next, peekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected StoreRequest(co.cask.cdap.proto.id.TopicId topicId,
boolean transactional,
long transactionWritePointer)
public co.cask.cdap.proto.id.TopicId getTopicId()
public boolean isTransactional()
true if the message should be published transactionally.public long getTransactionWritePointer()
isTransactional() returns true.protected final byte[] computeNext()
computeNext in class com.google.common.collect.AbstractIterator<byte[]>@Nullable protected abstract byte[] doComputeNext()
null to signal the end of payload messages. If this
method returns null on the first time being called, it means this StoreRequest represents
a message table entry that reference to payload table. It requires isTransactional() returns
true and getTransactionWritePointer() should return the transaction write pointer for
messages stored in the Payload Table prior to this call.Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.