@Generated(value="Autogenerated by Thrift Compiler (0.11.0)",
date="2022-08-23")
public class WriteToken
extends java.lang.Object
implements org.apache.thrift.TBase<WriteToken,WriteToken._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<WriteToken>
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteToken._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<WriteToken._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
WriteToken() |
WriteToken(long issuanceTimestamp,
long expiryTimestamp,
TokenType tokenType,
java.nio.ByteBuffer producerId,
java.nio.ByteBuffer ownerId,
java.lang.String appName) |
WriteToken(WriteToken other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToIndices(long elem) |
java.nio.ByteBuffer |
bufferForOwnerId() |
java.nio.ByteBuffer |
bufferForProducerId() |
void |
clear() |
int |
compareTo(WriteToken other) |
WriteToken |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(WriteToken that) |
WriteToken._Fields |
fieldForId(int fieldId) |
java.lang.String |
getAppName()
Application name
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Token attributes, placeholder to store K/V.
|
int |
getAttributesSize() |
long |
getExpiryTimestamp()
Timestamp of the token expiration
|
java.lang.Object |
getFieldValue(WriteToken._Fields field) |
java.util.List<java.lang.Long> |
getIndices()
indices to use
|
java.util.Iterator<java.lang.Long> |
getIndicesIterator() |
int |
getIndicesSize() |
long |
getIssuanceTimestamp()
delivery timestamp of the token
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Default labels.
|
int |
getLabelsSize() |
byte[] |
getOwnerId()
ident of the owner
|
byte[] |
getProducerId()
ident of the producer
a producer inject data, but is not the data owner
|
TokenType |
getTokenType()
TokenType (Set to TokenType.WRITE)
|
int |
hashCode() |
boolean |
isLookup()
true if a lookup is necessary, default false
|
boolean |
isSet(WriteToken._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetAppName()
Returns true if field appName is set (has been assigned a value) and false otherwise
|
boolean |
isSetAttributes()
Returns true if field attributes is set (has been assigned a value) and false otherwise
|
boolean |
isSetExpiryTimestamp()
Returns true if field expiryTimestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetIndices()
Returns true if field indices is set (has been assigned a value) and false otherwise
|
boolean |
isSetIssuanceTimestamp()
Returns true if field issuanceTimestamp is set (has been assigned a value) and false otherwise
|
boolean |
isSetLabels()
Returns true if field labels is set (has been assigned a value) and false otherwise
|
boolean |
isSetLookup()
Returns true if field lookup is set (has been assigned a value) and false otherwise
|
boolean |
isSetOwnerId()
Returns true if field ownerId is set (has been assigned a value) and false otherwise
|
boolean |
isSetProducerId()
Returns true if field producerId is set (has been assigned a value) and false otherwise
|
boolean |
isSetTokenType()
Returns true if field tokenType is set (has been assigned a value) and false otherwise
|
void |
putToAttributes(java.lang.String key,
java.lang.String val) |
void |
putToLabels(java.lang.String key,
java.lang.String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
WriteToken |
setAppName(java.lang.String appName)
Application name
|
void |
setAppNameIsSet(boolean value) |
WriteToken |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Token attributes, placeholder to store K/V.
|
void |
setAttributesIsSet(boolean value) |
WriteToken |
setExpiryTimestamp(long expiryTimestamp)
Timestamp of the token expiration
|
void |
setExpiryTimestampIsSet(boolean value) |
void |
setFieldValue(WriteToken._Fields field,
java.lang.Object value) |
WriteToken |
setIndices(java.util.List<java.lang.Long> indices)
indices to use
|
void |
setIndicesIsSet(boolean value) |
WriteToken |
setIssuanceTimestamp(long issuanceTimestamp)
delivery timestamp of the token
|
void |
setIssuanceTimestampIsSet(boolean value) |
WriteToken |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Default labels.
|
void |
setLabelsIsSet(boolean value) |
WriteToken |
setLookup(boolean lookup)
true if a lookup is necessary, default false
|
void |
setLookupIsSet(boolean value) |
WriteToken |
setOwnerId(byte[] ownerId)
ident of the owner
|
WriteToken |
setOwnerId(java.nio.ByteBuffer ownerId) |
void |
setOwnerIdIsSet(boolean value) |
WriteToken |
setProducerId(byte[] producerId)
ident of the producer
a producer inject data, but is not the data owner
|
WriteToken |
setProducerId(java.nio.ByteBuffer producerId) |
void |
setProducerIdIsSet(boolean value) |
WriteToken |
setTokenType(TokenType tokenType)
TokenType (Set to TokenType.WRITE)
|
void |
setTokenTypeIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetAppName() |
void |
unsetAttributes() |
void |
unsetExpiryTimestamp() |
void |
unsetIndices() |
void |
unsetIssuanceTimestamp() |
void |
unsetLabels() |
void |
unsetLookup() |
void |
unsetOwnerId() |
void |
unsetProducerId() |
void |
unsetTokenType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<WriteToken._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public WriteToken()
public WriteToken(long issuanceTimestamp,
long expiryTimestamp,
TokenType tokenType,
java.nio.ByteBuffer producerId,
java.nio.ByteBuffer ownerId,
java.lang.String appName)
public WriteToken(WriteToken other)
public WriteToken deepCopy()
deepCopy in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public void clear()
clear in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public long getIssuanceTimestamp()
public WriteToken setIssuanceTimestamp(long issuanceTimestamp)
public void unsetIssuanceTimestamp()
public boolean isSetIssuanceTimestamp()
public void setIssuanceTimestampIsSet(boolean value)
public long getExpiryTimestamp()
public WriteToken setExpiryTimestamp(long expiryTimestamp)
public void unsetExpiryTimestamp()
public boolean isSetExpiryTimestamp()
public void setExpiryTimestampIsSet(boolean value)
public WriteToken setTokenType(TokenType tokenType)
TokenTypepublic void unsetTokenType()
public boolean isSetTokenType()
public void setTokenTypeIsSet(boolean value)
public boolean isLookup()
public WriteToken setLookup(boolean lookup)
public void unsetLookup()
public boolean isSetLookup()
public void setLookupIsSet(boolean value)
public byte[] getProducerId()
public java.nio.ByteBuffer bufferForProducerId()
public WriteToken setProducerId(byte[] producerId)
public WriteToken setProducerId(java.nio.ByteBuffer producerId)
public void unsetProducerId()
public boolean isSetProducerId()
public void setProducerIdIsSet(boolean value)
public byte[] getOwnerId()
public java.nio.ByteBuffer bufferForOwnerId()
public WriteToken setOwnerId(byte[] ownerId)
public WriteToken setOwnerId(java.nio.ByteBuffer ownerId)
public void unsetOwnerId()
public boolean isSetOwnerId()
public void setOwnerIdIsSet(boolean value)
public java.lang.String getAppName()
public WriteToken setAppName(java.lang.String appName)
public void unsetAppName()
public boolean isSetAppName()
public void setAppNameIsSet(boolean value)
public int getIndicesSize()
public java.util.Iterator<java.lang.Long> getIndicesIterator()
public void addToIndices(long elem)
public java.util.List<java.lang.Long> getIndices()
public WriteToken setIndices(java.util.List<java.lang.Long> indices)
public void unsetIndices()
public boolean isSetIndices()
public void setIndicesIsSet(boolean value)
public int getLabelsSize()
public void putToLabels(java.lang.String key,
java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getLabels()
public WriteToken setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
public void unsetLabels()
public boolean isSetLabels()
public void setLabelsIsSet(boolean value)
public int getAttributesSize()
public void putToAttributes(java.lang.String key,
java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public WriteToken setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(boolean value)
public void setFieldValue(WriteToken._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public java.lang.Object getFieldValue(WriteToken._Fields field)
getFieldValue in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public boolean isSet(WriteToken._Fields field)
isSet in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(WriteToken that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(WriteToken other)
compareTo in interface java.lang.Comparable<WriteToken>public WriteToken._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<WriteToken,WriteToken._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException