Package types.temporal
Class Factory
java.lang.Object
types.temporal.Factory
Final class for assigning temporal types
- Author:
- ARIJIT SAMAL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longThe byte offset of the temporal type in a MEOS Temporal, after its int32 varlena header, as the catalog's structure Temporal states it (temptype at bit 32). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Temporalcreate_instant(jnr.ffi.Pointer inner, String customType) private static Temporalcreate_sequence(jnr.ffi.Pointer inner, String customType) private static Temporalcreate_sequenceset(jnr.ffi.Pointer inner, String customType) static Temporalcreate_temporal(jnr.ffi.Pointer inner) Returns the object of the class of a temporal value MEOS returns, chosen by the temporal type and the subtype the value states, so a reader needs no value of that class.static Temporalcreate_temporal(jnr.ffi.Pointer inner, String customType, TemporalType temporalType)
-
Field Details
-
TEMPTYPE_OFFSET
private static final long TEMPTYPE_OFFSETThe byte offset of the temporal type in a MEOS Temporal, after its int32 varlena header, as the catalog's structure Temporal states it (temptype at bit 32).- See Also:
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
create_temporal
Returns the object of the class of a temporal value MEOS returns, chosen by the temporal type and the subtype the value states, so a reader needs no value of that class.MEOS Functions:
- temporal_subtype
- Parameters:
inner- The temporal value, or null- Returns:
- The object of the class of the value, or null for a null pointer
- Throws:
IllegalArgumentException- for a temporal type JMEOS has no class of
-
create_temporal
public static Temporal create_temporal(jnr.ffi.Pointer inner, String customType, TemporalType temporalType) -
create_instant
-
create_sequence
-
create_sequenceset
-