org.apache.tinkerpop.gremlin.spark.process.computer

## Class MemoryAccumulator<A>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.spark.process.computer.MemoryAccumulator<A>

-     public final class MemoryAccumulator<A>
      extends Object

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MemoryAccumulator(MemoryComputeKey<A> memoryComputeKey)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ObjectWritable<A>` | `addAccumulator(ObjectWritable<A> a, ObjectWritable<A> b)`
    `ObjectWritable<A>` | `addInPlace(ObjectWritable<A> a, ObjectWritable<A> b)`
    `ObjectWritable<A>` | `zero(ObjectWritable<A> a)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MemoryAccumulator

          public MemoryAccumulator(MemoryComputeKey<A> memoryComputeKey)

  - ### Method Detail

    - #### addAccumulator

          public ObjectWritable<A> addAccumulator(ObjectWritable<A> a,
                                                  ObjectWritable<A> b)

    - #### addInPlace

          public ObjectWritable<A> addInPlace(ObjectWritable<A> a,
                                              ObjectWritable<A> b)

    - #### zero

          public ObjectWritable<A> zero(ObjectWritable<A> a)

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.