Examples of ImmutableConciseSet


Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

   */
  private final ImmutableConciseSet invertedIndex;

  public WrappedImmutableConciseBitmap(ByteBuffer byteBuffer)
  {
    this.invertedIndex = new ImmutableConciseSet(byteBuffer.asReadOnlyBuffer());
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

  @Override
  public ImmutableGenericBitmap union(ImmutableGenericBitmap bitmap)
  {
    WrappedImmutableConciseBitmap other = (WrappedImmutableConciseBitmap) bitmap;
    ImmutableConciseSet otherIndex = other.invertedIndex;
    return new WrappedImmutableConciseBitmap(ImmutableConciseSet.union(invertedIndex, otherIndex));
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

  @Override
  public ImmutableGenericBitmap intersection(ImmutableGenericBitmap bitmap)
  {
    WrappedImmutableConciseBitmap other = (WrappedImmutableConciseBitmap) bitmap;
    ImmutableConciseSet otherIndex = other.invertedIndex;
    return new WrappedImmutableConciseBitmap(ImmutableConciseSet.intersection(invertedIndex, otherIndex));
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

  @Override
  public ImmutableGenericBitmap difference(ImmutableGenericBitmap bitmap)
  {
    WrappedImmutableConciseBitmap other = (WrappedImmutableConciseBitmap) bitmap;
    ImmutableConciseSet otherIndex = other.invertedIndex;
    return new WrappedImmutableConciseBitmap(
        ImmutableConciseSet.intersection(
            invertedIndex,
            ImmutableConciseSet.complement(otherIndex)
        )
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

    final byte[] bytes = concise.toBytes();
    totalConciseBytes += bytes.length;
    conciseCount++;
    final ByteBuffer buf = ByteBuffer.allocateDirect(bytes.length).put(bytes);
    buf.rewind();
    return new ImmutableConciseSet(buf);
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

  }

  @Test @BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
  public void timeConciseUnion() throws Exception
  {
    ImmutableConciseSet union = ImmutableConciseSet.union(concise);
    Assert.assertEquals(unionCount, union.size());
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

  }

  @Test @BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
  public void timeOffheapConciseUnion() throws Exception
  {
    ImmutableConciseSet union = ImmutableConciseSet.union(offheapConcise);
    Assert.assertEquals(unionCount, union.size());
  }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

    @Override
    public WrappedImmutableConciseBitmap fromByteBuffer(ByteBuffer buffer, int numBytes)
    {
      final ByteBuffer readOnlyBuffer = buffer.asReadOnlyBuffer();
      readOnlyBuffer.limit(readOnlyBuffer.position() + numBytes);
      return new WrappedImmutableConciseBitmap(new ImmutableConciseSet(readOnlyBuffer));
    }
View Full Code Here

Examples of it.uniroma3.mat.extendedset.intset.ImmutableConciseSet

    ConciseSet mutableSet = new ConciseSet();
    for (int val : vals) {
      mutableSet.add(val);
    }

    ImmutableConciseSet set = ImmutableConciseSet.newImmutableFromMutable(mutableSet);

    BitmapOffset offset = new BitmapOffset(new ConciseBitmapFactory(), new WrappedImmutableConciseBitmap(set));

    int count = 0;
    while (offset.withinBounds()) {
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.