Class QueryResponse
- java.lang.Object
-
- org.opennms.netmgt.measurements.model.QueryResponse
-
public class QueryResponse extends 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 Map<String,double[]>
columnsWithLabels()
Convenience method.boolean
equals(Object obj)
QueryResponse.WrappedPrimitive[]
getColumns()
List<QueryResponse.QueryConstant>
getConstants()
long
getEnd()
String[]
getLabels()
QueryMetadata
getMetadata()
long
getStart()
long
getStep()
long[]
getTimestamps()
int
hashCode()
void
setColumns(List<double[]> doubles)
void
setColumns(Map<String,double[]> columns)
void
setColumns(QueryResponse.WrappedPrimitive[] columns)
void
setConstants(List<QueryResponse.QueryConstant> constants)
void
setConstants(Map<String,Object> constants)
void
setEnd(long end)
void
setLabels(String[] labels)
void
setMetadata(QueryMetadata metadata)
void
setStart(long start)
void
setStep(long step)
void
setTimestamps(long[] timestamps)
void
setTimestamps(ArrayList<Long> timestamps)
Required by JAXB.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(long[] timestamps)
-
getLabels
public String[] getLabels()
-
setLabels
public void setLabels(String[] labels)
-
getColumns
public QueryResponse.WrappedPrimitive[] getColumns()
-
setColumns
public void setColumns(QueryResponse.WrappedPrimitive[] columns)
-
setColumns
public void setColumns(List<double[]> doubles)
-
getConstants
public List<QueryResponse.QueryConstant> getConstants()
-
setConstants
public void setConstants(List<QueryResponse.QueryConstant> constants)
-
getMetadata
public QueryMetadata getMetadata()
-
setMetadata
public void setMetadata(QueryMetadata metadata)
-
-