Class test

All Implemented Interfaces:
Base, Collection, Time, TimeCollection, TemporalObject

public class test extends Set<LocalDate> implements Time, TimeCollection
Class for representing lists of distinct timestamp values.
     ``tstzset`` objects can be created with a single argument of type string
     as in MobilityDB.

         >>> tstzset(string='{2019-09-08 00:00:00+01, 2019-09-10 00:00:00+01, 2019-09-11 00:00:00+01}')

     Another possibility is to give a tuple or list of composing timestamps,
     which can be instances of ``str`` or ``datetime``. The composing timestamps
     must be given in increasing order.

         >>> tstzset(timestamp_list=['2019-09-08 00:00:00+01', '2019-09-10 00:00:00+01', '2019-09-11 00:00:00+01'])
         >>> tstzset(timestamp_list=[parse('2019-09-08 00:00:00+01'), parse('2019-09-10 00:00:00+01'), parse('2019-09-11 00:00:00+01')])
 
Author:
Arijit Samal
  • Field Details

    • _inner

      private jnr.ffi.Pointer _inner
  • Constructor Details

    • test

      public test()
      The default constructor
    • test

      public test(jnr.ffi.Pointer _inner)
      Pointer constructor
      Parameters:
      _inner - Pointer
    • test

      public test(String value)
      The string constructor
      Parameters:
      value - - a string with a tstzset value
  • Method Details

    • createStringInner

      public jnr.ffi.Pointer createStringInner(String str)
      Specified by:
      createStringInner in class Set<LocalDate>
    • createInner

      public jnr.ffi.Pointer createInner(jnr.ffi.Pointer inner)
      Specified by:
      createInner in class Set<LocalDate>
    • from_hexwkb

      public static test from_hexwkb(String hexwkb)
      Returns a "tstzset" from its WKB representation in hex-encoded ASCII.

      MEOS Functions:

    • set_from_hexwkb
    • Parameters:
      hexwkb - WKB representation in hex-encoded ASCII
      Returns:
      a new tstzset instance
    • toString

      public String toString()
      Return the string representation of the content of "this".

      MEOS Functions:

    • set_out
    • Overrides:
      toString in class Object
      Returns:
      a new String instance
    • get_inner

      public jnr.ffi.Pointer get_inner()
      ------------------------- Accessors -------------------------------------
      Specified by:
      get_inner in class Set<LocalDate>
    • num_timestamps

      public int num_timestamps()
      Returns the number of timestamps in "this".

      MEOS Functions:

    • set_num_values
    • Returns:
      a new Integer instance
    • date_adt_to_date

      public LocalDate date_adt_to_date(int ts)
      Returns the first timestamp in "this".

      MEOS Functions:

    • timestampset_start_timestamp
    • Returns:
      a instance
    • start_element

      public LocalDate start_element() throws org.locationtech.jts.io.ParseException
      Description copied from class: Set
      Returns the first element in "this".
      Specified by:
      start_element in class Set<LocalDate>
      Returns:
      A Set instance
      Throws:
      org.locationtech.jts.io.ParseException
    • end_element

      public LocalDate end_element() throws org.locationtech.jts.io.ParseException
      Description copied from class: Set
      Returns the last element in "this".
      Specified by:
      end_element in class Set<LocalDate>
      Returns:
      A Set instance
      Throws:
      org.locationtech.jts.io.ParseException