Lucene.Net.Index.BaseIndexFileFormatTestCase.ExcludedExtensionsFromByteCounts C# (CSharp) Method

ExcludedExtensionsFromByteCounts() protected method

Return the list of extensions that should be excluded from byte counts when comparing indices that store the same content.
protected ExcludedExtensionsFromByteCounts ( ) : ICollection
return ICollection
        protected internal virtual ICollection<string> ExcludedExtensionsFromByteCounts()
        {
            return new HashSet<string>(Arrays.AsList(new string[] { "si", "lock" }));
            // segment infos store various pieces of information that don't solely depend
            // on the content of the index in the diagnostics (such as a timestamp) so we
            // exclude this file from the bytes counts
            // lock files are 0 bytes (one directory in the test could be RAMDir, the other FSDir)
        }