com.thinkaurelius.titan.core.olap

## Interface Gather<S,M>

-     public interface Gather<S,M>

  Function which gathers the state of an adjacent vertex and any properties of the connecting edge into a single object.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `M` | `apply(S state, TitanEdge edge, com.tinkerpop.blueprints.Direction dir)` Gathers the adjacent vertex's state and the connecting edge's properties into a single object to be combined by a corresponding `Combiner` as configured in `OLAPQueryBuilder.edges(Gather, Combiner)`.

- - ### Method Detail

    - #### apply

          M apply(S state,
                TitanEdge edge,
                com.tinkerpop.blueprints.Direction dir)

      Gathers the adjacent vertex's state and the connecting edge's properties into a single object to be combined by a corresponding `Combiner` as configured in `OLAPQueryBuilder.edges(Gather, Combiner)`.
      Parameters:
        `state` - State of the adjacent vertex
        `edge` - Edge connecting to the adjacent vertex
        `dir` - Direction of the edge from the perspective of the current/central vertex
      Returns:
        An object of type M which gathers the state and edge properties

Copyright © 2012–2014. All rights reserved.