Skip to content

Instantly share code, notes, and snippets.

@vtslab
vtslab / pysql_dtypes.py
Last active December 30, 2020 14:24
Converts spark-sql dtypes to a python-friendly format
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
@vtslab
vtslab / RGremlin.java
Last active February 20, 2019 22:22
Connecting to TinkerPop's gremlin server from R Studio with a java wrapper
package rgremlin;
import org.apache.tinkerpop.gremlin.driver.*;
import org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0;
import org.apache.tinkerpop.gremlin.structure.Element;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tinkerpop.gremlin.structure.io.gryo.GryoMapper;
import org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry;
import org.json.simple.JSONObject;