/** * @param newData the word * @deprecated use addWord() instead. */ @Deprecated public void add(final int newData) { addWord(newData); }
/** * Adding words directly to the bitmap (for expert use). * * This method adds bits in words of 4*8 bits. It is not to * be confused with the set method which sets individual bits. * * Most users will want the set method. * * Example: if you add word 321 to an empty bitmap, you are have * added (in binary notation) 0b101000001, so you have effectively * called set(0), set(6), set(8) in sequence. * * Since this modifies the bitmap, this method is not thread-safe. * * API change: prior to version 0.8.3, this method was called add. * * @param newData the word */ @Override public void addWord(final int newData) { addWord(newData, WORD_IN_BITS); }
/** * Adding words directly to the bitmap (for expert use). * * This method adds bits in words of 4*8 bits. It is not to * be confused with the set method which sets individual bits. * * Most users will want the set method. * * Example: if you add word 321 to an empty bitmap, you are have * added (in binary notation) 0b101000001, so you have effectively * called set(0), set(6), set(8) in sequence. * * Since this modifies the bitmap, this method is not thread-safe. * * API change: prior to version 0.8.3, this method was called add. * * @param newData the word */ @Override public void addWord(final int newData) { addWord(newData, WORD_IN_BITS); }
/** * @param newData the word * @param bitsThatMatter the number of significant bits (by default it should * be 64) * @deprecated use addWord() instead. */ @Deprecated public void add(final int newData, final int bitsThatMatter) { addWord(newData, bitsThatMatter); }
/** * @param newData the word * @param bitsThatMatter the number of significant bits (by default it should * be 64) * @deprecated use addWord() instead. */ @Deprecated public void add(final int newData, final int bitsThatMatter) { addWord(newData, bitsThatMatter); }
/** * @param newData the word * @deprecated use addWord() instead. */ @Deprecated public void add(final int newData) { addWord(newData); }
@Override public EWAHIterator32 next() { this.buffer.clear(); int effective = 0; Iterator<IteratingRLW32> i = this.ll.iterator(); while (i.hasNext()) { IteratingRLW32 rlw = i.next(); if (rlw.size() > 0) { int eff = IteratorAggregation32.inplaceor( this.hardBitmap, rlw); if (eff > effective) effective = eff; } else i.remove(); } for (int k = 0; k < effective; ++k) this.buffer.addWord(this.hardBitmap[k]); Arrays.fill(this.hardBitmap, 0); return this.buffer.getEWAHIterator(); } }
@Override public EWAHIterator32 next() { this.buffer.clear(); int effective = 0; Iterator<IteratingRLW32> i = this.ll.iterator(); while (i.hasNext()) { IteratingRLW32 rlw = i.next(); if (rlw.size() > 0) { int eff = IteratorAggregation32.inplacexor( this.hardbitmap, rlw); if (eff > effective) effective = eff; } else i.remove(); } for (int k = 0; k < effective; ++k) this.buffer.addWord(this.hardbitmap[k]); Arrays.fill(this.hardbitmap, 0); return this.buffer.getEWAHIterator(); } }
@Override public EWAHIterator32 next() { this.buffer.clear(); int effective = 0; Iterator<IteratingRLW32> i = this.ll.iterator(); while (i.hasNext()) { IteratingRLW32 rlw = i.next(); if (rlw.size() > 0) { int eff = IteratorAggregation32.inplaceor( this.hardBitmap, rlw); if (eff > effective) effective = eff; } else i.remove(); } for (int k = 0; k < effective; ++k) this.buffer.addWord(this.hardBitmap[k]); Arrays.fill(this.hardBitmap, 0); return this.buffer.getEWAHIterator(); } }
@Override public EWAHIterator32 next() { this.buffer.clear(); int effective = 0; Iterator<IteratingRLW32> i = this.ll.iterator(); while (i.hasNext()) { IteratingRLW32 rlw = i.next(); if (rlw.size() > 0) { int eff = IteratorAggregation32.inplacexor( this.hardbitmap, rlw); if (eff > effective) effective = eff; } else i.remove(); } for (int k = 0; k < effective; ++k) this.buffer.addWord(this.hardbitmap[k]); Arrays.fill(this.hardbitmap, 0); return this.buffer.getEWAHIterator(); } }
if (i.getRunningBit()) { int sw = w | (-1 << shift); answer.addWord(sw); w = -1 >>> (WORD_IN_BITS - shift); } else { answer.addWord(w); w = 0; int neww = i.getLiteralWordAt(k); int sw = w | (neww << shift); answer.addWord(sw); w = neww >>> (WORD_IN_BITS - shift); if(shiftextension) answer.addWord(w); break;
if (i.getRunningBit()) { int sw = w | (-1 << shift); answer.addWord(sw); w = -1 >>> (WORD_IN_BITS - shift); } else { answer.addWord(w); w = 0; int neww = i.getLiteralWordAt(k); int sw = w | (neww << shift); answer.addWord(sw); w = neww >>> (WORD_IN_BITS - shift); if(shiftextension) answer.addWord(w); break;