Packages

c

info.kwarc.mmt.odk.LMFDB

JSONURLIterator

class JSONURLIterator[T] extends LeafIterator[(JSONObject, T), String]

A query iterator retrieving results from a pagination JSON API

T

Type of extra data

Source
QueryIterator.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONURLIterator
  2. LeafIterator
  3. QueryIterator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JSONURLIterator(url: String, extra: T, label_key: String, data_key: String = "data", next_key: String = "next")

    url

    Initial url to retrieve results from

    extra

    extra data to be passed along with this JSONURLIterator

    label_key

    Key of (string) label used to identifiy curves

    data_key

    Key to find data items under

    next_key

    Key to find next url under

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def >(left: String, right: String): Boolean

    an order on the labels, returns if left > right

    an order on the labels, returns if left > right

    Definition Classes
    JSONURLIteratorQueryIterator
  5. def all: List[List[(JSONObject, T)]]

    gets all elements from this iterator

    gets all elements from this iterator

    Definition Classes
    QueryIterator
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def drop(n: Int): QueryIterator[List[(JSONObject, T)], String]
    Definition Classes
    QueryIterator
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get: Option[(List[(JSONObject, T)], String)]

    Gets the next element and its label from this QueryIterator, or None if there is no such element

    Gets the next element and its label from this QueryIterator, or None if there is no such element

    Definition Classes
    QueryIterator
  13. def getActual: Option[(List[(JSONObject, T)], String)]

    function to receive the next element along with it's label from the underlying implementation.

    function to receive the next element along with it's label from the underlying implementation.

    Assumption: getActual returns the results in order of labels

    Definition Classes
    LeafIteratorQueryIterator
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getJSON: Option[JSONObject]
  16. def getLeaf: Option[((JSONObject, T), String)]
    Definition Classes
    JSONURLIteratorLeafIterator
  17. def getNext: Option[List[(JSONObject, T)]]

    Gets the next data item (without label) from the result

    Gets the next data item (without label) from the result

    Definition Classes
    QueryIterator
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def slice(from: Int, to: Int): List[List[(JSONObject, T)]]

    takes a given slice from this query iterator

    takes a given slice from this query iterator

    Definition Classes
    QueryIterator
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def take(n: Int): List[List[(JSONObject, T)]]

    take the next n elements

    take the next n elements

    Definition Classes
    QueryIterator
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def unget(e: (List[(JSONObject, T)], String)): Unit

    ungets an element, i.e.

    ungets an element, i.e. adds it to the pushback

    Definition Classes
    QueryIterator
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from LeafIterator[(JSONObject, T), String]

Inherited from QueryIterator[List[(JSONObject, T)], String]

Inherited from AnyRef

Inherited from Any

Ungrouped