public class

IndexQueueEntry

extends Object
implements Cloneable
java.lang.Object
   ↳ bucket.search.persistence.IndexQueueEntry

Class Overview

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.

Summary

Constants
int ADD
int DELETE
int UPDATE
Public Constructors
IndexQueueEntry()
IndexQueueEntry(int type)
IndexQueueEntry(int type, String handle)
IndexQueueEntry(int type, String handle, Date creationDate)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ADD

Constant Value: 1 (0x00000001)

public static final int DELETE

Constant Value: 2 (0x00000002)

public static final int UPDATE

Constant Value: 3 (0x00000003)

Public Constructors

public IndexQueueEntry ()

public IndexQueueEntry (int type)

public IndexQueueEntry (int type, String handle)

public IndexQueueEntry (int type, String handle, Date creationDate)

Public Methods

public Object clone ()

public boolean equals (Object o)

public Date getCreationDate ()

The date at which this index entry was created.

public String getHandle ()

A readable description of the object represented by this index queue entry. The description will be used to provide meaningful feedback to the user.

public long getId ()

The unique id of this index queue entry in the database.

public int getType ()

The type of indexing action represented by this index queue entry.

See Also

public String getTypeAsString ()

public int hashCode ()

public void setCreationDate (Date creationDate)

public void setHandle (String handle)

public void setId (long id)

public void setType (int type)

public String toString ()

A simple tostring implementation that returns the data contained by this queue entry.

Returns
  • a debug string.