public class GTSWrapper extends java.lang.Object implements org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<GTSWrapper>
| Modifier and Type | Class and Description |
|---|---|
static class |
GTSWrapper._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<GTSWrapper._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
GTSWrapper() |
GTSWrapper(GTSWrapper other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForEncoded() |
java.nio.ByteBuffer |
bufferForKey() |
void |
clear() |
int |
compareTo(GTSWrapper other) |
GTSWrapper |
deepCopy() |
boolean |
equals(GTSWrapper that) |
boolean |
equals(java.lang.Object that) |
GTSWrapper._Fields |
fieldForId(int fieldId) |
long |
getBase()
Base timestamp, if not set assumed to be 0
|
long |
getBucketcount()
Bucket count for bucketized GTS
|
long |
getBucketspan()
Bucket span for bucketized GTS
|
int |
getCompressionPasses()
Number of compression passes done on the input data
|
long |
getCount()
Number of datapoints encoded in the wrapped GTS
|
byte[] |
getEncoded()
Encoded GTS content
|
java.lang.Object |
getFieldValue(GTSWrapper._Fields field) |
byte[] |
getKey()
Encoding key is used
|
long |
getLastbucket()
Last bucket for bucketized GTS
|
Metadata |
getMetadata()
Metadata for the GTS
|
int |
hashCode() |
boolean |
isCompressed()
Flag indicating if 'encoded' is gzip compressed
|
boolean |
isSet(GTSWrapper._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBase()
Returns true if field base is set (has been assigned a value) and false otherwise
|
boolean |
isSetBucketcount()
Returns true if field bucketcount is set (has been assigned a value) and false otherwise
|
boolean |
isSetBucketspan()
Returns true if field bucketspan is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressed()
Returns true if field compressed is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressionPasses()
Returns true if field compressionPasses is set (has been assigned a value) and false otherwise
|
boolean |
isSetCount()
Returns true if field count is set (has been assigned a value) and false otherwise
|
boolean |
isSetEncoded()
Returns true if field encoded is set (has been assigned a value) and false otherwise
|
boolean |
isSetKey()
Returns true if field key is set (has been assigned a value) and false otherwise
|
boolean |
isSetLastbucket()
Returns true if field lastbucket is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetadata()
Returns true if field metadata is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
GTSWrapper |
setBase(long base)
Base timestamp, if not set assumed to be 0
|
void |
setBaseIsSet(boolean value) |
GTSWrapper |
setBucketcount(long bucketcount)
Bucket count for bucketized GTS
|
void |
setBucketcountIsSet(boolean value) |
GTSWrapper |
setBucketspan(long bucketspan)
Bucket span for bucketized GTS
|
void |
setBucketspanIsSet(boolean value) |
GTSWrapper |
setCompressed(boolean compressed)
Flag indicating if 'encoded' is gzip compressed
|
void |
setCompressedIsSet(boolean value) |
GTSWrapper |
setCompressionPasses(int compressionPasses)
Number of compression passes done on the input data
|
void |
setCompressionPassesIsSet(boolean value) |
GTSWrapper |
setCount(long count)
Number of datapoints encoded in the wrapped GTS
|
void |
setCountIsSet(boolean value) |
GTSWrapper |
setEncoded(byte[] encoded)
Encoded GTS content
|
GTSWrapper |
setEncoded(java.nio.ByteBuffer encoded) |
void |
setEncodedIsSet(boolean value) |
void |
setFieldValue(GTSWrapper._Fields field,
java.lang.Object value) |
GTSWrapper |
setKey(byte[] key)
Encoding key is used
|
GTSWrapper |
setKey(java.nio.ByteBuffer key) |
void |
setKeyIsSet(boolean value) |
GTSWrapper |
setLastbucket(long lastbucket)
Last bucket for bucketized GTS
|
void |
setLastbucketIsSet(boolean value) |
GTSWrapper |
setMetadata(Metadata metadata)
Metadata for the GTS
|
void |
setMetadataIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetBase() |
void |
unsetBucketcount() |
void |
unsetBucketspan() |
void |
unsetCompressed() |
void |
unsetCompressionPasses() |
void |
unsetCount() |
void |
unsetEncoded() |
void |
unsetKey() |
void |
unsetLastbucket() |
void |
unsetMetadata() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<GTSWrapper._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public GTSWrapper()
public GTSWrapper(GTSWrapper other)
public GTSWrapper deepCopy()
deepCopy in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>public void clear()
clear in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>public Metadata getMetadata()
public GTSWrapper setMetadata(Metadata metadata)
public void unsetMetadata()
public boolean isSetMetadata()
public void setMetadataIsSet(boolean value)
public long getLastbucket()
public GTSWrapper setLastbucket(long lastbucket)
public void unsetLastbucket()
public boolean isSetLastbucket()
public void setLastbucketIsSet(boolean value)
public long getBucketspan()
public GTSWrapper setBucketspan(long bucketspan)
public void unsetBucketspan()
public boolean isSetBucketspan()
public void setBucketspanIsSet(boolean value)
public long getBucketcount()
public GTSWrapper setBucketcount(long bucketcount)
public void unsetBucketcount()
public boolean isSetBucketcount()
public void setBucketcountIsSet(boolean value)
public byte[] getKey()
public java.nio.ByteBuffer bufferForKey()
public GTSWrapper setKey(byte[] key)
public GTSWrapper setKey(java.nio.ByteBuffer key)
public void unsetKey()
public boolean isSetKey()
public void setKeyIsSet(boolean value)
public long getBase()
public GTSWrapper setBase(long base)
public void unsetBase()
public boolean isSetBase()
public void setBaseIsSet(boolean value)
public byte[] getEncoded()
public java.nio.ByteBuffer bufferForEncoded()
public GTSWrapper setEncoded(byte[] encoded)
public GTSWrapper setEncoded(java.nio.ByteBuffer encoded)
public void unsetEncoded()
public boolean isSetEncoded()
public void setEncodedIsSet(boolean value)
public long getCount()
public GTSWrapper setCount(long count)
public void unsetCount()
public boolean isSetCount()
public void setCountIsSet(boolean value)
public boolean isCompressed()
public GTSWrapper setCompressed(boolean compressed)
public void unsetCompressed()
public boolean isSetCompressed()
public void setCompressedIsSet(boolean value)
public int getCompressionPasses()
public GTSWrapper setCompressionPasses(int compressionPasses)
public void unsetCompressionPasses()
public boolean isSetCompressionPasses()
public void setCompressionPassesIsSet(boolean value)
public void setFieldValue(GTSWrapper._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>public java.lang.Object getFieldValue(GTSWrapper._Fields field)
getFieldValue in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>public boolean isSet(GTSWrapper._Fields field)
isSet in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(GTSWrapper that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(GTSWrapper other)
compareTo in interface java.lang.Comparable<GTSWrapper>public GTSWrapper._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<GTSWrapper,GTSWrapper._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