|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIndexUpdaterWSResource
org.gcube.indexmanagement.forwardindexupdater.ForwardIndexUpdaterResource
public class ForwardIndexUpdaterResource
Contain the resource instances. More presisely index information like type, format, name, modified date and so on.
Field Summary | |
---|---|
static java.lang.String |
RP_COMMITED_DOC_COUNT
|
static java.lang.String |
RP_CONTENT_TYPE
|
static java.lang.String |
RP_KEY_DESCRIPTION
|
static java.lang.String |
RP_MERGED_DOC_COUNT
|
static java.lang.String |
RP_NOT_COMMITED_DOC_COUNT
|
Constructor Summary | |
---|---|
ForwardIndexUpdaterResource()
The ForwardIndexResource constructor. |
Method Summary | |
---|---|
void |
closeCurrentDeltaFile()
Closing the current delta, and opens a new delta file |
void |
commit()
Commit the current update, making the changes candidates for being merged into the main index. |
void |
deletePair(int key)
Delete a tuple stored in the database. |
void |
finishCurrentUpdate()
Close the current update, committing and merging the changes. |
int |
getCommitedDocCount()
Getter method for the CommitedDocCount Resource Property |
org.gcube.indexmanagement.forwardindexupdater.stubs.KeyDescriptionType[] |
getKeyDescription()
Getter method for the KeyDescription Resource Property |
int |
getMergedDocCount()
Getter method for the MergedDocCount Resource Property |
int |
getNotCommitedDocCount()
Getter method for the NotCommitedDocCount Resource Property |
void |
insertPair(int key,
int value)
Insert a key and value pair in the database. |
boolean |
isDeltaComplete()
|
void |
onResourceRemoval()
|
void |
onUpdaterNotificationReceived(org.w3c.dom.Element arg0)
|
void |
process(java.lang.String rowset)
Process the keys and values from a row set. |
ProcessResultSetResponse |
processResultSet(java.lang.String resultSet)
Process the keys and values from a row set received in the result set |
void |
selfDestruct()
Schedules the destruction of this resource, allowing for unfinished merges to complete. |
void |
sendMerge()
Force a merge of the commited updates to the main index. |
void |
setCommitedDocCount(int commitedDocCount)
Setter method for the CommitedDocCount Resource Property |
void |
setContentType(java.lang.String contentType)
Sets the index content type |
void |
setKeyDescription(org.gcube.indexmanagement.forwardindexupdater.stubs.KeyDescriptionType[] keyDescription)
Setter method for the KeyDescription Resource Property |
void |
setMergedDocCount(int mergedDocCount)
Setter method for the MergedDocCount Resource Property |
void |
setNotCommitedDocCount(int notCommitedDocCount)
Setter method for the NotCommitedDocCount Resource Property |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RP_KEY_DESCRIPTION
public static final java.lang.String RP_NOT_COMMITED_DOC_COUNT
public static final java.lang.String RP_COMMITED_DOC_COUNT
public static final java.lang.String RP_MERGED_DOC_COUNT
public static final java.lang.String RP_CONTENT_TYPE
Constructor Detail |
---|
public ForwardIndexUpdaterResource()
Method Detail |
---|
public void onResourceRemoval()
public int getNotCommitedDocCount()
int
the number of documents which have not been commited.public int getCommitedDocCount()
int
the number of documents which have been commited but not merged.public int getMergedDocCount()
int
the number of documents which have been merged into the main index.public org.gcube.indexmanagement.forwardindexupdater.stubs.KeyDescriptionType[] getKeyDescription()
KeyDescriptionType[]
the KeyDscription of this Indexpublic void setKeyDescription(org.gcube.indexmanagement.forwardindexupdater.stubs.KeyDescriptionType[] keyDescription)
keyDescription
- KeyDescriptionType[]
the new keyDescriptionpublic void setContentType(java.lang.String contentType)
contentType
- the content typepublic void setNotCommitedDocCount(int notCommitedDocCount)
notCommitedDocCount
- int
the new number of
documents which have not been commitedpublic void setCommitedDocCount(int commitedDocCount)
commitedDocCount
- int
the new number of
documents which have been commited but not merged.public void setMergedDocCount(int mergedDocCount)
mergedDocCount
- int
the new number of
documents which have been merged with the main indexpublic void deletePair(int key) throws IndexException
key
- to delete.
IndexException
- in case of failure.public void insertPair(int key, int value) throws IndexException
key
- - The key int
to insertvalue
- - The value int
to insert
IndexException
- in case of failure.public void process(java.lang.String rowset) throws IndexException
rowset
- - the row set that contains the keys.
IndexException
- in case of failure.public ProcessResultSetResponse processResultSet(java.lang.String resultSet) throws java.rmi.RemoteException
resultSet
- - The a string String
representing
the resultSet EPS
java.rmi.RemoteException
- in case of failure.public void selfDestruct() throws IndexException
IndexException
- - in case of failure.public void finishCurrentUpdate() throws IndexException
IndexException
public void commit()
public void sendMerge()
public void closeCurrentDeltaFile() throws java.lang.Exception
java.lang.Exception
- - In case of a failure during the close.public boolean isDeltaComplete()
public void onUpdaterNotificationReceived(org.w3c.dom.Element arg0)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |