org.apache.tinkerpop.gremlin.hadoop.structure.io

## Class VertexWritable

- java.lang.Object
- - org.apache.tinkerpop.gremlin.hadoop.structure.io.VertexWritable

- All Implemented Interfaces:
    Serializable

      public final class VertexWritable
      extends Object
      implements Serializable

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `VertexWritable()`
    `VertexWritable(Vertex vertex)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object other)`
    `StarGraph.StarVertex` | `get()`
    `int` | `hashCode()`
    `void` | `readFields(DataInput input)`
    `void` | `set(Vertex vertex)`
    `String` | `toString()`
    `void` | `write(DataOutput output)`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### VertexWritable

          public VertexWritable()

    - #### VertexWritable

          public VertexWritable(Vertex vertex)

  - ### Method Detail

    - #### set

          public void set(Vertex vertex)

    - #### get

          public StarGraph.StarVertex get()

    - #### readFields

          public void readFields(DataInput input)
                          throws IOException

      Throws:
        `IOException`

    - #### write

          public void write(DataOutput output)
                     throws IOException

      Throws:
        `IOException`

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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