congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
GraphSONMapper$Builder.addRegistry
Code IndexAdd Tabnine to your IDE (free)

How to use
addRegistry
method
in
org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper$Builder

Best Java code snippets using org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper$Builder.addRegistry (Showing top 3 results out of 315)

origin: JanusGraph/janusgraph

@Parameterized.Parameters(name = "{0}")
public static Iterable<Object[]> data() {
  final GraphSONMapper v1mapper = GraphSONMapper.build().version(GraphSONVersion.V1_0).typeInfo(TypeInfo.PARTIAL_TYPES).addRegistry(JanusGraphIoRegistryV1d0.getInstance()).create();
  final GraphSONMapper v2mapper = GraphSONMapper.build().version(GraphSONVersion.V2_0).typeInfo(TypeInfo.PARTIAL_TYPES).addRegistry(JanusGraphIoRegistry.getInstance()).create();
  final GraphSONMapper v3mapper = GraphSONMapper.build().version(GraphSONVersion.V3_0).typeInfo(TypeInfo.PARTIAL_TYPES).addRegistry(JanusGraphIoRegistry.getInstance()).create();
  return Arrays.asList(new Object[][]{
    {"graphson-v1-embedded",
      (Function<Graph, GraphReader>) g -> GraphSONReader.build().mapper(v1mapper).create(),
      (Function<Graph, GraphWriter>) g -> GraphSONWriter.build().mapper(v1mapper).create()},
    {"graphson-v2-embedded",
      (Function<Graph, GraphReader>) g -> GraphSONReader.build().mapper(v2mapper).create(),
      (Function<Graph, GraphWriter>) g -> GraphSONWriter.build().mapper(v2mapper).create()},
    {"graphson-v3",
      (Function<Graph, GraphReader>) g -> GraphSONReader.build().mapper(v3mapper).create(),
      (Function<Graph, GraphWriter>) g -> GraphSONWriter.build().mapper(v3mapper).create()},
    {"gryo",
      (Function<Graph, GraphReader>) g -> g.io(IoCore.gryo()).reader().mapper(g.io(IoCore.gryo()).mapper().create()).create(),
      (Function<Graph, GraphWriter>) g -> g.io(IoCore.gryo()).writer().mapper(g.io(IoCore.gryo()).mapper().create()).create()}
  });
}
origin: apache/atlas

public AtlasJanusGraphDatabase() {
  //update registry
  GraphSONMapper.build().addRegistry(JanusGraphIoRegistry.getInstance()).create();
}
origin: apache/incubator-atlas

public Titan1GraphDatabase() {
  //update registry
  GraphSONMapper.build().addRegistry(TitanIoRegistry.INSTANCE).create();
}
org.apache.tinkerpop.gremlin.structure.io.graphsonGraphSONMapper$BuilderaddRegistry

Popular methods of GraphSONMapper$Builder

  • create
  • typeInfo
    Specify if the values are going to be typed or not, and at which level. The level can be TypeInfo#NO
  • version
    Set the version of GraphSON to use. The default is GraphSONVersion#V2_0.
  • addCustomModule
    Supply a mapper module for serialization/deserialization.
  • embedTypes
  • <init>
  • addRegistries
  • loadCustomModules
    Try to load SimpleModule instances from the current classpath. These are loaded in addition to the o
  • normalize
    Forces keys to be sorted.

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Notification (javax.management)
  • JPanel (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now