Package com.alibaba.graphscope.utils
Class AtomicDoubleArrayWrapper
- java.lang.Object
-
- com.alibaba.graphscope.utils.AtomicDoubleArrayWrapper
-
public class AtomicDoubleArrayWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description AtomicDoubleArrayWrapper()
AtomicDoubleArrayWrapper(int s)
AtomicDoubleArrayWrapper(int s, double defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
compareAndSet(int ind, double newValue)
void
compareAndSetMin(int ind, double newValue)
void
compareAndSetMin(long ind, double newValue)
void
compareAndSetMin(Vertex<Long> vertex, double newValue)
double
get(int ind)
double
get(long ind)
double
get(Vertex<Long> vertex)
int
getSize()
void
set(double newValue)
void
set(int ind, double newValue)
void
set(long ind, double newValue)
void
set(Vertex<Long> vertex, double newValue)
-
-
-
Method Detail
-
get
public double get(int ind)
-
get
public double get(long ind)
-
set
public void set(int ind, double newValue)
-
set
public void set(long ind, double newValue)
-
set
public void set(double newValue)
-
compareAndSetMin
public void compareAndSetMin(int ind, double newValue)
-
compareAndSetMin
public void compareAndSetMin(long ind, double newValue)
-
compareAndSet
public void compareAndSet(int ind, double newValue)
-
getSize
public int getSize()
-
clear
public void clear()
-
-