public class ReadToken extends java.lang.Object implements org.apache.thrift.TBase<ReadToken,ReadToken._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ReadToken>
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadToken._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<ReadToken._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
ReadToken() |
ReadToken(long issuanceTimestamp,
long expiryTimestamp,
TokenType tokenType,
java.util.List<java.lang.String> apps,
java.util.List<java.nio.ByteBuffer> owners,
java.util.List<java.nio.ByteBuffer> producers,
java.nio.ByteBuffer billedId) |
ReadToken(ReadToken other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToApps(java.lang.String elem) |
void |
addToOwners(java.nio.ByteBuffer elem) |
void |
addToProducers(java.nio.ByteBuffer elem) |
java.nio.ByteBuffer |
bufferForBilledId() |
void |
clear() |
int |
compareTo(ReadToken other) |
ReadToken |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(ReadToken that) |
ReadToken._Fields |
fieldForId(int fieldId) |
java.lang.String |
getAppName()
Name of the application using the token
|
java.util.List<java.lang.String> |
getApps()
List of applications consumed
|
java.util.Iterator<java.lang.String> |
getAppsIterator() |
int |
getAppsSize() |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Token attributes
|
int |
getAttributesSize() |
byte[] |
getBilledId()
Id of the billed customer
|
long |
getExpiryTimestamp()
Timestamp of the token expiration
|
java.lang.Object |
getFieldValue(ReadToken._Fields field) |
java.util.Map<java.lang.String,java.lang.String> |
getHooks()
Token hooks
|
int |
getHooksSize() |
long |
getIssuanceTimestamp()
delivery timestamp of the token
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Token extra labels.
|
int |
getLabelsSize() |
long |
getMaxFetchSize()
DEPRECATED
Max fetch size in bytes of each read request, default 16Mb
|
java.util.List<java.nio.ByteBuffer> |
getOwners()
List of owners
|
java.util.Iterator<java.nio.ByteBuffer> |
getOwnersIterator() |
int |
getOwnersSize() |
java.util.List<java.nio.ByteBuffer> |
getProducers()
List of producers
|
java.util.Iterator<java.nio.ByteBuffer> |
getProducersIterator() |
int |
getProducersSize() |
TokenType |
getTokenType()
TokenType (Set to TokenType.READ)
|
int |
hashCode() |
boolean |
isDataviz()
The read token is used for data visualisation, default false
|
boolean |
isGroovy()
DEPRECATED.
|
boolean |
isLookup()
true if a lookup is necessary, default false
|
boolean |
isSet(ReadToken._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 |
isSetApps()
Returns true if field apps 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 |
isSetBilledId()
Returns true if field billedId is set (has been assigned a value) and false otherwise
|
boolean |
isSetDataviz()
Returns true if field dataviz 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 |
isSetGroovy()
Returns true if field groovy is set (has been assigned a value) and false otherwise
|
boolean |
isSetHooks()
Returns true if field hooks 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 |
isSetMaxFetchSize()
Returns true if field maxFetchSize is set (has been assigned a value) and false otherwise
|
boolean |
isSetOwners()
Returns true if field owners is set (has been assigned a value) and false otherwise
|
boolean |
isSetProducers()
Returns true if field producers 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 |
putToHooks(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) |
ReadToken |
setAppName(java.lang.String appName)
Name of the application using the token
|
void |
setAppNameIsSet(boolean value) |
ReadToken |
setApps(java.util.List<java.lang.String> apps)
List of applications consumed
|
void |
setAppsIsSet(boolean value) |
ReadToken |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Token attributes
|
void |
setAttributesIsSet(boolean value) |
ReadToken |
setBilledId(byte[] billedId)
Id of the billed customer
|
ReadToken |
setBilledId(java.nio.ByteBuffer billedId) |
void |
setBilledIdIsSet(boolean value) |
ReadToken |
setDataviz(boolean dataviz)
The read token is used for data visualisation, default false
|
void |
setDatavizIsSet(boolean value) |
ReadToken |
setExpiryTimestamp(long expiryTimestamp)
Timestamp of the token expiration
|
void |
setExpiryTimestampIsSet(boolean value) |
void |
setFieldValue(ReadToken._Fields field,
java.lang.Object value) |
ReadToken |
setGroovy(boolean groovy)
DEPRECATED.
|
void |
setGroovyIsSet(boolean value) |
ReadToken |
setHooks(java.util.Map<java.lang.String,java.lang.String> hooks)
Token hooks
|
void |
setHooksIsSet(boolean value) |
ReadToken |
setIssuanceTimestamp(long issuanceTimestamp)
delivery timestamp of the token
|
void |
setIssuanceTimestampIsSet(boolean value) |
ReadToken |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Token extra labels.
|
void |
setLabelsIsSet(boolean value) |
ReadToken |
setLookup(boolean lookup)
true if a lookup is necessary, default false
|
void |
setLookupIsSet(boolean value) |
ReadToken |
setMaxFetchSize(long maxFetchSize)
DEPRECATED
Max fetch size in bytes of each read request, default 16Mb
|
void |
setMaxFetchSizeIsSet(boolean value) |
ReadToken |
setOwners(java.util.List<java.nio.ByteBuffer> owners)
List of owners
|
void |
setOwnersIsSet(boolean value) |
ReadToken |
setProducers(java.util.List<java.nio.ByteBuffer> producers)
List of producers
|
void |
setProducersIsSet(boolean value) |
ReadToken |
setTokenType(TokenType tokenType)
TokenType (Set to TokenType.READ)
|
void |
setTokenTypeIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetAppName() |
void |
unsetApps() |
void |
unsetAttributes() |
void |
unsetBilledId() |
void |
unsetDataviz() |
void |
unsetExpiryTimestamp() |
void |
unsetGroovy() |
void |
unsetHooks() |
void |
unsetIssuanceTimestamp() |
void |
unsetLabels() |
void |
unsetLookup() |
void |
unsetMaxFetchSize() |
void |
unsetOwners() |
void |
unsetProducers() |
void |
unsetTokenType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<ReadToken._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ReadToken()
public ReadToken(long issuanceTimestamp,
long expiryTimestamp,
TokenType tokenType,
java.util.List<java.lang.String> apps,
java.util.List<java.nio.ByteBuffer> owners,
java.util.List<java.nio.ByteBuffer> producers,
java.nio.ByteBuffer billedId)
public ReadToken(ReadToken other)
public ReadToken deepCopy()
deepCopy in interface org.apache.thrift.TBase<ReadToken,ReadToken._Fields>public void clear()
clear in interface org.apache.thrift.TBase<ReadToken,ReadToken._Fields>public long getIssuanceTimestamp()
public ReadToken setIssuanceTimestamp(long issuanceTimestamp)
public void unsetIssuanceTimestamp()
public boolean isSetIssuanceTimestamp()
public void setIssuanceTimestampIsSet(boolean value)
public long getExpiryTimestamp()
public ReadToken setExpiryTimestamp(long expiryTimestamp)
public void unsetExpiryTimestamp()
public boolean isSetExpiryTimestamp()
public void setExpiryTimestampIsSet(boolean value)
public ReadToken setTokenType(TokenType tokenType)
TokenTypepublic void unsetTokenType()
public boolean isSetTokenType()
public void setTokenTypeIsSet(boolean value)
public boolean isLookup()
public ReadToken setLookup(boolean lookup)
public void unsetLookup()
public boolean isSetLookup()
public void setLookupIsSet(boolean value)
public boolean isGroovy()
public ReadToken setGroovy(boolean groovy)
public void unsetGroovy()
public boolean isSetGroovy()
public void setGroovyIsSet(boolean value)
public long getMaxFetchSize()
public ReadToken setMaxFetchSize(long maxFetchSize)
public void unsetMaxFetchSize()
public boolean isSetMaxFetchSize()
public void setMaxFetchSizeIsSet(boolean value)
public java.lang.String getAppName()
public ReadToken setAppName(java.lang.String appName)
public void unsetAppName()
public boolean isSetAppName()
public void setAppNameIsSet(boolean value)
public int getAppsSize()
public java.util.Iterator<java.lang.String> getAppsIterator()
public void addToApps(java.lang.String elem)
public java.util.List<java.lang.String> getApps()
public ReadToken setApps(java.util.List<java.lang.String> apps)
public void unsetApps()
public boolean isSetApps()
public void setAppsIsSet(boolean value)
public int getOwnersSize()
public java.util.Iterator<java.nio.ByteBuffer> getOwnersIterator()
public void addToOwners(java.nio.ByteBuffer elem)
public java.util.List<java.nio.ByteBuffer> getOwners()
public ReadToken setOwners(java.util.List<java.nio.ByteBuffer> owners)
public void unsetOwners()
public boolean isSetOwners()
public void setOwnersIsSet(boolean value)
public int getProducersSize()
public java.util.Iterator<java.nio.ByteBuffer> getProducersIterator()
public void addToProducers(java.nio.ByteBuffer elem)
public java.util.List<java.nio.ByteBuffer> getProducers()
public ReadToken setProducers(java.util.List<java.nio.ByteBuffer> producers)
public void unsetProducers()
public boolean isSetProducers()
public void setProducersIsSet(boolean value)
public byte[] getBilledId()
public java.nio.ByteBuffer bufferForBilledId()
public ReadToken setBilledId(byte[] billedId)
public ReadToken setBilledId(java.nio.ByteBuffer billedId)
public void unsetBilledId()
public boolean isSetBilledId()
public void setBilledIdIsSet(boolean value)
public int getHooksSize()
public void putToHooks(java.lang.String key,
java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getHooks()
public ReadToken setHooks(java.util.Map<java.lang.String,java.lang.String> hooks)
public void unsetHooks()
public boolean isSetHooks()
public void setHooksIsSet(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 ReadToken setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(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 ReadToken setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
public void unsetLabels()
public boolean isSetLabels()
public void setLabelsIsSet(boolean value)
public boolean isDataviz()
public ReadToken setDataviz(boolean dataviz)
public void unsetDataviz()
public boolean isSetDataviz()
public void setDatavizIsSet(boolean value)
public void setFieldValue(ReadToken._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<ReadToken,ReadToken._Fields>public java.lang.Object getFieldValue(ReadToken._Fields field)
getFieldValue in interface org.apache.thrift.TBase<ReadToken,ReadToken._Fields>public boolean isSet(ReadToken._Fields field)
isSet in interface org.apache.thrift.TBase<ReadToken,ReadToken._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(ReadToken that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ReadToken other)
compareTo in interface java.lang.Comparable<ReadToken>public ReadToken._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<ReadToken,ReadToken._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