Sha256: 01a9968a090a96bd0637014e939f6a26849fff709a0895f9119a0ed34d00e811
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
module Cadet module BatchInserter class Node < Cadet::Node def create_outgoing(to, type, properties = {}) Relationship.new @db.createRelationship(@underlying, to.underlying, DynamicRelationshipType.withName(type), properties) end def []= (property, value) @db.setNodeProperty @underlying, property.to_java_string, value end def [] (property) @db.getNodeProperties(@underlying)[property.to_java_string] end def == other_node @underlying == other_node end def outgoing(type) NodeTraverser.new(self, :outgoing, type) end def each_relationship(direction, type) # not implemented in batch inserter mode. though, it could be done. # the assumption is that this shouldnt be necessary, as batch inserter mode # should be about inserting data, not querying data raise NotImplementedError end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cadet-0.1.0-java | lib/cadet/batch_inserter/node.rb |
cadet-0.0.9-java | lib/cadet/batch_inserter/node.rb |
cadet-0.0.8-java | lib/cadet/batch_inserter/node.rb |