Class MetaStateService


  • public class MetaStateService
    extends java.lang.Object
    Handles writing and loading both MetaData and IndexMetaData
    • Method Detail

      • loadIndexState

        @Nullable
        public IndexMetaData loadIndexState​(Index index)
                                     throws java.io.IOException
        Loads the index state for the provided index name, returning null if doesn't exists.
        Throws:
        java.io.IOException
      • writeIndex

        public void writeIndex​(java.lang.String reason,
                               IndexMetaData indexMetaData)
                        throws java.io.IOException
        Writes the index state. This method is public for testing purposes.
        Throws:
        java.io.IOException