Class AtomicLongArrayWrapper


  • public class AtomicLongArrayWrapper
    extends Object
    • Constructor Detail

      • AtomicLongArrayWrapper

        public AtomicLongArrayWrapper​(int s,
                                      long defaultValue)
      • AtomicLongArrayWrapper

        public AtomicLongArrayWrapper​(int s)
    • Method Detail

      • get

        public long get​(int ind)
      • get

        public long get​(long ind)
      • set

        public void set​(int ind,
                        long newValue)
      • set

        public void set​(long ind,
                        long newValue)
      • set

        public void set​(Vertex<Long> vertex,
                        long newValue)
      • set

        public void set​(long newValue)
      • compareAndSetMin

        public void compareAndSetMin​(int ind,
                                     long newValue)
      • compareAndSetMin

        public void compareAndSetMin​(long ind,
                                     long newValue)
      • compareAndSetMin

        public void compareAndSetMin​(Vertex<Long> vertex,
                                     long newValue)
      • compareAndSet

        public void compareAndSet​(int ind,
                                  long newValue)
      • compareAndSetMinUnsigned

        public void compareAndSetMinUnsigned​(Vertex<Long> vertex,
                                             long newValue)
        Atomically update the array, compare values using unsigned comparison.
        Parameters:
        vertex - querying vertex.
        newValue - new value.
      • compareAndSetMinUnsigned

        public void compareAndSetMinUnsigned​(long vertexId,
                                             long newValue)
        Atomically update the array, compare values using unsigned comparison.
        Parameters:
        vertexId - querying vertex id.
        newValue - new value.
      • getSize

        public int getSize()