@Test public void toBytes() { assertArrayEquals(RangeBitmap.of(1, 3).toBytes(), ByteBuffer.allocate(9).order(ByteOrder.LITTLE_ENDIAN) .put(BitMapType.RANGE.getHead()).putInt(1).putInt(3).array()); }
@Override public byte[] toBytes() { return ByteBuffer.allocate(9) .order(ByteOrder.LITTLE_ENDIAN) .put(getType().getHead()) .putInt(start).putInt(end).array(); }
RangeBitmap extends AbstractBitMap { @Override public byte[] toBytes() { return ByteBuffer.allocate(9) .order(ByteOrder.LITTLE_ENDIAN) .put(getType().getHead()) .putInt(start).putInt(end).array(); } }
RangeBitmap extends AbstractBitMap { @Override public byte[] toBytes() { return ByteBuffer.allocate(9) .order(ByteOrder.LITTLE_ENDIAN) .put(getType().getHead()) .putInt(start).putInt(end).array(); } RangeBitmap(int start, int end); }
RangeBitmap extends AbstractBitMap { @Override public byte[] toBytes() { return ByteBuffer.allocate(9) .order(ByteOrder.LITTLE_ENDIAN) .put(getType().getHead()) .putInt(start).putInt(end).array(); } RangeBitmap(int start, int end); static ImmutableBitMap of(int start, int end); @Override ImmutableBitMap getAnd(ImmutableBitMap index); @Override ImmutableBitMap getOr(ImmutableBitMap index); @Override ImmutableBitMap getAndNot(ImmutableBitMap index); @Override ImmutableBitMap getNot(int bound); @Override boolean contains(int index); @Override ImmutableBitMap clone(); @Override BitMapType getType(); @Override byte[] toBytes(); @Override void writeBytes(OutputStream output); @Override void traversal(TraversalAction action); @Override boolean breakableTraversal(BreakTraversalAction action); @Override int getCardinality(); @Override String toString(); @Override IntIterator intIterator(); }
RangeBitmap extends AbstractBitMap { @Override public byte[] toBytes() { return ByteBuffer.allocate(9) .order(ByteOrder.LITTLE_ENDIAN) .put(getType().getHead()) .putInt(start).putInt(end).array(); } RangeBitmap(int start, int end); static ImmutableBitMap of(int start, int end); @Override ImmutableBitMap getAnd(ImmutableBitMap index); @Override ImmutableBitMap getOr(ImmutableBitMap index); @Override ImmutableBitMap getAndNot(ImmutableBitMap index); @Override ImmutableBitMap getNot(int bound); @Override boolean contains(int index); @Override ImmutableBitMap clone(); @Override BitMapType getType(); @Override byte[] toBytes(); @Override void writeBytes(OutputStream output); @Override void traversal(TraversalAction action); @Override boolean breakableTraversal(BreakTraversalAction action); @Override int getCardinality(); @Override String toString(); @Override IntIterator intIterator();  }