Class StoreFileMetaData

    • Method Detail

      • name

        public String name()
        Returns the name of this file
      • length

        public long length()
        the actual file size on "disk", if compressed, the compressed size
      • checksum

        public String checksum()
        Returns a string representation of the files checksum. Since Lucene 4.8 this is a CRC32 checksum written by lucene.
      • isSame

        public boolean isSame​(StoreFileMetaData other)
        Returns true iff the length and the checksums are the same. otherwise false
      • writtenBy

        public Version writtenBy()
        Returns the Lucene version this file has been written by or null if unknown
      • hash

        public BytesRef hash()
        Returns a variable length hash of the file represented by this metadata object. This can be the file itself if the file is small enough. If the length of the hash is 0 no hash value is available