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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GryoIocreate()Providers call this method in theGraph.io(Io.Builder)method to construct theIoinstance and return the value.Io.Builder<GryoIo>graph(Graph g)Providers use this method to supply the current instance of theirGraphto the builder.Io.Builder<? extends Io>onMapper(Consumer<Mapper.Builder> onMapper)Allows aGraphimplementation to have full control over theMapper.Builderinstance.<V> booleanrequiresVersion(V version)Determines if the version matches the one configured for this builder.
 
- 
- 
- 
Method Detail- 
onMapperpublic Io.Builder<? extends Io> onMapper(Consumer<Mapper.Builder> onMapper) Description copied from interface:Io.BuilderAllows aGraphimplementation to have full control over theMapper.Builderinstance. Typically, the implementation will just pass in itsIoRegistryimplementation so that theMapperthat 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 toIo.mapper()after theIois constructed viaGraph.io(Io.Builder).- Specified by:
- onMapperin interface- Io.Builder<GryoIo>
 
 - 
graphpublic Io.Builder<GryoIo> graph(Graph g) Description copied from interface:Io.BuilderProviders use this method to supply the current instance of theirGraphto the builder. End-users should not call this method directly.- Specified by:
- graphin interface- Io.Builder<GryoIo>
 
 - 
requiresVersionpublic <V> boolean requiresVersion(V version) Description copied from interface:Io.BuilderDetermines if the version matches the one configured for this builder. Graph providers can use this in calls toGraph.io(Builder)to figure out the correct versions of registries to add.- Specified by:
- requiresVersionin interface- Io.Builder<GryoIo>
 
 - 
createpublic GryoIo create() Description copied from interface:Io.BuilderProviders call this method in theGraph.io(Io.Builder)method to construct theIoinstance and return the value. End-users will typically not call this method.- Specified by:
- createin interface- Io.Builder<GryoIo>
 
 
- 
 
-