Skip to content

Commit

Permalink
move CountedBitSet back to translog package
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn committed Dec 3, 2017
1 parent 0e6a31e commit 0df0474
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

package org.elasticsearch.common.util;
package org.elasticsearch.index.translog;

import org.apache.lucene.util.BitSet;
import org.apache.lucene.util.FixedBitSet;
Expand All @@ -27,7 +27,7 @@
* when all bits are set to reduce memory usage. This structure can work well for sequence numbers
* from translog as these numbers are likely to form contiguous ranges (eg. filling all bits).
*/
public final class CountedBitSet extends BitSet {
final class CountedBitSet extends BitSet {
private short onBits; // Number of bits are set.
private FixedBitSet bitset;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import com.carrotsearch.hppc.LongObjectHashMap;
import org.apache.lucene.util.BitSet;
import org.elasticsearch.common.util.CountedBitSet;
import org.elasticsearch.index.seqno.SequenceNumbers;

import java.io.Closeable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

package org.elasticsearch.common.util;
package org.elasticsearch.index.translog;

import org.apache.lucene.util.FixedBitSet;
import org.elasticsearch.test.ESTestCase;
Expand Down

0 comments on commit 0df0474

Please sign in to comment.