Class Optimize

  • All Implemented Interfaces:
    PlatformMessage, IndexMessage, java.io.Serializable, java.lang.Cloneable

    public class Optimize
    extends AbstractIndexMessage
    Represents an 'optimize' index message.

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • Optimize

        public Optimize()
        The default constructor
      • Optimize

        public Optimize​(java.util.UUID cid,
                        java.lang.String... workflows)
        Constructor with a client ID and workflows.
        Parameters:
        cid - the client ID
        workflows - the workflows
      • Optimize

        public Optimize​(java.util.UUID cid,
                        WorkflowQueue workflows)
        Constructor with a client ID and a workflow queue.
        Parameters:
        cid - the client ID
        workflows - the workflow queue
    • Method Detail

      • isCommit

        public boolean isCommit()
        Get if this optimize message will commit outstanding documents.
      • setCommit

        public void setCommit​(boolean value)
        Set if this optimize message should commit outstanding documents.
      • getZones

        public java.util.List<java.lang.String> getZones()
        Expert: Get the list of zones to commit as part of this message.

        If null or empty, then all zones will be committed.

      • setZones

        public void setZones​(java.util.List<java.lang.String> value)
        Expert: Set the list of zones to commit as part of this message.

        If null or empty, then all zones will be committed.

      • setZones

        public void setZones​(java.lang.String... value)
        Expert: Set the list of zones to commit as part of this message.

        If null or empty, then all zones will be committed.