@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SparqlRecord extends Object implements Serializable, Cloneable, StructuredPojo
A serialized SPARQL stream record capturing a change-log entry for the RDF graph.
Constructor and Description |
---|
SparqlRecord() |
Modifier and Type | Method and Description |
---|---|
SparqlRecord |
addEventIdEntry(String key,
String value)
Add a single EventId entry
|
SparqlRecord |
clearEventIdEntries()
Removes all the entries added into EventId.
|
SparqlRecord |
clone() |
boolean |
equals(Object obj) |
Long |
getCommitTimestampInMillis()
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
|
SparqlData |
getData()
The serialized SPARQL change record.
|
Map<String,String> |
getEventId()
The sequence identifier of the stream change record.
|
Boolean |
getIsLastOp()
Only present if this operation is the last one in its transaction.
|
String |
getOp()
The operation that created the change.
|
int |
hashCode() |
Boolean |
isLastOp()
Only present if this operation is the last one in its transaction.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommitTimestampInMillis(Long commitTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
|
void |
setData(SparqlData data)
The serialized SPARQL change record.
|
void |
setEventId(Map<String,String> eventId)
The sequence identifier of the stream change record.
|
void |
setIsLastOp(Boolean isLastOp)
Only present if this operation is the last one in its transaction.
|
void |
setOp(String op)
The operation that created the change.
|
String |
toString()
Returns a string representation of this object.
|
SparqlRecord |
withCommitTimestampInMillis(Long commitTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
|
SparqlRecord |
withData(SparqlData data)
The serialized SPARQL change record.
|
SparqlRecord |
withEventId(Map<String,String> eventId)
The sequence identifier of the stream change record.
|
SparqlRecord |
withIsLastOp(Boolean isLastOp)
Only present if this operation is the last one in its transaction.
|
SparqlRecord |
withOp(String op)
The operation that created the change.
|
public void setCommitTimestampInMillis(Long commitTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
commitTimestampInMillis
- The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.public Long getCommitTimestampInMillis()
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
public SparqlRecord withCommitTimestampInMillis(Long commitTimestampInMillis)
The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.
commitTimestampInMillis
- The time at which the commit for the transaction was requested, in milliseconds from the Unix epoch.public Map<String,String> getEventId()
The sequence identifier of the stream change record.
public void setEventId(Map<String,String> eventId)
The sequence identifier of the stream change record.
eventId
- The sequence identifier of the stream change record.public SparqlRecord withEventId(Map<String,String> eventId)
The sequence identifier of the stream change record.
eventId
- The sequence identifier of the stream change record.public SparqlRecord addEventIdEntry(String key, String value)
public SparqlRecord clearEventIdEntries()
public void setData(SparqlData data)
The serialized SPARQL change record. The serialization formats of each record are described in more detail in Serialization Formats in Neptune Streams.
data
- The serialized SPARQL change record. The serialization formats of each record are described in more detail
in Serialization
Formats in Neptune Streams.public SparqlData getData()
The serialized SPARQL change record. The serialization formats of each record are described in more detail in Serialization Formats in Neptune Streams.
public SparqlRecord withData(SparqlData data)
The serialized SPARQL change record. The serialization formats of each record are described in more detail in Serialization Formats in Neptune Streams.
data
- The serialized SPARQL change record. The serialization formats of each record are described in more detail
in Serialization
Formats in Neptune Streams.public void setOp(String op)
The operation that created the change.
op
- The operation that created the change.public String getOp()
The operation that created the change.
public SparqlRecord withOp(String op)
The operation that created the change.
op
- The operation that created the change.public void setIsLastOp(Boolean isLastOp)
Only present if this operation is the last one in its transaction. If present, it is set to true. It is useful for ensuring that an entire transaction is consumed.
isLastOp
- Only present if this operation is the last one in its transaction. If present, it is set to true. It is
useful for ensuring that an entire transaction is consumed.public Boolean getIsLastOp()
Only present if this operation is the last one in its transaction. If present, it is set to true. It is useful for ensuring that an entire transaction is consumed.
public SparqlRecord withIsLastOp(Boolean isLastOp)
Only present if this operation is the last one in its transaction. If present, it is set to true. It is useful for ensuring that an entire transaction is consumed.
isLastOp
- Only present if this operation is the last one in its transaction. If present, it is set to true. It is
useful for ensuring that an entire transaction is consumed.public Boolean isLastOp()
Only present if this operation is the last one in its transaction. If present, it is set to true. It is useful for ensuring that an entire transaction is consumed.
public String toString()
toString
in class Object
Object.toString()
public SparqlRecord clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.