Interface TInt

All Superinterfaces:
TNumber
All Known Implementing Classes:
TIntInst, TIntSeq, TIntSeqSet

public interface TInt extends TNumber
Class that represents the MobilityDB type TInt used for TIntInst, TIntSeq and TIntSeqSet
Author:
ARIJIT SAMAL
  • Field Details

  • Method Details

    • getNumberInner

      jnr.ffi.Pointer getNumberInner()
      Specified by:
      getNumberInner in interface TNumber
    • getCustomType

      String getCustomType()
      Specified by:
      getCustomType in interface TNumber
    • getTemporalType

      TemporalType getTemporalType()
      Specified by:
      getTemporalType in interface TNumber
    • from_base_temporal

      default TInt from_base_temporal(int value, Temporal base, TInterpolation interp)
      Returns a new temporal int with the value "value" and the temporal frame of "base".

      MEOS Functions:

    • tint_from_base_temp
    • Parameters:
      value - Value of the temporal float.
      base - Temporal object to get the temporal frame from.
      interp - Interpolation of the temporal int.
      Returns:
      A new Float object.
    • from_base_time

      Returns a new temporal int with the value "value" and the temporal frame of "base".

      MEOS Functions:

      • tintinst_make
      • tintseq_from_base_tstzspanset
      • tintseq_from_base_time
      • tintseqset_from_base_time
      Parameters:
      value - Value of the temporal float.
      base - Time object to get the temporal frame from.
      interpolation - Interpolation of the temporal int.
      Returns:
      A new temporal float.
      Throws:
      InvocationTargetException
      NoSuchMethodException
      InstantiationException
      IllegalAccessException
    • from_mfjson

      default TInt from_mfjson(String mfjson)
    • to_string

      default String to_string()
      Returns a string representation of "this".

      MEOS Functions:

    • tint_out
    • Returns:
      A string representation of "this".
    • as_wkt

      default String as_wkt()
      Returns a string representation of "this".

      MEOS Functions:

    • tint_out
    • Returns:
      A string representation of "this".
    • to_tfloat

      default TFloat to_tfloat()
      Returns a new temporal float with the values of "this" floored. This operation can only be performed when the interpolation is stepwise or discrete.

      MEOS Functions:

    • tint_to_tfloat
    • Raises: ValueError: If the interpolation is linear.
      Returns:
      A new temporal float.
    • to_intspan

      default IntSpan to_intspan()
      Returns value span of "this".

      MEOS Functions:

    • tnumber_to_span
    • Returns:
      An IntSpan with the value span of "this".
    • value_span

      default IntSpan value_span()
      Returns the value span of "this".

      MEOS Functions:

    • tnumber_to_span
    • Returns:
      An IntSpan with the value span of `self`.
    • value_spans

      default IntSpanSet value_spans()
      Returns the value spans of "this" taking into account gaps.

      MEOS Functions:

    • tnumber_valuespans
    • Returns:
      A IntSpanSet with the value spans of "this".
    • start_value

      default int start_value()
      Returns the start value of "this".

      MEOS Functions:

    • tint_start_value
    • Returns:
      A Integer with the start value.
    • end_value

      default int end_value()
      Returns the end value of "this".

      MEOS Functions:

    • tint_end_value
    • Returns:
      A Integer with the end value.
    • value_set

      default IntSet value_set()
      Returns the set of values of `self`.
      Returns: A :class:`set` with the values of `self`.

      MEOS Functions:

    • tint_values
    • Returns:
      A IntSet.
    • min_value

      default int min_value()
      Returns the minimum value of the "this".

      MEOS Functions:

    • tint_min_value
    • Returns:
      A Integer with the minimum value.
    • max_value

      default int max_value()
      Returns the maximum value of the "this".

      MEOS Functions:

    • tint_max_value
    • Returns:
      A Integer with the maximum value.
    • value_at_timestamp

      default int value_at_timestamp(LocalDateTime timestamp)
    • always_equal

      default boolean always_equal(int value)
      Returns whether the values of "this" are always equal to "value".

      MEOS Functions:

    • tint_always_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always equal to "value", * "False" otherwise.
    • always_not_equal

      default boolean always_not_equal(int value)
      Returns whether the values of "this" are always not equal to "value".

      MEOS Functions:

    • tint_ever_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always not equal to "value", * "False" otherwise.
    • always_less

      default boolean always_less(int value)
      Returns whether the values of "this" are always less than "value".

      MEOS Functions:

    • tint_always_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always less than "value", * "False" otherwise.
    • always_less_or_equal

      default boolean always_less_or_equal(int value)
      Returns whether the values of "this" are always less than or equal to "value".

      MEOS Functions:

    • tint_always_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always less than or equal to * "value", "False" otherwise.
    • always_greater_or_equal

      default boolean always_greater_or_equal(int value)
      Returns whether the values of "this" are always greater than or equal to "value".

      MEOS Functions:

    • tint_ever_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always greater than or equal to * "value", "False" otherwise.
    • always_greater

      default boolean always_greater(int value)
      Returns whether the values of "this" are always greater than "value".

      MEOS Functions:

    • tint_ever_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are always greater than "value", * " `False`" otherwise.
    • ever_less

      default boolean ever_less(int value)
      Returns whether the values of `self` are ever less than "value".

      MEOS Functions:

    • tint_ever_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever less than "value", * "False" otherwise.
    • ever_less_or_equal

      default boolean ever_less_or_equal(int value)
      Returns whether the values of "this" are ever less than or equal to "value".

      MEOS Functions:

    • tint_ever_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever less than or equal to * "value", "False" otherwise.
    • ever_equal

      default boolean ever_equal(int value)
      Returns whether the values of "this" are ever equal to "value".

      MEOS Functions:

    • tint_ever_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever equal to "value", "False" * otherwise.
    • ever_not_equal

      default boolean ever_not_equal(int value)
      Returns whether the values of "this" are ever not equal to "value".

      MEOS Functions:

    • tint_always_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever not equal to "value", * "False" otherwise.
    • ever_greater_or_equal

      default boolean ever_greater_or_equal(int value)
      Returns whether the values of "this" are ever greater than or equal to "value".

      MEOS Functions:

    • tint_always_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever greater than or equal to * "value", "False" otherwise.
    • ever_greater

      default boolean ever_greater(int value)
      Returns whether the values of "this" are ever greater than "value".

      MEOS Functions:

    • tint_always_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are ever greater than "value", * "False" otherwise.
    • never_equal

      default boolean never_equal(int value)
      Returns whether the values of "this" are never equal to "value".

      MEOS Functions:

    • tint_ever_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are never equal to "value", * "False" otherwise.
    • never_not_equal

      default boolean never_not_equal(int value)
      Returns whether the values of "this" are never not equal to "value".

      MEOS Functions:

    • tint_always_eq
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are never not equal to "value", * "False" otherwise.
    • never_less

      default boolean never_less(int value)
      Returns whether the values of "this" are never less than "value".

      MEOS Functions:

    • tint_ever_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are never less than "value", * "False" otherwise.
    • never_less_or_equal

      default boolean never_less_or_equal(int value)
      Returns whether the values of "this" are never less than or equal to "value".

      MEOS Functions:

    • tint_ever_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are never less than or equal to * "value", "False" otherwise.
    • never_greater_or_equal

      default boolean never_greater_or_equal(int value)
      Returns whether the values of "this" are never greater than or equal to "value".

      MEOS Functions:

    • tint_always_lt
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this "are never greater than or equal to * "value", "False" otherwise.
    • never_greater

      default boolean never_greater(int value)
      Returns whether the values of "this" are never greater than "value".

      MEOS Functions:

    • tint_always_le
    • Parameters:
      value - Integer to compare.
      Returns:
      "True" if the values of "this" are never greater than "value", * "False" otherwise.
    • temporal_equal

      default Temporal temporal_equal(Object other)
      Returns the temporal equality relation between "this" and "other".

      MEOS Functions:

    • teq_tint_int
    • teq_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.
    • temporal_not_equal

      default Temporal temporal_not_equal(Integer other)
      Returns the temporal not equal relation between "this" and "other".

      MEOS Functions:

    • tne_tint_int
    • tne_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.
    • temporal_less

      default Temporal temporal_less(Integer other)
      Returns the temporal less than relation between "this" and "other".

      MEOS Functions:

    • tlt_tint_int
    • tlt_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.
    • temporal_less_or_equal

      default Temporal temporal_less_or_equal(Integer other)
      Returns the temporal less or equal relation between "this" and "other".

      MEOS Functions:

    • tle_tint_int
    • tle_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.
    • temporal_greater_or_equal

      default Temporal temporal_greater_or_equal(Integer other)
      Returns the temporal greater or equal relation between "this" and "other".

      MEOS Functions:

    • tge_tint_int
    • tge_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.
    • temporal_greater

      default Temporal temporal_greater(Integer other)
      Returns the temporal greater than relation between "this" and "other".

      MEOS Functions:

    • tgt_tint_int
    • tgt_temporal_temporal
    • Parameters:
      other - An Integer or temporal object to * compare to `self`.
      Returns:
      A Temporal with the result of the temporal equality relation.