Sha256: 7c478164e4dab8d1c043f14fd2686ec56a9e8a8644f7b1d784347e41c36f4d41

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

module Cadet
  module BatchInserter
    class Node < Cadet::Node
      include_package "org.neo4j.graphdb"
      def create_outgoing(to, type, properties = {})
        @db.createRelationship(@underlying, to.underlying, DynamicRelationshipType.withName(type), properties)
      end

      def set_property(prop, val)
        @db.setNodeProperty @underlying, prop, val
      end

      def get_relationships(direction, type)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cadet-0.0.6-java lib/cadet/batch_inserter/node.rb
cadet-0.0.5-java lib/cadet/batch_inserter/node.rb