Package types.collections.text
Class TextSet
- All Implemented Interfaces:
Base
,Collection
,TemporalObject
Class for representing a set of text values.
"TextSet" objects can be created with a single argument of type string as in MobilityDB.
>>> TextSet(string='{a, b, c, def}')
Another possibility is to create a ``TextSet`` object from a list of strings.
>>> TextSet(elements=['a', 'b', 'c', 'def'])
- Author:
- ARIJIT SAMAL
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the WKB representation in hex-encoded ASCII.boolean
Returns whether "this" contains "content".jnr.ffi.Pointer
createInner
(jnr.ffi.Pointer inner) jnr.ffi.Pointer
createStringInner
(String str) element_n
(int n) Returns the "n"-th element in "this".Returns the last element in "this".jnr.ffi.Pointer
------------------------- Accessors -------------------------------------intersection
(TextSet ts) Returns the intersection of "this" and "other".Returns a new textset that is the result of appling uppercase to "this"Returns the difference of "this" and "other".Returns the first element in "this".toString()
Return the string representation of the content of ``self``.Returns the union of "this" and "other".Returns a new textset that is the result of appling uppercase to "this"Methods inherited from class types.collections.base.Set
add, as_wkb, contains, copy, 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
-
Field Details
-
_inner
private jnr.ffi.Pointer _inner
-
-
Constructor Details
-
TextSet
public TextSet()------------------------- Constructors ---------------------------------- -
TextSet
-
TextSet
public TextSet(jnr.ffi.Pointer inner)
-
-
Method Details
-
createStringInner
- Specified by:
createStringInner
in classSet<String>
-
createInner
public jnr.ffi.Pointer createInner(jnr.ffi.Pointer inner) - Specified by:
createInner
in classSet<String>
-
as_hexwkb
Description copied from class:Set
Returns the WKB representation in hex-encoded ASCII. -
toString
Return the string representation of the content of ``self``.MEOS Functions:
- textset_out
-
get_inner
public jnr.ffi.Pointer get_inner()------------------------- Accessors ------------------------------------- -
start_element
Returns the first element in "this".MEOS Functions:
- textset_start_value
- Specified by:
start_element
in classSet<String>
- Returns:
- A
String
instance
-
end_element
Returns the last element in "this".MEOS Functions:
- textset_end_value
- Specified by:
end_element
in classSet<String>
- Returns:
- A
String
instance
-
element_n
Returns the "n"-th element in "this".MEOS Functions:
- textset_value_n
-
contains
Returns whether "this" contains "content".MEOS Functions:
- contains_set_set
- contains_textset_text
- Parameters:
other
- object to compare with- Returns:
- True if contains, False otherwise
- Throws:
Exception
-
lowercase
Returns a new textset that is the result of appling uppercase to "this"MEOS Functions:
- textset_lower
- Returns:
- A new
TextSet
instance
-
uppercase
Returns a new textset that is the result of appling uppercase to "this"MEOS Functions:
- textset_upper
- Returns:
- A new
TextSet
instance
-
intersection
Returns the intersection of "this" and "other".MEOS Functions:
- intersection_textset_text
- intersection_set_set
-
minus
Returns the difference of "this" and "other".MEOS Functions:
- minus_textset_text
- minus_set_set
-
union
Returns the union of "this" and "other".MEOS Functions:
- union_textset_text
- union_set_set
- Parameters:
other
- A :class:`TextSet` or :class:`str` instance- Returns:
- A :class:`TextSet` instance.
-