Interface TText

All Known Implementing Classes:
TTextInst, TTextSeq, TTextSeqSet

public interface TText
Class that represents the MobilityDB type TText used for TTextInst, TTextSeq and TTextSeqSet
Author:
ARIJIT SAMAL
  • Field Details

  • Method Details

    • getTextInner

      jnr.ffi.Pointer getTextInner()
    • getCustomType

      String getCustomType()
    • getTemporalType

      TemporalType getTemporalType()
    • from_base_temporal

      static TText from_base_temporal(String value, Temporal base)
      Create a temporal string from a string value and the time frame of another temporal object.

      MEOS Functions:

    • ttext_from_base_temp
    • Parameters:
      value - String value.
      base - Temporal object to use as time frame.
      Returns:
      A new TText object.
    • from_base_time

      static Temporal from_base_time(String value, Time base)
      Create a temporal string from a string value and a time object.

      MEOS Functions:

      • ttextinst_make
      • ttextseq_from_base_tstzspanset
      • ttextseq_from_base_tstzset
      • ttextseqset_from_base_tstzspan
      Parameters:
      value - String value.
      base - Time object to use as temporal dimension.
      Returns:
      A new temporal boolean.
    • from_mfjson

      default TText from_mfjson(String mfjson)
      Returns a temporal object from a MF-JSON string. Args: mfjson: The MF-JSON string. Returns: A temporal object from a MF-JSON string. MEOS Functions: ttext_from_mfjson
    • to_string

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

      MEOS Function:

    • ttext_out
    • Returns:
      Returns the string representation of "this"
    • as_wkt

      default String as_wkt()
      Returns the Well-Known Text representation of "this".

      MEOS Function:

    • ttext_out
    • Returns:
      A string with the Well-Known Text representation of "this".
    • value_set

      default Set<String> value_set()
      Returns the set of unique values of the temporal string. Returns: A set of unique values. MEOS Functions: ttext_values
    • min_value

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

      MEOS Functions:

    • ttext_min_value
    • Returns:
      A String with the minimum value.
    • max_value

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

      MEOS Functions:

    • ttext_max_value
    • Returns:
      A String with the maximum value.
    • start_value

      default String start_value()
      Returns the starting value of "this". MEOS Function:
    • ttext_start_value
    • Returns:
      Returns the starting value of "this".
    • end_value

      default String end_value()
      Returns the ending value of "this". MEOS Function:
    • ttext_end_value
    • Returns:
      Returns the ending value of "this".
    • upper

      default TText upper()
      Returns a new temporal string with the values of `self` converted to upper case. Returns: A new temporal string. MEOS Functions: ttext_upper
    • lower

      default TText lower()
      Returns a new temporal string with the values of `self` converted to lower case. Returns: A new temporal string. MEOS Functions: ttext_lower
    • value_at_timestamp

      default String value_at_timestamp(LocalDateTime ts)
      Returns the value that `self` takes at a certain moment. Args: timestamp: The moment to get the value. Returns: A string with the value of `self` at `timestamp`. MEOS Functions: ttext_value_at_timestamp
    • always_equal

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

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

    • ttext_always_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are always less than or equal to "value".

      MEOS Functions:

    • ttext_always_le
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are always greater than or equal to "value".

      MEOS Functions:

    • ttext_ever_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are always greater than "value".

      MEOS Functions:

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

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

      MEOS Functions:

    • ttext_ever_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are ever less than or equal to "value".

      MEOS Functions:

    • ttext_ever_le
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are ever equal to "value".

      MEOS Functions:

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

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

      MEOS Functions:

    • ttext_always_eq
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are ever greater than or equal to "value".

      MEOS Functions:

    • ttext_always_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are ever greater than "value".

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

    • ttext_ever_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are never less than or equal to "value".

      MEOS Functions:

    • ttext_ever_le
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are never greater than or equal to "value".

      MEOS Functions:

    • ttext_always_lt
    • Parameters:
      value - String 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(String value)
      Returns whether the values of "this" are never greater than "value".

      MEOS Functions:

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

      default Temporal temporal_equal_string(String other)
      Returns the temporal equality relation between "this" and "other".

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

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

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

      MEOS Functions:

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

      private jnr.ffi.Pointer createPointerFromString(String str)
      Returns a new temporal string with the values of `self` restricted to the time or value `other`. Args: other: Time or value to restrict to. Returns: A new temporal string. MEOS Functions: ttext_at_value, temporal_at_timestamp, temporal_at_tstzset, temporal_at_tstzspan, temporal_at_tstzspanset
    • at

      default TText at(Object other) throws Exception
      Throws:
      Exception
    • minus

      default TText minus(Object other) throws Exception
      Returns a new temporal string with the values of `self` restricted to the complement of the time or value `other`. Args: other: Time or value to restrict to the complement of. Returns: A new temporal string. MEOS Functions: ttext_minus_value, temporal_minus_timestamp, temporal_minus_tstzset, temporal_minus_tstzspan, temporal_minus_tstzspanset
      Throws:
      Exception
    • concatenate

      default TText concatenate(Object other, boolean other_before) throws Exception
      Returns a new temporal string with the values of `self` concatenated with the values of `other`. Args: other: Temporal string or string to concatenate. other_before: If `True` the values of `other` are prepended to the values of `self`. Returns: A new temporal string. MEOS Functions: textcat_ttext_text, textcat_text_ttext, textcat_ttext_ttext
      Throws:
      Exception
    • _add

      default TText _add(Object other) throws Exception
      Returns a new temporal string with the values of `self` concatenated with the values of `other`. Args: other: Temporal string or string to concatenate. Returns: A new temporal string. MEOS Functions: textcat_ttext_text, textcat_text_ttext, textcat_ttext_ttext
      Throws:
      Exception
    • _radd

      default TText _radd(Object other) throws Exception
      Returns a new temporal string with the values of `other` concatenated with the values of `self`. Args: other: Temporal string or string to concatenate. Returns: A new temporal string. MEOS Functions: textcat_ttext_text, textcat_text_ttext, textcat_ttext_ttext
      Throws:
      Exception