|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.page.PotentialDuplicatePageAdapter
Given a list of PotentialDuplicateSummaries, adapt the result for use within page iterator framework. FieldsToRetrieve parameter is read from options and is used to construct query object to get data as needed. Once data is retrieved it remains in memory. Future optimization may include unloading some of the data to conserve resources.
Constructor Summary | |
PotentialDuplicatePageAdapter(java.util.ArrayList list,
PotentialDuplicateSearchObject options)
Creates a new instance of PotentialDuplicatePageAdapter |
Method Summary | |
void |
activate()
See PageAdapter |
void |
close()
See PageAdapter |
int |
count()
See PageAdapter |
boolean |
hasNext()
See PageAdapter |
void |
idleTimeOut()
See PageAdapter |
java.lang.Object |
next()
See PageAdapter |
void |
passivate()
See PageAdapter |
java.lang.Object |
prev()
See PageAdapter |
void |
setCurrentPosition(int index)
See PageAdapter |
void |
setReadForwardOnly(boolean forwardOnly)
Set the forward only mode that will clear all the DataPage objects of of a given loaded page i when we start reading/loading the next page i+1. |
void |
sort(java.util.Comparator c)
See PageAdapter |
void |
sortSummary(java.util.Comparator c)
See PageAdapter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PotentialDuplicatePageAdapter(java.util.ArrayList list, PotentialDuplicateSearchObject options) throws PageException
options
- Search optionslist
- list of potential duplicate summaries
PageException
- An error occured.Method Detail |
public void activate()
activate
in interface PageAdapter
public void close()
close
in interface PageAdapter
public int count() throws PageException
count
in interface PageAdapter
PageException
- See PageAdapterpublic boolean hasNext()
hasNext
in interface PageAdapter
public void idleTimeOut()
idleTimeOut
in interface PageAdapter
public java.lang.Object next() throws PageException
next
in interface PageAdapter
PageException
- See PageAdapterpublic void passivate()
passivate
in interface PageAdapter
public java.lang.Object prev() throws PageException
prev
in interface PageAdapter
PageException
- See PageAdapterpublic void setCurrentPosition(int index) throws PageException
setCurrentPosition
in interface PageAdapter
index
- See PageAdapter
PageException
- See PageAdapterpublic void setReadForwardOnly(boolean forwardOnly) throws PageException
setReadForwardOnly
in interface PageAdapter
forwardOnly
- the
PageException
- An error occured.public void sort(java.util.Comparator c) throws PageException
sort
in interface PageAdapter
c
- See PageAdapter
PageException
- See PageAdapterpublic void sortSummary(java.util.Comparator c) throws PageException
sortSummary
in interface PageAdapter
c
- See PageAdapter
PageException
- See PageAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.