public class Optimize extends AbstractIndexMessage
The specifics of an optimize is left up to the underlying data storage system. In general an optimize should put the storage system in a state that is most efficient for future work. Note that an optimize does not specify if future queries or future indexing are favored for efficiency.
| Modifier and Type | Class and Description |
|---|---|
static class |
Optimize.BackgroundMode
BackgroundMode specifies if optimize will block ingestion of documents while running.
|
static class |
Optimize.OptimizeMode
Mode for determining how the index will be optimized.
|
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH| Constructor and Description |
|---|
Optimize()
The default constructor
|
Optimize(UUID cid,
String... workflows)
Constructor with a client ID and workflows.
|
Optimize(UUID cid,
WorkflowQueue workflows)
Constructor with a client ID and a workflow queue.
|
| Modifier and Type | Method and Description |
|---|---|
Optimize |
clone()
Clones the object and resets message ID to -1.
|
boolean |
equals(Object other) |
Optimize.BackgroundMode |
getBackgroundMode()
Get the
Optimize.BackgroundMode for this message. |
Optimize.OptimizeMode |
getMode()
Get the optimization mode.
|
List<String> |
getZones()
Expert: Get the list of zones to commit as part of this message.
|
int |
hashCode() |
boolean |
isCommit()
Get if this optimize message will commit outstanding documents.
|
void |
setBackgroundMode(Optimize.BackgroundMode value)
Set the
Optimize.BackgroundMode for this message. |
void |
setCommit(boolean value)
Set if this optimize message should commit outstanding documents.
|
void |
setMode(Optimize.OptimizeMode value)
Set the optimization mode.
|
void |
setZones(List<String> value)
Expert: Set the list of zones to commit as part of this message.
|
void |
setZones(String... value)
Expert: Set the list of zones to commit as part of this message.
|
addMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getWorkflowQueue, getWorkflowQueue, hasProperty, isRedelivered, removeProperty, removeWorkflowQueue, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddMessageHistory, addMessageHistory, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageStringpublic Optimize()
public Optimize(UUID cid, String... workflows)
cid - the client IDworkflows - the workflowspublic Optimize(UUID cid, WorkflowQueue workflows)
cid - the client IDworkflows - the workflow queuepublic Optimize.OptimizeMode getMode()
public void setMode(Optimize.OptimizeMode value)
public Optimize.BackgroundMode getBackgroundMode()
Optimize.BackgroundMode for this message.public void setBackgroundMode(Optimize.BackgroundMode value)
Optimize.BackgroundMode for this message.public boolean isCommit()
public void setCommit(boolean value)
public List<String> getZones()
If null or empty, then all zones will be committed.
public void setZones(List<String> value)
If null or empty, then all zones will be committed.
public void setZones(String... value)
If null or empty, then all zones will be committed.
public int hashCode()
hashCode in class AbstractPlatformMessagepublic boolean equals(Object other)
equals in class AbstractPlatformMessagepublic Optimize clone()
clone in interface PlatformMessageclone in interface IndexMessageclone in class AbstractIndexMessageCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.