java.lang.Object |
↳ |
java.util.AbstractCollection<E> |
|
↳ |
org.mule.module.hbase.api.impl.PaginatedIterable<T, Page> |
Class Overview
Warning: this class is not a proper collection, just it implements it in order to
be compatible with some mule's collection splitting
Summary
Fields |
private
static
Logger |
logger |
|
Public Methods |
Iterator<T>
|
iterator()
|
int
|
size()
|
Object[]
|
toArray()
Hack for enabling collection splitter to work, which forces evaluation of
whole iterable.
|
String
|
toString()
Same impl that those found in Object, in order to avoid eager elements consumption
|
Protected Methods |
abstract
Page
|
firstPage()
Answers the first page of the paginated result
|
abstract
boolean
|
hasNextPage(Page page)
Answers if the given page is not the last one
|
abstract
Page
|
nextPage(Page currentPage)
Given a page, answers the next page
|
abstract
Iterator<T>
|
pageIterator(Page page)
Answers an iterator for the current page
|
[Expand]
Inherited Methods |
From class
java.util.AbstractCollection
boolean
|
add(E arg0)
|
boolean
|
addAll(Collection<? extends E> arg0)
|
void
|
clear()
|
boolean
|
contains(Object arg0)
|
boolean
|
containsAll(Collection<?> arg0)
|
boolean
|
isEmpty()
|
abstract
Iterator<E>
|
iterator()
|
boolean
|
remove(Object arg0)
|
boolean
|
removeAll(Collection<?> arg0)
|
boolean
|
retainAll(Collection<?> arg0)
|
abstract
int
|
size()
|
<T>
T[]
|
toArray(T[] arg0)
|
Object[]
|
toArray()
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Iterable
abstract
Iterator<T>
|
iterator()
|
|
From interface
java.util.Collection
abstract
boolean
|
add(E arg0)
|
abstract
boolean
|
addAll(Collection<? extends E> arg0)
|
abstract
void
|
clear()
|
abstract
boolean
|
contains(Object arg0)
|
abstract
boolean
|
containsAll(Collection<?> arg0)
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
boolean
|
isEmpty()
|
abstract
Iterator<E>
|
iterator()
|
abstract
boolean
|
remove(Object arg0)
|
abstract
boolean
|
removeAll(Collection<?> arg0)
|
abstract
boolean
|
retainAll(Collection<?> arg0)
|
abstract
int
|
size()
|
abstract
<T>
T[]
|
toArray(T[] arg0)
|
abstract
Object[]
|
toArray()
|
|
Fields
private
static
Logger
logger
Public Constructors
public
PaginatedIterable
()
Public Methods
public
Iterator<T>
iterator
()
public
Object[]
toArray
()
Hack for enabling collection splitter to work, which forces evaluation of
whole iterable. This will not work with huge lists, but there is no better
solution
public
String
toString
()
Same impl that those found in Object, in order to avoid eager elements consumption
Protected Methods
protected
abstract
Page
firstPage
()
Answers the first page of the paginated result
protected
abstract
boolean
hasNextPage
(Page page)
Answers if the given page is not the last one
Returns
- if current page is the last one or not
protected
abstract
Page
nextPage
(Page currentPage)
Given a page, answers the next page
protected
abstract
Iterator<T>
pageIterator
(Page page)
Answers an iterator for the current page