Package com.influxdb.client.domain
Class Duration
java.lang.Object
com.influxdb.client.domain.Duration
A pair consisting of length of time and the unit of time measured. It is the atomic unit from which all duration literals are composed.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_MAGNITUDE
- See Also:
-
SERIALIZED_NAME_UNIT
- See Also:
-
-
Constructor Details
-
Duration
public Duration()
-
-
Method Details
-
type
-
getType
Type of AST node- Returns:
- type
-
setType
-
magnitude
-
getMagnitude
Get magnitude- Returns:
- magnitude
-
setMagnitude
-
unit
-
getUnit
Get unit- Returns:
- unit
-
setUnit
-
equals
-
hashCode
public int hashCode() -
toString
-