|
||||||||||
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,
String handle)
|
|
IndexQueueEntry(int type,
String handle,
Date creationDate)
|
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object o)
|
Date |
getCreationDate()
The date at which this index entry was created. |
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. |
String |
getTypeAsString()
|
int |
hashCode()
|
void |
setCreationDate(Date creationDate)
|
void |
setHandle(String handle)
|
void |
setId(long id)
|
void |
setType(int type)
|
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, String handle)
public IndexQueueEntry(int type, String handle, Date creationDate)
Method Detail |
---|
public long getId()
public void setId(long id)
public int getType()
ADD
,
DELETE
public void setType(int type)
public Date getCreationDate()
public void setCreationDate(Date creationDate)
public String getHandle()
public void setHandle(String handle)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String getTypeAsString()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |