Class ManualBitSet
java.lang.Object
org.apache.shardingsphere.data.pipeline.core.ingest.channel.memory.ManualBitSet
Manual BitSet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(long bitIndex) Clear expire BitSet.get(long fromIndex, long toIndex) Get BitSet with specified range.longgetEndIndex(long fromIndex, int size) Get end index.voidset(long bitIndex) Sets the bit at the specified index to true.
-
Constructor Details
-
ManualBitSet
public ManualBitSet()
-
-
Method Details
-
set
public void set(long bitIndex) Sets the bit at the specified index to true.- Parameters:
bitIndex- a bit index
-
get
Get BitSet with specified range.- Parameters:
fromIndex- from indextoIndex- to index- Returns:
- BitSet
-
getEndIndex
public long getEndIndex(long fromIndex, int size) Get end index.- Parameters:
fromIndex- from indexsize- true bit size- Returns:
- index
-
clear
public void clear(long bitIndex) Clear expire BitSet.- Parameters:
bitIndex- retain bit index
-