Skip to content

Commit 0df0474

Browse files
committed
move CountedBitSet back to translog package
1 parent 0e6a31e commit 0df0474

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

core/src/main/java/org/elasticsearch/common/util/CountedBitSet.java renamed to core/src/main/java/org/elasticsearch/index/translog/CountedBitSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
package org.elasticsearch.common.util;
20+
package org.elasticsearch.index.translog;
2121

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

core/src/main/java/org/elasticsearch/index/translog/MultiSnapshot.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import com.carrotsearch.hppc.LongObjectHashMap;
2323
import org.apache.lucene.util.BitSet;
24-
import org.elasticsearch.common.util.CountedBitSet;
2524
import org.elasticsearch.index.seqno.SequenceNumbers;
2625

2726
import java.io.Closeable;

core/src/test/java/org/elasticsearch/common/util/CountedBitSetTests.java renamed to core/src/test/java/org/elasticsearch/index/translog/CountedBitSetTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
package org.elasticsearch.common.util;
20+
package org.elasticsearch.index.translog;
2121

2222
import org.apache.lucene.util.FixedBitSet;
2323
import org.elasticsearch.test.ESTestCase;

0 commit comments

Comments
 (0)