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 voidclear()voidcompareAndSet(int ind, double newValue)voidcompareAndSetMin(int ind, double newValue)voidcompareAndSetMin(long ind, double newValue)voidcompareAndSetMin(Vertex<Long> vertex, double newValue)doubleget(int ind)doubleget(long ind)doubleget(Vertex<Long> vertex)intgetSize()voidset(double newValue)voidset(int ind, double newValue)voidset(long ind, double newValue)voidset(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()
-
-