|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bucket.search.persistence.IndexQueueEntry
public class IndexQueueEntry
An entry in the index queue that represents an indexing task that needs to be performed. The currently supported tasks are: a) add b) delete This entry element contains enough information to uniquely identify the searchable object that it works on.
Field Summary | |
---|---|
static int |
ADD
|
static int |
DELETE
|
static int |
UPDATE
|
Constructor Summary | |
---|---|
IndexQueueEntry()
|
|
IndexQueueEntry(int type)
|
|
IndexQueueEntry(int type,
java.lang.String handle)
|
|
IndexQueueEntry(int type,
java.lang.String handle,
java.util.Date creationDate)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.util.Date |
getCreationDate()
The date at which this index entry was created. |
java.lang.String |
getHandle()
A readable description of the object represented by this index queue entry. |
long |
getId()
The unique id of this index queue entry in the database. |
int |
getType()
The type of indexing action represented by this index queue entry. |
java.lang.String |
getTypeAsString()
|
int |
hashCode()
|
void |
setCreationDate(java.util.Date creationDate)
|
void |
setHandle(java.lang.String handle)
|
void |
setId(long id)
|
void |
setType(int type)
|
java.lang.String |
toString()
A simple tostring implementation that returns the data contained by this queue entry. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADD
public static final int DELETE
public static final int UPDATE
Constructor Detail |
---|
public IndexQueueEntry()
public IndexQueueEntry(int type)
public IndexQueueEntry(int type, java.lang.String handle)
public IndexQueueEntry(int type, java.lang.String handle, java.util.Date creationDate)
Method Detail |
---|
public long getId()
public void setId(long id)
public int getType()
ADD
,
DELETE
public void setType(int type)
public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
public java.lang.String getHandle()
public void setHandle(java.lang.String handle)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getTypeAsString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |