private static bool CompareCompactionStrategyOptions(CompactionStrategyOptions lhs, CompactionStrategyOptions rhs)
        {
            if (lhs == null && rhs == null)
            {
                return(true);
            }
            if (lhs != null && rhs != null)
            {
                if (lhs.Enabled == false && rhs.Enabled == false)
                {
                    return(true);
                }

                return(lhs.Enabled == rhs.Enabled &&
                       lhs.MinThreshold == rhs.MinThreshold &&
                       lhs.MaxThreshold == rhs.MaxThreshold &&
                       lhs.SstableSizeInMb == rhs.SstableSizeInMb);
            }
            return(false);
        }
예제 #2
0
 public CompactionStrategy(CompactionStrategyType compactionStrategyType, CompactionStrategyOptions compactionStrategyOptions)
 {
     CompactionStrategyType    = compactionStrategyType;
     CompactionStrategyOptions = compactionStrategyOptions;
 }