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 intHASH_SHIFTstatic intSIZE-
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 voidclear()Clear this bitset.voidcopy(Bitset other)longcount()The number of bits set to true.voiddelete()booleanempty()Check empty.booleanequals(Object o)longget_word(long i)Get the underlying representation word at index i.@com.alibaba.fastffi.FFINameAlias("get_bit") booleangetBit(long i)Get the flag at index i.inthashCode()voidinit(long size)Init the bitset with a initial size.static voidnativeClear(long ptr)static voidnativeCopy(long ptr, long other0)static longnativeCount(long ptr)static longnativeCreateFactory0()static voidnativeDelete(long ptr)static booleannativeEmpty(long ptr)static longnativeGet_word(long ptr, long i0)static @com.alibaba.fastffi.FFINameAlias("get_bit") booleannativeGetBit(long ptr, long i0)static voidnativeInit(long ptr, long size0)static longnativePartial_count(long ptr, long begin0, long end1)static @com.alibaba.fastffi.FFINameAlias("partial_empty") booleannativePartialEmpty(long ptr, long begin0, long end1)static voidnativeResetBit(long ptr, long i0)static @com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") booleannativeResetBitWithRet(long ptr, long i0)static voidnativeSetBit(long ptr, long i0)static @com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") booleannativeSetBitWithRet(long ptr, long i0)static voidnativeSwap(long ptr, long other0)longpartial_count(long begin, long end)The number of bits set to true, in a specified range@com.alibaba.fastffi.FFINameAlias("partial_empty") booleanpartialEmpty(long begin, long end)Check empty or not in parallel.voidresetBit(long i)Reset bit at index i.@com.alibaba.fastffi.FFINameAlias("reset_bit_with_ret") booleanresetBitWithRet(long i)Reset with return value.voidsetBit(long i)Set the flag for index i to true@com.alibaba.fastffi.FFINameAlias("set_bit_with_ret") booleansetBitWithRet(long i)Set the bit at index i with returned result.voidswap(Bitset other)Swap the underlying storage with another BitSetStringtoString()-
Methods inherited from class com.alibaba.fastffi.FFIPointerImpl
getAddress
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:BitsetClear 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:BitsetThe number of bits set to true.
-
nativeCount
public static long nativeCount(long ptr)
-
delete
public void delete()
- Specified by:
deletein interfacecom.alibaba.fastffi.CXXPointer
-
nativeDelete
public static void nativeDelete(long ptr)
-
empty
public boolean empty()
Description copied from interface:BitsetCheck empty.
-
nativeEmpty
public static boolean nativeEmpty(long ptr)
-
getBit
public @com.alibaba.fastffi.FFINameAlias("get_bit") boolean getBit(long i)Description copied from interface:BitsetGet 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:BitsetGet 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:BitsetInit 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:BitsetCheck empty or not in parallel.- Specified by:
partialEmptyin 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:BitsetThe number of bits set to true, in a specified range- Specified by:
partial_countin 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:BitsetReset 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:BitsetReset with return value.- Specified by:
resetBitWithRetin 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:BitsetSet 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:BitsetSet the bit at index i with returned result.- Specified by:
setBitWithRetin 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:BitsetSwap the underlying storage with another BitSet
-
nativeSwap
public static void nativeSwap(long ptr, long other0)
-
nativeCreateFactory0
public static long nativeCreateFactory0()
-
-