|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectIndexLookupWSResource
org.gcube.indexmanagement.forwardindexlookup.ForwardIndexLookupResource
public class ForwardIndexLookupResource
Contain the resource instances. More precisely index information like type, format, name, modified date and so on.
| Field Summary | |
|---|---|
static java.lang.String |
RP_CONTENT_TYPE
|
static java.lang.String |
RP_KEY_COUNT
|
static java.lang.String |
RP_KEY_DESCRIPTION
|
| Constructor Summary | |
|---|---|
ForwardIndexLookupResource()
The ForwardIndexResource constructor. |
|
| Method Summary | |
|---|---|
void |
clearIndex()
|
java.lang.String |
getAll(java.lang.String keyName,
boolean bAscending,
ResultType resType)
Gets all key and value pairs. |
java.lang.String |
getContentType()
Getter method for the ContentType Resource Property |
int |
getCount(java.lang.String keyName)
|
java.lang.String |
getEQ(java.lang.String keyName,
java.lang.String key,
ResultType resType)
Gets the key and value pairs where keys are equal the input key. |
java.lang.String |
getGE(java.lang.String keyName,
java.lang.String key,
ResultType resType)
Gets the key and value pairs where keys are GE the input key |
java.lang.String |
getGEandLE(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
Gets the key and value pairs where keys are GE the input key1 and LE the input key2 |
java.lang.String |
getGEandLT(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
Gets the key and value pairs where keys are GE the input key1 and LT the input key2. |
java.lang.String |
getGT(java.lang.String keyName,
java.lang.String key,
ResultType resType)
Gets the key and value pairs where keys are GE the input key. |
java.lang.String |
getGTandLE(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
Gets the key and value pairs where keys are GT the input key1 and LE the input key2. |
java.lang.String |
getGTandLT(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
Gets the key and value pairs where keys are GT the input key1 and LT the input key2. |
KeyCountType[] |
getKeyCount()
Getter method for the KeyCount Resource Property |
KeyDescriptionType[] |
getKeyDescription()
Getter method for the KeyDescription Resource Property |
java.lang.String |
getLE(java.lang.String keyName,
java.lang.String key,
ResultType resType)
Gets the key and value pairs where keys are LE the input key. |
java.lang.String |
getLT(java.lang.String keyName,
java.lang.String key,
ResultType resType)
Gets the key and value pairs where keys are LT the input key. |
void |
mergeAddition(java.io.File deltaIndex,
java.lang.String cmsID,
int documentCount)
USED to UPDATE THE FORWARD INDEX. |
void |
mergeDeletion(java.io.File deletionFile,
java.lang.String fileID,
int documentCount)
FORWARD INDEX RECEIVES ALL UPDATES IN mergeAddition Merges the contents of a Deletion DeltaFile into the local index replication (delete documents). |
void |
onLoad(java.io.ObjectInputStream ois,
boolean firstLoad)
|
void |
onLookupNotificationReceived(org.w3c.dom.Element message)
|
void |
onResourceRemoval()
|
void |
onStore(java.io.ObjectOutputStream oos)
|
java.net.URI |
query(java.lang.String query)
Gets all key and value pairs that satisfy query's conditions. |
void |
setContentType(java.lang.String contentType)
Setter method for the ContentType Resource Property |
void |
setKeyCount(KeyCountType[] keyCount)
Setter method for the KeyCount Resource Property |
void |
setKeyDescription(KeyDescriptionType[] keyDescription)
Setter method for the KeyDescription 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_KEY_COUNT
public static final java.lang.String RP_CONTENT_TYPE
| Constructor Detail |
|---|
public ForwardIndexLookupResource()
| Method Detail |
|---|
public void onStore(java.io.ObjectOutputStream oos)
throws java.lang.Exception
java.lang.Exception
public void onLoad(java.io.ObjectInputStream ois,
boolean firstLoad)
throws java.lang.Exception
java.lang.Exceptionpublic void onResourceRemoval()
public java.lang.String getContentType()
String - the requested ContentType identifierpublic void setContentType(java.lang.String contentType)
contentType - String - the new ContentType identifierpublic KeyDescriptionType[] getKeyDescription()
KeyDescriptionType[] the KeyDscription of this Indexpublic KeyCountType[] getKeyCount()
KeyCountType[] the KeyCount of this Index
public void mergeAddition(java.io.File deltaIndex,
java.lang.String cmsID,
int documentCount)
throws IndexException
deltaIndex - File - the DeltaFile to be merged
into the local index replicationcmsID - String - the ID the retrieved file has in CMSdocumentCount - int - the document count
IndexException - - in case of failureorg.diligentproject.indexservice.storagehandling.DeltaFileMerger
public void mergeDeletion(java.io.File deletionFile,
java.lang.String fileID,
int documentCount)
throws IndexException
deletionFile - File -
the DeltaFile to be merged into the local index replicationfileID - String -
the ID the retrieved file has in StoragedocumentCount - int -
the number if documents present in the DeltaFile
IndexException - - in case of failure.org.diligentproject.indexservice.storagehandling.DeltaFileMerger
public void clearIndex()
throws IndexException
IndexException
public java.lang.String getEQ(java.lang.String keyName,
java.lang.String key,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.key - - the lookup key.resType - - determines the format of the results.
IndexException - in case of failure.
public java.lang.String getGE(java.lang.String keyName,
java.lang.String key,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.key - - the lookup key.resType - - determines the format of the results.
IndexException - in case of failure.
public java.lang.String getGT(java.lang.String keyName,
java.lang.String key,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.key - - the lookup key.resType - - determines the format of the results.
IndexException - in case of failure.
public java.lang.String getLE(java.lang.String keyName,
java.lang.String key,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.key - - the lookup key.resType - - determines the format of the results.
IndexException - in case of failure.
public java.lang.String getLT(java.lang.String keyName,
java.lang.String key,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.key - - the lookup key.resType - - determines the format of the results.
IndexException - in case of failure.
public java.lang.String getGEandLE(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.resType - - determines the format of the results.keyG- - the GE key.keyL- - the LE key.
IndexException - in case of failure.
public java.lang.String getGTandLE(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.resType - - determines the format of the results.keyGT- - the GT key.keyLE- - the LE key.
IndexException - in case of failure.
public java.lang.String getGEandLT(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.resType - - determines the format of the results.keyGE- - the GE key.keyLT- - the LT key.
IndexException - exception in case of failure.
public java.lang.String getGTandLT(java.lang.String keyName,
java.lang.String keyG,
java.lang.String keyL,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.resType - - determines the format of the results.keyGT- - the GT key.keyLT- - the LT key.
IndexException - in case of failure.
public java.lang.String getAll(java.lang.String keyName,
boolean bAscending,
ResultType resType)
throws IndexException
keyName - - the keyName to lookup.resType - - determines the format of the results.bAscending - - the ordering of the returned results.
IndexException - in case of failure.
public java.net.URI query(java.lang.String query)
throws IndexException,
GRS2WriterException
query - the query containing the conditions.
IndexException - in case of failure.
GRS2WriterExceptionpublic void setKeyDescription(KeyDescriptionType[] keyDescription)
keyDescription - KeyDescriptionType[] the new keyDescriptionpublic void setKeyCount(KeyCountType[] keyCount)
keyCount - KeyCountType[] the new keyCountpublic void onLookupNotificationReceived(org.w3c.dom.Element message)
public int getCount(java.lang.String keyName)
throws IndexException
IndexException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||