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
- Alphabetic
- By Inheritance
- JSONURLIterator
- LeafIterator
- QueryIterator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- JSONURLIterator → QueryIterator
-
def
all: List[List[(JSONObject, T)]]
gets all elements from this iterator
gets all elements from this iterator
- Definition Classes
- QueryIterator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
drop(n: Int): QueryIterator[List[(JSONObject, T)], String]
- Definition Classes
- QueryIterator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
- LeafIterator → QueryIterator
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getJSON: Option[JSONObject]
-
def
getLeaf: Option[((JSONObject, T), String)]
- Definition Classes
- JSONURLIterator → LeafIterator
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take(n: Int): List[List[(JSONObject, T)]]
take the next n elements
take the next n elements
- Definition Classes
- QueryIterator
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()