Package types.collections.time
Class test
- All Implemented Interfaces:
Base
,Collection
,Time
,TimeCollection
,TemporalObject
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjnr.ffi.Pointer
createInner
(jnr.ffi.Pointer inner) jnr.ffi.Pointer
createStringInner
(String str) date_adt_to_date
(int ts) Returns the first timestamp in "this".Returns the last element in "this".static test
from_hexwkb
(String hexwkb) Returns a "tstzset" from its WKB representation in hex-encoded ASCII.jnr.ffi.Pointer
------------------------- Accessors -------------------------------------int
Returns the number of timestamps in "this".Returns the first element in "this".toString()
Return the string representation of the content of "this".Methods inherited from class types.collections.base.Set
add, as_hexwkb, as_wkb, contains, copy, element_n, elements, eq, from_hexwkb, from_wkb, greaterThan, greaterThanOrEqual, hash, is_adjacent, is_contained_in, is_left, is_over_or_left, is_over_or_right, is_right, length, lessThan, lessThanOrEqual, mul, notEquals, num_elements, overlaps, rsub, sub, subtract_from, to_span, to_spanset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface types.collections.base.Collection
contains, is_contained_in, is_left, is_over_or_left, is_over_or_right, is_right, overlaps
Methods inherited from interface types.collections.time.TimeCollection
is_after, is_before, is_over_or_after, is_over_or_before
-
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
The string constructor- Parameters:
value
- - a string with a tstzset value
-
-
Method Details
-
createStringInner
- Specified by:
createStringInner
in classSet<LocalDate>
-
createInner
public jnr.ffi.Pointer createInner(jnr.ffi.Pointer inner) - Specified by:
createInner
in classSet<LocalDate>
-
from_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
Return the string representation of the content of "this".MEOS Functions:
- set_out
-
get_inner
public jnr.ffi.Pointer get_inner()------------------------- Accessors ------------------------------------- -
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
Returns the first timestamp in "this".MEOS Functions:
- timestampset_start_timestamp
- Returns:
- a
instance
-
start_element
Description copied from class:Set
Returns the first element in "this".- Specified by:
start_element
in classSet<LocalDate>
- Returns:
- A
Set
instance - Throws:
org.locationtech.jts.io.ParseException
-
end_element
Description copied from class:Set
Returns the last element in "this".- Specified by:
end_element
in classSet<LocalDate>
- Returns:
- A
Set
instance - Throws:
org.locationtech.jts.io.ParseException
-