public class FetchRequest extends java.lang.Object implements org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<FetchRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
FetchRequest._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<FetchRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
FetchRequest() |
FetchRequest(FetchRequest other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToMetadatas(Metadata elem) |
void |
clear() |
int |
compareTo(FetchRequest other) |
FetchRequest |
deepCopy() |
boolean |
equals(FetchRequest that) |
boolean |
equals(java.lang.Object that) |
FetchRequest._Fields |
fieldForId(int fieldId) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Map of attributes.
|
int |
getAttributesSize() |
long |
getCount()
Number of data points to fetch.
|
java.lang.Object |
getFieldValue(FetchRequest._Fields field) |
java.util.List<Metadata> |
getMetadatas()
List of Metadata describing the Geo Time Series to fetch
|
java.util.Iterator<Metadata> |
getMetadatasIterator() |
int |
getMetadatasSize() |
long |
getNow()
End timestamp (included)
|
long |
getPostBoundary()
Size of the post boundary in number of data points.
|
long |
getPreBoundary()
Size of the pre boundary in number of data points.
|
double |
getSample()
Sampling rate.
|
long |
getSkip()
Number of data points to skip before starting to return values.
|
long |
getStep()
Index offset between two data points, defaults to 1, i.e.
|
long |
getThents()
Start timestamp (included).
|
long |
getTimestep()
Minimum time offset between data points, expressed in time units.
|
ReadToken |
getToken()
Read token to use for fetching data
|
int |
hashCode() |
boolean |
isParallelScanners()
Flag indicating whether or not to use parallel scanners if available.
|
boolean |
isSet(FetchRequest._Fields field)
Returns true if field corresponding to fieldID 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 |
isSetCount()
Returns true if field count is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetadatas()
Returns true if field metadatas is set (has been assigned a value) and false otherwise
|
boolean |
isSetNow()
Returns true if field now is set (has been assigned a value) and false otherwise
|
boolean |
isSetParallelScanners()
Returns true if field parallelScanners is set (has been assigned a value) and false otherwise
|
boolean |
isSetPostBoundary()
Returns true if field postBoundary is set (has been assigned a value) and false otherwise
|
boolean |
isSetPreBoundary()
Returns true if field preBoundary is set (has been assigned a value) and false otherwise
|
boolean |
isSetSample()
Returns true if field sample is set (has been assigned a value) and false otherwise
|
boolean |
isSetSkip()
Returns true if field skip is set (has been assigned a value) and false otherwise
|
boolean |
isSetStep()
Returns true if field step is set (has been assigned a value) and false otherwise
|
boolean |
isSetThents()
Returns true if field thents is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimestep()
Returns true if field timestep is set (has been assigned a value) and false otherwise
|
boolean |
isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwise
|
void |
putToAttributes(java.lang.String key,
java.lang.String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
FetchRequest |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Map of attributes.
|
void |
setAttributesIsSet(boolean value) |
FetchRequest |
setCount(long count)
Number of data points to fetch.
|
void |
setCountIsSet(boolean value) |
void |
setFieldValue(FetchRequest._Fields field,
java.lang.Object value) |
FetchRequest |
setMetadatas(java.util.List<Metadata> metadatas)
List of Metadata describing the Geo Time Series to fetch
|
void |
setMetadatasIsSet(boolean value) |
FetchRequest |
setNow(long now)
End timestamp (included)
|
void |
setNowIsSet(boolean value) |
FetchRequest |
setParallelScanners(boolean parallelScanners)
Flag indicating whether or not to use parallel scanners if available.
|
void |
setParallelScannersIsSet(boolean value) |
FetchRequest |
setPostBoundary(long postBoundary)
Size of the post boundary in number of data points.
|
void |
setPostBoundaryIsSet(boolean value) |
FetchRequest |
setPreBoundary(long preBoundary)
Size of the pre boundary in number of data points.
|
void |
setPreBoundaryIsSet(boolean value) |
FetchRequest |
setSample(double sample)
Sampling rate.
|
void |
setSampleIsSet(boolean value) |
FetchRequest |
setSkip(long skip)
Number of data points to skip before starting to return values.
|
void |
setSkipIsSet(boolean value) |
FetchRequest |
setStep(long step)
Index offset between two data points, defaults to 1, i.e.
|
void |
setStepIsSet(boolean value) |
FetchRequest |
setThents(long thents)
Start timestamp (included).
|
void |
setThentsIsSet(boolean value) |
FetchRequest |
setTimestep(long timestep)
Minimum time offset between data points, expressed in time units.
|
void |
setTimestepIsSet(boolean value) |
FetchRequest |
setToken(ReadToken token)
Read token to use for fetching data
|
void |
setTokenIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetAttributes() |
void |
unsetCount() |
void |
unsetMetadatas() |
void |
unsetNow() |
void |
unsetParallelScanners() |
void |
unsetPostBoundary() |
void |
unsetPreBoundary() |
void |
unsetSample() |
void |
unsetSkip() |
void |
unsetStep() |
void |
unsetThents() |
void |
unsetTimestep() |
void |
unsetToken() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<FetchRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public FetchRequest()
public FetchRequest(FetchRequest other)
public FetchRequest deepCopy()
deepCopy in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>public void clear()
clear in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>public ReadToken getToken()
public FetchRequest setToken(ReadToken token)
public void unsetToken()
public boolean isSetToken()
public void setTokenIsSet(boolean value)
public int getMetadatasSize()
public java.util.Iterator<Metadata> getMetadatasIterator()
public void addToMetadatas(Metadata elem)
public java.util.List<Metadata> getMetadatas()
public FetchRequest setMetadatas(java.util.List<Metadata> metadatas)
public void unsetMetadatas()
public boolean isSetMetadatas()
public void setMetadatasIsSet(boolean value)
public long getNow()
public FetchRequest setNow(long now)
public void unsetNow()
public boolean isSetNow()
public void setNowIsSet(boolean value)
public long getThents()
public FetchRequest setThents(long thents)
public void unsetThents()
public boolean isSetThents()
public void setThentsIsSet(boolean value)
public long getCount()
public FetchRequest setCount(long count)
public void unsetCount()
public boolean isSetCount()
public void setCountIsSet(boolean value)
public long getSkip()
public FetchRequest setSkip(long skip)
public void unsetSkip()
public boolean isSetSkip()
public void setSkipIsSet(boolean value)
public long getStep()
public FetchRequest setStep(long step)
public void unsetStep()
public boolean isSetStep()
public void setStepIsSet(boolean value)
public long getTimestep()
public FetchRequest setTimestep(long timestep)
public void unsetTimestep()
public boolean isSetTimestep()
public void setTimestepIsSet(boolean value)
public double getSample()
public FetchRequest setSample(double sample)
public void unsetSample()
public boolean isSetSample()
public void setSampleIsSet(boolean value)
public long getPreBoundary()
public FetchRequest setPreBoundary(long preBoundary)
public void unsetPreBoundary()
public boolean isSetPreBoundary()
public void setPreBoundaryIsSet(boolean value)
public long getPostBoundary()
public FetchRequest setPostBoundary(long postBoundary)
public void unsetPostBoundary()
public boolean isSetPostBoundary()
public void setPostBoundaryIsSet(boolean value)
public boolean isParallelScanners()
public FetchRequest setParallelScanners(boolean parallelScanners)
public void unsetParallelScanners()
public boolean isSetParallelScanners()
public void setParallelScannersIsSet(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 FetchRequest 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(FetchRequest._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>public java.lang.Object getFieldValue(FetchRequest._Fields field)
getFieldValue in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>public boolean isSet(FetchRequest._Fields field)
isSet in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(FetchRequest that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(FetchRequest other)
compareTo in interface java.lang.Comparable<FetchRequest>public FetchRequest._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<FetchRequest,FetchRequest._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