Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LockFreeBitArray (0.35 sec)

  1. android/guava-tests/test/com/google/common/hash/PackageSanityTests.java

    import com.google.common.hash.BloomFilterStrategies.LockFreeBitArray;
    import com.google.common.testing.AbstractPackageSanityTests;
    
    /**
     * Basic sanity tests for the entire package.
     *
     * @author Ben Yu
     */
    
    public class PackageSanityTests extends AbstractPackageSanityTests {
      public PackageSanityTests() {
        setDefault(LockFreeBitArray.class, new LockFreeBitArray(1));
        setDefault(HashCode.class, HashCode.fromInt(1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 15:56:47 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/BloomFilterStrategies.java

        }
    
        @Override
        public boolean equals(@CheckForNull Object o) {
          if (o instanceof LockFreeBitArray) {
            LockFreeBitArray lockFreeBitArray = (LockFreeBitArray) o;
            // TODO(lowasser): avoid allocation here
            return Arrays.equals(toPlainArray(data), toPlainArray(lockFreeBitArray.data));
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

        final Strategy strategy;
    
        SerialForm(BloomFilter<T> bf) {
          this.data = LockFreeBitArray.toPlainArray(bf.bits.data);
          this.numHashFunctions = bf.numHashFunctions;
          this.funnel = bf.funnel;
          this.strategy = bf.strategy;
        }
    
        Object readResolve() {
          return new BloomFilter<T>(new LockFreeBitArray(data), numHashFunctions, funnel, strategy);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/BloomFilterTest.java

      @AndroidIncompatible // OutOfMemoryError
      public void testLargeBloomFilterDoesntOverflow() {
        long numBits = Integer.MAX_VALUE;
        numBits++;
    
        LockFreeBitArray bitArray = new LockFreeBitArray(numBits);
        assertTrue(
            "BitArray.bitSize() must return a positive number, but was " + bitArray.bitSize(),
            bitArray.bitSize() > 0);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top