Class GryoIo.Builder

java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.gryo.GryoIo.Builder
All Implemented Interfaces:
Io.Builder<GryoIo>
Enclosing class:
GryoIo

public static final class GryoIo.Builder extends Object implements Io.Builder<GryoIo>
  • Method Details

    • onMapper

      public Io.Builder<? extends Io> onMapper(Consumer<Mapper.Builder> onMapper)
      Description copied from interface: Io.Builder
      Allows a Graph implementation to have full control over the Mapper.Builder instance. Typically, the implementation will just pass in its IoRegistry implementation so that the Mapper that gets built will have knowledge of any custom classes and serializers it may have.

      End-users should not use this method directly. If a user wants to register custom serializers, then such things can be done via calls to Io.mapper() after the Io is constructed via Graph.io(Io.Builder).

      Specified by:
      onMapper in interface Io.Builder<GryoIo>
    • graph

      public Io.Builder<GryoIo> graph(Graph g)
      Description copied from interface: Io.Builder
      Providers use this method to supply the current instance of their Graph to the builder. End-users should not call this method directly.
      Specified by:
      graph in interface Io.Builder<GryoIo>
    • requiresVersion

      public <V> boolean requiresVersion(V version)
      Description copied from interface: Io.Builder
      Determines if the version matches the one configured for this builder. Graph providers can use this in calls to Graph.io(Builder) to figure out the correct versions of registries to add.
      Specified by:
      requiresVersion in interface Io.Builder<GryoIo>
    • create

      public GryoIo create()
      Description copied from interface: Io.Builder
      Providers call this method in the Graph.io(Io.Builder) method to construct the Io instance and return the value. End-users will typically not call this method.
      Specified by:
      create in interface Io.Builder<GryoIo>