Class FloatSet
- All Implemented Interfaces:
Base,Collection,Number,TemporalObject
"TextSet" objects can be created with a single argument of type string as in MobilityDB.
>>> FloatSet(string='{1, 3, 56}')
Another possibility is to create a "TextSet" object from a list of strings or floats.
>>> FloatSet(elements=[1, '2', 3, '56'])
- Author:
- ARIJIT SAMAL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether "this" contains "content".jnr.ffi.PointercreateInner(jnr.ffi.Pointer inner) jnr.ffi.PointercreateStringInner(String str) float/** Returns the distance between "this" and "other".element_n(int n) Returns the "n"-th element in "this".elements()Returns the last element in "this".jnr.ffi.Pointer------------------------- Accessors -------------------------------------intersection(Object other) Returns the intersection of "this" and "other".booleanReturns whether "this" is strictly to the left of "other".booleanis_over_or_left(Object other) Returns whether "this" is to the left of "other" allowing overlap.booleanis_over_or_right(Object other) Returns whether "this" is to the right of "other" allowing overlap.booleanReturns whether "this" is strictly to the right of "other".Returns the difference of "this" and "other".scale(float new_width) Returns a new "FloatSet" instance with all elements scaled to so that the encompassing span has width "new_width".shift(float delta) Returns a new "FloatSet" instance with all elements shifted by "delta".shift_scale(float delta, float new_width) Returns a new "FloatSet" instance with all elements shifted by "delta" and scaled to so that the encompassing span has width "new_width".Returns the first element in "this".jnr.ffi.Pointersubtract_from(float other) Returns the difference of "other" and "this".to_span()Returns a span that encompasses "this".Returns a SpanSet that contains a Span for each element in "this".toString(int max_decimals) Return the string representation of the content of "this".Returns the union of "this" and "other".Methods inherited from class types.collections.base.Set
add, as_hexwkb, 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 final jnr.ffi.Pointer _inner
-
-
Constructor Details
-
FloatSet
public FloatSet(jnr.ffi.Pointer inner) -
FloatSet
-
-
Method Details
-
createStringInner
- Specified by:
createStringInnerin classSet<Float>
-
createInner
public jnr.ffi.Pointer createInner(jnr.ffi.Pointer inner) - Specified by:
createInnerin classSet<Float>
-
toString
Return the string representation of the content of "this".MEOS Functions:
- floatset_out
- Parameters:
max_decimals- number of maximum decimals- Returns:
- A new
Stringinstance
-
to_spanset
Returns a SpanSet that contains a Span for each element in "this".MEOS Functions:
- set_to_spanset
- Returns:
- A new
FloatSpanSetinstance
-
to_span
Returns a span that encompasses "this".MEOS Functions:
- set_span
- Returns:
- A new
FloatSpaninstance
-
to_intset
-
get_inner
public jnr.ffi.Pointer get_inner()------------------------- Accessors ------------------------------------- -
start_element
Returns the first element in "this".MEOS Functions:
- floatset_start_value
- Specified by:
start_elementin classSet<Float>- Returns:
- A
Floatinstance
-
end_element
Returns the last element in "this".MEOS Functions:
- floatset_end_value
- Specified by:
end_elementin classSet<Float>- Returns:
- A
Floatinstance
-
element_n
Returns the "n"-th element in "this".MEOS Functions:
- floatset_value_n
-
elements
-
shift
Returns a new "FloatSet" instance with all elements shifted by "delta".MEOS Functions:
- floatset_shift_scale
- Parameters:
delta- The value to shift by.- Returns:
- A new
FloatSetinstance
-
scale
Returns a new "FloatSet" instance with all elements scaled to so that the encompassing span has width "new_width".MEOS Functions:
- floatset_shift_scale
- Parameters:
new_width- The new width.- Returns:
- A new
FloatSetinstance
-
shift_scale
Returns a new "FloatSet" instance with all elements shifted by "delta" and scaled to so that the encompassing span has width "new_width".MEOS Functions: floatset_shift_scale
- Parameters:
delta- The value to shift by.new_width- The new width.- Returns:
- A new
FloatSetinstance
-
contains
Returns whether "this" contains "content".MEOS Functions:
- contains_set_set
- contains_floatset_float
- Parameters:
other- object to compare with- Returns:
- True if contains, False otherwise
- Throws:
Exception
-
is_left
Returns whether "this" is strictly to the left of "other". That is, "this" ends before "other" starts.MEOS Functions:
- left_set_set
- left_floatset_float
- Parameters:
other- object to compare with- Returns:
- True if left, False otherwise
- Throws:
Exception
-
is_over_or_left
Returns whether "this" is to the left of "other" allowing overlap. That is, "this" ends before "other" ends (or at the same value).MEOS Functions:
- overleft_set_set
- overleft_floatset_float
- Parameters:
other- object to compare with- Returns:
- True if is over or left, False otherwise
- Throws:
Exception
-
is_right
Returns whether "this" is strictly to the right of "other". That is, "this" ends after "other" starts.MEOS Functions:
- right_set_set
- right_floatset_float
- Parameters:
other- object to compare with- Returns:
- True if right, False otherwise
- Throws:
Exception
-
is_over_or_right
Returns whether "this" is to the right of "other" allowing overlap. That is, "this" starts before "other" ends (or at the same value).MEOS Functions:
- overright_set_set
- overright_floatset_float
- Parameters:
other- object to compare with- Returns:
- True if is over or right, False otherwise
- Throws:
Exception
-
intersection
Returns the intersection of "this" and "other".MEOS Functions:
- intersection_set_set
- intersection_floatset_float
-
minus
Returns the difference of "this" and "other".MEOS Functions:
- minus_set_set
- minus_floatset_float
-
subtract_from
public jnr.ffi.Pointer subtract_from(float other) Returns the difference of "other" and "this".MEOS Functions:
- minus_float_floatset
-
union
Returns the union of "this" and "other".MEOS Functions:
- union_set_set
- union_floatset_float
-
distance
/** Returns the distance between "this" and "other".MEOS functions:
- distance_floatset_float
- Parameters:
other- object to compare with- Returns:
- A float value
- Throws:
Exception
-