@Internal public class YearMonthIntervalPeriodConverter extends Object implements DataStructureConverter<Integer,java.time.Period>
YearMonthIntervalType
of Period
external type.Modifier and Type | Method and Description |
---|---|
static YearMonthIntervalPeriodConverter |
create(DataType dataType) |
java.time.Period |
toExternal(Integer internal)
Converts to external data structure.
|
Integer |
toInternal(java.time.Period external)
Converts to internal data structure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
open, toExternalOrNull, toInternalOrNull
public Integer toInternal(java.time.Period external)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toInternal
in interface DataStructureConverter<Integer,java.time.Period>
public java.time.Period toExternal(Integer internal)
DataStructureConverter
Note: Parameter must not be null. Output must not be null.
toExternal
in interface DataStructureConverter<Integer,java.time.Period>
public static YearMonthIntervalPeriodConverter create(DataType dataType)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.