Enum OnlineIndexer.IndexStatePrecondition

    • Enum Constant Detail

      • BUILD_IF_DISABLED_CONTINUE_BUILD_IF_WRITE_ONLY

        public static final OnlineIndexer.IndexStatePrecondition BUILD_IF_DISABLED_CONTINUE_BUILD_IF_WRITE_ONLY
        Build if the index is disabled; Continue build if the index is write-only.

        Recommended. This should be sufficient if current index data is not corrupted.

      • BUILD_IF_DISABLED_REBUILD_IF_WRITE_ONLY

        public static final OnlineIndexer.IndexStatePrecondition BUILD_IF_DISABLED_REBUILD_IF_WRITE_ONLY
        Build if the index is disabled; Rebuild if the index is write-only.
      • ERROR_IF_DISABLED_CONTINUE_IF_WRITE_ONLY

        public static final OnlineIndexer.IndexStatePrecondition ERROR_IF_DISABLED_CONTINUE_IF_WRITE_ONLY
        Error if the index is disabled, or continue to build if the index is write only. To use this option to build an index, one should mark the index as write-only and clear existing index entries before building. This option is provided to make OnlineIndexer.buildIndexAsync() (or its variations) behave same as what it did before version 2.8.90.0, which is not recommended. BUILD_IF_DISABLED_CONTINUE_BUILD_IF_WRITE_ONLY should be adopted instead.
    • Method Detail

      • values

        public static OnlineIndexer.IndexStatePrecondition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OnlineIndexer.IndexStatePrecondition c : OnlineIndexer.IndexStatePrecondition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OnlineIndexer.IndexStatePrecondition valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isContinueIfWriteOnly

        public boolean isContinueIfWriteOnly()