org.apache.lucene.index

Class IndexFormatTooNewException

    • Constructor Detail

      • IndexFormatTooNewException

        public IndexFormatTooNewException(String resourceDescription,
                                          int version,
                                          int minVersion,
                                          int maxVersion)
        Creates an IndexFormatTooNewException
        Parameters:
        resourceDescription - describes the file that was too new
        version - the version of the file that was too new
        minVersion - the minimum version accepted
        maxVersion - the maximum version accepted
      • IndexFormatTooNewException

        public IndexFormatTooNewException(DataInput in,
                                          int version,
                                          int minVersion,
                                          int maxVersion)
        Creates an IndexFormatTooNewException
        Parameters:
        in - the open file that's too new
        version - the version of the file that was too new
        minVersion - the minimum version accepted
        maxVersion - the maximum version accepted
    • Method Detail

      • getVersion

        public int getVersion()
        Returns the version of the file that was too new
      • getMaxVersion

        public int getMaxVersion()
        Returns the maximum version accepted
      • getMinVersion

        public int getMinVersion()
        Returns the minimum version accepted