Package org.apache.arrow.vector
Class PeriodDuration
java.lang.Object
org.apache.arrow.vector.PeriodDuration
- All Implemented Interfaces:
TemporalAmount
Combination of Period and Duration for representing this interval type as a POJO.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
get
(TemporalUnit unit) getUnits()
int
hashCode()
subtractFrom
(Temporal temporal) Format this PeriodDuration as an ISO-8601 interval.toString()
-
Constructor Details
-
PeriodDuration
-
-
Method Details
-
getPeriod
-
getDuration
-
get
- Specified by:
get
in interfaceTemporalAmount
-
getUnits
- Specified by:
getUnits
in interfaceTemporalAmount
-
addTo
- Specified by:
addTo
in interfaceTemporalAmount
-
subtractFrom
- Specified by:
subtractFrom
in interfaceTemporalAmount
-
toISO8601IntervalString
Format this PeriodDuration as an ISO-8601 interval.- Returns:
- An ISO-8601 formatted string representing the interval.
-
toString
-
equals
-
hashCode
public int hashCode()
-