Class SpanSet<T>

java.lang.Object
types.collections.base.SpanSet<T>
All Implemented Interfaces:
Base, Collection, TemporalObject
Direct Known Subclasses:
datespanset, FloatSpanSet, IntSpanSet, tstzspanset

public abstract class SpanSet<T> extends Object implements Collection, Base
Abstract class that represents a set of span of temporal object
Author:
ARIJIT SAMAL
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private jnr.ffi.Pointer
     
    private static final Map<Class<?>,Long>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ------------------------- Constructor -----------------------------------
     
    SpanSet(jnr.ffi.Pointer inner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    add(Base other)
     
    Returns the WKB representation in hex-encoded ASCII.
    jnr.ffi.Pointer
    Returns the WKB representation
    boolean
    contains(Base other)
    Returns whether "this" contains "other".
    jnr.ffi.Pointer
    Returns the copy of a span
    abstract jnr.ffi.Pointer
    createInner(jnr.ffi.Pointer inner)
     
    abstract jnr.ffi.Pointer
     
    private void
    distance(Base other)
    Returns the distance between "this" and "other".
    end_span(Class<T> end_span)
    Returns the last span in "this".
    boolean
    eq(Base other)
    Return whether "this" and "other" are equal.
    static <T> T
    from_hexwkb(String hexwkb, Class<T> spansetType)
    Returns a `TsTzSpan` from its WKB representation in hex-encoded ASCII.
    <T> T
    from_wkb(jnr.ffi.Pointer wkb, long size, Class<T> spansetType)
    Returns a `TsTzSpan` from its WKB representation.
    abstract jnr.ffi.Pointer
     
    private long
    getPointerSize(Class<?> spanType)
     
    boolean
    Return whether "this" is greater than "other".
    boolean
    Return whether "this" is greater than or equal to "other".
    long
    Return the hash representation of "this".
    protected Base
    Returns the intersection of "this" and "other".
    boolean
    Returns whether "this" is adjacent to "other".
    boolean
    Returns whether "this" is contained in "other".
    boolean
    is_left(Base other)
    Returns whether "this" is strictly to the left of "other".
    boolean
    Returns whether "this" is to the left of "other" allowing overlap.
    boolean
    Returns whether "this" is to the right of "other" allowing overlap.
    boolean
    is_right(Base other)
    Returns whether "this" is strictly after "other".
    boolean
    is_same(Base other)
    Returns whether the bounding span of "this" is the same as the bounding span of "other".
    boolean
    lessThan(Base other)
    Return whether "this" is less than "other".
    boolean
    Return whether "this" is less than or equal to "other".
    protected Base
    minus(Base other)
    Returns the temporal difference of ``self`` and ``other``.
    mul(Base other)
     
    boolean
    notEquals(Base other)
    Return whether "this" and "other" are not equal.
    int
    Returns the number of spans in "this".
    boolean
    overlaps(Base other)
    Returns whether "this" overlaps "other".
    span_n(Class<T> span_n, int n)
    Returns the n-th span in "this".
    <T> List<T>
    spans(Class<T> spanType)
    Returns the list of tstzspans in ``this``.
    start_span(Class<T> start_span)
     
    sub(Base other)
     
    <T> T
    to_span(Class<T> spansetType)
    Returns a tstzspan set containing span
    protected Base
    union(Base other)
    Returns the temporal union of "this" and "other".

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait