Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for cardinality (0.09 sec)

  1. docs/distributed/DESIGN.md

    ```go
    // hashes the key returning an integer.
    func sipHashMod(key string, cardinality int, id [16]byte) int {
            if cardinality <= 0 {
                    return -1
            }
            sip := siphash.New(id[:])
            sip.Write([]byte(key))
            return int(sip.Sum64() % uint64(cardinality))
    }
    ```
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/LruHashSet.java

         */
        @Override
        public Iterator<E> iterator() {
            return map.keySet().iterator();
        }
    
        /**
         * Returns the number of elements in this set (its cardinality).
         *
         * @return the number of elements in this set (its cardinality).
         */
        @Override
        public int size() {
            return map.size();
        }
    
        /**
         * Returns true if this set contains no elements.
         *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. cmd/erasure-metadata-utils.go

    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. cmd/erasure-healing-common.go

    	for _, etag := range etags {
    		if etag == "" {
    			continue
    		}
    		etagOccurrenceMap[etag]++
    	}
    
    	maxima = 0 // Counter for remembering max occurrence of elements.
    	latest := ""
    
    	// Find the common cardinality from previously collected
    	// occurrences of elements.
    	for etag, count := range etagOccurrenceMap {
    		if count < maxima {
    			continue
    		}
    
    		// We are at or above maxima
    		if count > maxima {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. cmd/erasure-sets.go

    	if cardinality <= 0 {
    		return -1
    	}
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    	return int(keyCrc % uint32(cardinality))
    }
    
    func hashKey(algo string, key string, cardinality int, id [16]byte) int {
    	switch algo {
    	case formatErasureVersionV2DistributionAlgoV1:
    		return crcHashMod(key, cardinality)
    	case formatErasureVersionV3DistributionAlgoV2, formatErasureVersionV3DistributionAlgoV3:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  6. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

    import org.opensearch.search.aggregations.bucket.histogram.Histogram;
    import org.opensearch.search.aggregations.bucket.terms.Terms;
    import org.opensearch.search.aggregations.metrics.Avg;
    import org.opensearch.search.aggregations.metrics.Cardinality;
    
    import jakarta.annotation.Resource;
    
    public class SearchLogService {
    
        private static final String YYYY_MM_DD_HH_MM = "yyyy-MM-dd HH:mm";
    
        private static final String COUNT = "count";
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractConditionAggregation.java

            regA(builder);
            return builder;
        }
    
        protected CardinalityAggregationBuilder regCardinalityA(String name, String field) {
            CardinalityAggregationBuilder builder = AggregationBuilders.cardinality(name).field(field);
            regA(builder);
            return builder;
        }
    
        protected ValueCountAggregationBuilder regCountA(String name, String field) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractConditionAggregation.java

            regA(builder);
            return builder;
        }
    
        protected CardinalityAggregationBuilder regCardinalityA(String name, String field) {
            CardinalityAggregationBuilder builder = AggregationBuilders.cardinality(name).field(field);
            regA(builder);
            return builder;
        }
    
        protected ValueCountAggregationBuilder regCountA(String name, String field) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractConditionAggregation.java

            regA(builder);
            return builder;
        }
    
        protected CardinalityAggregationBuilder regCardinalityA(String name, String field) {
            CardinalityAggregationBuilder builder = AggregationBuilders.cardinality(name).field(field);
            regA(builder);
            return builder;
        }
    
        protected ValueCountAggregationBuilder regCountA(String name, String field) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       */
      protected final void expectContents(E... elements) {
        expectContents(asList(elements));
      }
    
      /**
       * Asserts that the collection under test contains exactly the given elements, respecting
       * cardinality but not order. Subclasses may override this method to provide stronger assertions,
       * e.g., to check ordering in lists, but realize that <strong>unless a test extends {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top