Examples of toLongArray()


Examples of it.unimi.dsi.fastutil.longs.LongList.toLongArray()

      if (i == 2) {
        continue;
      }
      uidsToDelete.add(UID_BASE + i);
      if (i %1000 == 0) {
        compositeActivityValues.delete(uidsToDelete.toLongArray());
        uidsToDelete.clear();
      }
    }
    compositeActivityValues.flush();
    compositeActivityValues.delete(uidsToDelete.toLongArray());
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongList.toLongArray()

        compositeActivityValues.delete(uidsToDelete.toLongArray());
        uidsToDelete.clear();
      }
    }
    compositeActivityValues.flush();
    compositeActivityValues.delete(uidsToDelete.toLongArray());
    compositeActivityValues.flush();
    int notDeletedIndex = compositeActivityValues.uidToArrayIndex.get(UID_BASE + 2);
    final CompositeActivityValues testActivityData = compositeActivityValues;   
    Wait.until(10000L, "", new Wait.Condition() {     
      public boolean evaluate() {
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongOpenHashSet.toLongArray()

    for (int i=0;i<count;++i){
      do { id = rand.nextInt(); } while(id == ZoieIndexReader.DELETED_UID || uidset.contains(id));
      uidset.add(id);
    }

    long[] uidArray = uidset.toLongArray();

    long[] even = new long[uidArray.length/2];
    int[] ans = new int[even.length];
    for (int i=0;i<even.length;++i){
      even[i]=uidArray[i*2];
 
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongOpenHashSet.toLongArray()

        id = rand.nextInt();
      } while (id == ZoieSegmentReader.DELETED_UID || uidset.contains(id));
      uidset.add(id);
    }

    long[] uidArray = uidset.toLongArray();

    final long[] even = new long[uidArray.length / 2];
    int[] ans = new int[even.length];
    for (int i = 0; i < even.length; ++i) {
      even[i] = uidArray[i * 2];
 
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongSortedSet.toLongArray()

        assertThat(LongIterators.unwrap(set.iterator(2)),
                   equalTo(new long[]{7, 42, 639}));
        assertThat(LongIterators.unwrap(set.iterator(7)),
                   equalTo(new long[]{42, 639}));
        assertThat(set.headSet(42), hasSize(2));
        assertThat(set.toLongArray(),
                   equalTo(new long[]{2, 7, 42, 639}));
    }

    @Test
    public void testMaskLast() {
View Full Code Here

Examples of java.util.BitSet.toLongArray()

                    && computedHashes < k; split++) {
                int from = split * filterSize;
                int to = (split + 1) * filterSize;
                BitSet hashSlice = hashed.get(from, to);
                // Bitset to Int
                long[] longHash = hashSlice.toLongArray();
                int intHash = longHash.length > 0 ? (int) longHash[0] : 0;
                // Only use the position if it's in [0,size); Called rejection sampling
                if (intHash < m) {
                    positions[computedHashes] = intHash;
                    computedHashes++;
View Full Code Here

Examples of java.util.BitSet.toLongArray()

                    && calHashes < numberofHashes; split++) {
                int start = split * filterSize;
                int end = (split + 1) * filterSize;
                BitSet hashSlice = hashed.get(start, end);

                long[] longHash = hashSlice.toLongArray();
                int intHash = longHash.length > 0 ? (int) longHash[0] : 0;

                if (intHash < maxValue) {
                    indicies[calHashes] = intHash;
                    calHashes++;
View Full Code Here

Examples of stallone.doubles.fastutils.LongArrayList.toLongArray()

            scanEnd(currentLineNumber);

            lineOffsets.trim();

        // determine line offsets
        lineStartOffsets = lineOffsets.toLongArray();
        relevantLines = lineStartOffsets.length;
       
        scanned = true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.