Class EpochDateTimeOffset
java.lang.Object
se.kuseman.payloadbuilder.api.execution.EpochDateTimeOffset
- All Implemented Interfaces:
Comparable<EpochDateTimeOffset>,ValueVector
public class EpochDateTimeOffset
extends Object
implements Comparable<EpochDateTimeOffset>, ValueVector
Data type class for
Column.Type.DateTimeOffset. Extends EpochDateTime with a timezone-
Nested Class Summary
Nested classes/interfaces inherited from interface se.kuseman.payloadbuilder.api.execution.ValueVector
ValueVector.LiteralValueVector -
Field Summary
Fields inherited from interface se.kuseman.payloadbuilder.api.execution.ValueVector
EMPTY_VECTOR_BY_TYPE, FALSE_VECTORS, ONE_SIZE_NULL_VECTOR_BY_TYPE, TRUE_VECTORS -
Method Summary
Modifier and TypeMethodDescriptionadd(long amount, TemporalUnit unit) Add a temporal unit to this datetime returning a new instanceSwitch time zoneintbooleanstatic EpochDateTimeOffsetfrom(long epoch) Creates a epoch date time from provided long unix epoch in UTCstatic EpochDateTimeOffsetReflective convert.static EpochDateTimeOffsetCreate an epoch date time from provided string.getDateTimeOffset(int row) Get date time offset at provided rowlonggetEpoch()longgetPart(ChronoField unit) Get a part of this date timeReturn this instance inZonedDateTimeinthashCode()booleanisNull(int row) Return if value at provided row is nullstatic EpochDateTimeOffsetnow()Creates a epoch date time with now instant in UTCintsize()Return size of vectortoString()type()Return type of vector valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.kuseman.payloadbuilder.api.execution.ValueVector
getAny, getArray, getBoolean, getCardinality, getDateTime, getDecimal, getDouble, getFloat, getInt, getLong, getObject, getPredicateBoolean, getString, getTable, toCsv, toCsv, valueAsObject, valueAsString
-
Method Details
-
size
public int size()Description copied from interface:ValueVectorReturn size of vector- Specified by:
sizein interfaceValueVector
-
type
Description copied from interface:ValueVectorReturn type of vector values- Specified by:
typein interfaceValueVector
-
isNull
public boolean isNull(int row) Description copied from interface:ValueVectorReturn if value at provided row is null- Specified by:
isNullin interfaceValueVector
-
getDateTimeOffset
Description copied from interface:ValueVectorGet date time offset at provided row- Specified by:
getDateTimeOffsetin interfaceValueVector
-
getEpoch
public long getEpoch() -
getZonedDateTime
Return this instance inZonedDateTime -
getPart
Get a part of this date time -
add
Add a temporal unit to this datetime returning a new instance -
atZone
Switch time zone -
compareTo
- Specified by:
compareToin interfaceComparable<EpochDateTimeOffset>
-
hashCode
public int hashCode() -
equals
-
toString
-
now
Creates a epoch date time with now instant in UTC -
from
Creates a epoch date time from provided long unix epoch in UTC -
from
Create an epoch date time from provided string. -
from
Reflective convert. Try to convert provided object to a epoch date time
-