org.apache.tinkerpop.gremlin.tinkergraph.process.computer

## Class TinkerMapEmitter<K,V>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.tinkergraph.process.computer.TinkerMapEmitter<K,V>

- All Implemented Interfaces:
    MapReduce.MapEmitter<K,V>

      public final class TinkerMapEmitter<K,V>
      extends Object
      implements MapReduce.MapEmitter<K,V>

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `Queue<KeyValue<K,V>>` | `mapQueue`
    `Map<K,Queue<V>>` | `reduceMap`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TinkerMapEmitter(boolean doReduce)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `complete(MapReduce<K,V,?,?,?> mapReduce)`
    `void` | `emit(K key, V value)`

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

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

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.process.computer.MapReduce.MapEmitter

      `emit`

- - ### Field Detail

    - #### reduceMap

          public Map<K,Queue<V>> reduceMap

    - #### mapQueue

          public Queue<KeyValue<K,V>> mapQueue

  - ### Constructor Detail

    - #### TinkerMapEmitter

          public TinkerMapEmitter(boolean doReduce)

  - ### Method Detail

    - #### emit

          public void emit(K key,
                           V value)

      Specified by:
        `emit` in interface `MapReduce.MapEmitter<K,V>`

    - #### complete

          protected void complete(MapReduce<K,V,?,?,?> mapReduce)

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