Package com.alibaba.graphscope.ds
Class Bitset_cxx_0x2967d1e0
- java.lang.Object
-
- com.alibaba.fastffi.FFIPointerImpl
-
- com.alibaba.graphscope.ds.Bitset_cxx_0x2967d1e0
-
- All Implemented Interfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,FFIType
,Bitset
,Serializable
public class Bitset_cxx_0x2967d1e0 extends FFIPointerImpl implements Bitset
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.graphscope.ds.Bitset
Bitset.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static int
HASH_SHIFT
static int
SIZE
-
Fields inherited from class com.alibaba.fastffi.FFIPointerImpl
address
-
-
Constructor Summary
Constructors Constructor Description Bitset_cxx_0x2967d1e0(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear this bitset.void
copy(Bitset other)
long
count()
The number of bits set to true.void
delete()
boolean
empty()
Check empty.boolean
equals(Object o)
long
get_word(long i)
Get the underlying representation word at index i.@com.alibaba.fastffi.FFINameAlias("get_bit") boolean
getBit(long i)
Get the flag at index i.int
hashCode()
void
init(long size)
Init the bitset with a initial size.static void
nativeClear(long ptr)
static void
nativeCopy(long ptr, long other0)
static long
nativeCount(long ptr)
static long
nativeCreateFactory0()
static void
nativeDelete(long ptr)
static boolean
nativeEmpty(long ptr)
static long
nativeGet_word(long ptr, long i0)
static @com.alibaba.fastffi.FFINameAlias("get_bit") boolean
nativeGetBit(long ptr, long i0)
static void
nativeInit(long ptr, long size0)
static long
nativePartial_count(long ptr, long begin0, long end1)
static @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean
nativePartialEmpty(long ptr, long begin0, long end1)
static void
nativeResetBit(long ptr, long i0)
static @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean
nativeResetBitWithRet(long ptr, long i0)
static void
nativeSetBit(long ptr, long i0)
static @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean
nativeSetBitWithRet(long ptr, long i0)
static void
nativeSwap(long ptr, long other0)
long
partial_count(long begin, long end)
The number of bits set to true, in a specified range@com.alibaba.fastffi.FFINameAlias("partial_empty") boolean
partialEmpty(long begin, long end)
Check empty or not in parallel.void
resetBit(long i)
Reset bit at index i.@com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean
resetBitWithRet(long i)
Reset with return value.void
setBit(long i)
Set the flag for index i to true@com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean
setBitWithRet(long i)
Set the bit at index i with returned result.void
swap(Bitset other)
Swap the underlying storage with another BitSetString
toString()
-
Methods inherited from class com.alibaba.fastffi.FFIPointerImpl
getAddress
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:Bitset
Clear this bitset.
-
nativeClear
public static void nativeClear(long ptr)
-
nativeCopy
public static void nativeCopy(long ptr, long other0)
-
count
public long count()
Description copied from interface:Bitset
The number of bits set to true.
-
nativeCount
public static long nativeCount(long ptr)
-
delete
public void delete()
- Specified by:
delete
in interfacecom.alibaba.fastffi.CXXPointer
-
nativeDelete
public static void nativeDelete(long ptr)
-
empty
public boolean empty()
Description copied from interface:Bitset
Check empty.
-
nativeEmpty
public static boolean nativeEmpty(long ptr)
-
getBit
public @com.alibaba.fastffi.FFINameAlias("get_bit") boolean getBit(long i)
Description copied from interface:Bitset
Get the flag at index i.
-
nativeGetBit
public static @com.alibaba.fastffi.FFINameAlias("get_bit") boolean nativeGetBit(long ptr, long i0)
-
get_word
public long get_word(long i)
Description copied from interface:Bitset
Get the underlying representation word at index i.
-
nativeGet_word
public static long nativeGet_word(long ptr, long i0)
-
init
public void init(long size)
Description copied from interface:Bitset
Init the bitset with a initial size.
-
nativeInit
public static void nativeInit(long ptr, long size0)
-
partialEmpty
public @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean partialEmpty(long begin, long end)
Description copied from interface:Bitset
Check empty or not in parallel.- Specified by:
partialEmpty
in interfaceBitset
- Parameters:
begin
- starting index.end
- ending index.- Returns:
- true if empty.
-
nativePartialEmpty
public static @com.alibaba.fastffi.FFINameAlias("partial_empty") boolean nativePartialEmpty(long ptr, long begin0, long end1)
-
partial_count
public long partial_count(long begin, long end)
Description copied from interface:Bitset
The number of bits set to true, in a specified range- Specified by:
partial_count
in interfaceBitset
- Parameters:
begin
- begin index.end
- end index.- Returns:
- the count value.
-
nativePartial_count
public static long nativePartial_count(long ptr, long begin0, long end1)
-
resetBit
public void resetBit(long i)
Description copied from interface:Bitset
Reset bit at index i.
-
nativeResetBit
public static void nativeResetBit(long ptr, long i0)
-
resetBitWithRet
public @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean resetBitWithRet(long i)
Description copied from interface:Bitset
Reset with return value.- Specified by:
resetBitWithRet
in interfaceBitset
- Parameters:
i
- index- Returns:
- return value.
-
nativeResetBitWithRet
public static @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") boolean nativeResetBitWithRet(long ptr, long i0)
-
setBit
public void setBit(long i)
Description copied from interface:Bitset
Set the flag for index i to true
-
nativeSetBit
public static void nativeSetBit(long ptr, long i0)
-
setBitWithRet
public @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean setBitWithRet(long i)
Description copied from interface:Bitset
Set the bit at index i with returned result.- Specified by:
setBitWithRet
in interfaceBitset
- Parameters:
i
- index- Returns:
- result
-
nativeSetBitWithRet
public static @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") boolean nativeSetBitWithRet(long ptr, long i0)
-
swap
public void swap(Bitset other)
Description copied from interface:Bitset
Swap the underlying storage with another BitSet
-
nativeSwap
public static void nativeSwap(long ptr, long other0)
-
nativeCreateFactory0
public static long nativeCreateFactory0()
-
-