Class QueryResponse
- java.lang.Object
-
- org.opennms.netmgt.measurements.model.QueryResponse
-
public class QueryResponse extends java.lang.Object
Query response.- Author:
- Jesse White
, Dustin Frisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryResponse.QueryConstant
static class
QueryResponse.WrappedPrimitive
Used to wrap an array of primitive doubles in order to avoid boxing for marshaling.
-
Constructor Summary
Constructors Constructor Description QueryResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,double[]>
columnsWithLabels()
Convenience method.boolean
equals(java.lang.Object obj)
QueryResponse.WrappedPrimitive[]
getColumns()
java.util.List<QueryResponse.QueryConstant>
getConstants()
long
getEnd()
java.lang.String[]
getLabels()
QueryMetadata
getMetadata()
long
getStart()
long
getStep()
long[]
getTimestamps()
int
hashCode()
void
setColumns(java.util.List<double[]> doubles)
void
setColumns(java.util.Map<java.lang.String,double[]> columns)
void
setColumns(QueryResponse.WrappedPrimitive[] columns)
void
setConstants(java.util.List<QueryResponse.QueryConstant> constants)
void
setConstants(java.util.Map<java.lang.String,java.lang.Object> constants)
void
setEnd(long end)
void
setLabels(java.lang.String[] labels)
void
setMetadata(QueryMetadata metadata)
void
setStart(long start)
void
setStep(long step)
void
setTimestamps(long[] timestamps)
void
setTimestamps(java.util.ArrayList<java.lang.Long> timestamps)
Required by JAXB.java.lang.String
toString()
-
-
-
Method Detail
-
getStep
public long getStep()
-
setStep
public void setStep(long step)
-
getStart
public long getStart()
-
setStart
public void setStart(long start)
-
getEnd
public long getEnd()
-
setEnd
public void setEnd(long end)
-
getTimestamps
public long[] getTimestamps()
-
setTimestamps
public void setTimestamps(java.util.ArrayList<java.lang.Long> timestamps)
Required by JAXB.
-
setTimestamps
public void setTimestamps(long[] timestamps)
-
getLabels
public java.lang.String[] getLabels()
-
setLabels
public void setLabels(java.lang.String[] labels)
-
getColumns
public QueryResponse.WrappedPrimitive[] getColumns()
-
setColumns
public void setColumns(QueryResponse.WrappedPrimitive[] columns)
-
setColumns
public void setColumns(java.util.List<double[]> doubles)
-
setColumns
public void setColumns(java.util.Map<java.lang.String,double[]> columns)
-
getConstants
public java.util.List<QueryResponse.QueryConstant> getConstants()
-
setConstants
public void setConstants(java.util.List<QueryResponse.QueryConstant> constants)
-
setConstants
public void setConstants(java.util.Map<java.lang.String,java.lang.Object> constants)
-
getMetadata
public QueryMetadata getMetadata()
-
setMetadata
public void setMetadata(QueryMetadata metadata)
-
columnsWithLabels
public java.util.Map<java.lang.String,double[]> columnsWithLabels()
Convenience method.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-