Maybe, lightweight edges is on?

OrientGraph g = new OrientGraph("mygraph");
g.setUseLightweightEdges(true);


Or via SQL <http://orientdb.com/docs/last/SQL-Alter-Database.html>:


ALTER DATABASE custom useLightweightEdges=true



вторник, 30 июня 2015 г., 16:55:58 UTC+3 пользователь Geof Pawlicki написал:
>
> Hi, 
>
> I'm trying to load the second of two classes from CSV files, where the 
> joinFieldName is Segment in both:
>
>
> Segment,SegmentTitle,SegmentDefinition
> 10000000,Live Plant and Animal Material and Accessories and Supplies,"This 
> segment includes live, wild and domesticated, seeds and plants and animals. 
> This segment also includes materials and equipment used in the care, 
> containment and feeding of live plants and animals."
> . . .
>
> Segment,Family,FamilyTitle,FamilyDefinition
> 10000000,10100000,Live animals,
> . . .
>
> As-is, the first loads fine, as do the vertices from the second, but not 
> the edge toFamily defined by: 
>
>
> "source": { "file": { "path": "Families.csv"} },
> "extractor": { "row": {} },
> "transformers": [
> { "csv": {} },
> { "vertex": { "class": "Family" }    }, 
>                                 { "edge":        { "class": "toFamily",
> "joinFieldName": "Segment",
> "lookup": "Segment.Segment",
> "direction": "in"
> }
> }
> ],
> "loader": {
> "orientdb": {
> "dbURL": "remote:/temp/databases/HW",
> "dbType": "graph",
> "classes": [
> {"name": "Segment", "extends": "V"},
> {"name": "Family", "extends": "V"},
> {"name": "toFamily", "extends": "E"},
> ], "indexes": [
> {"class":"Family", "fields":["Family:integer"], "type":"UNIQUE" }
> ]
> }
> }
>
> Would appreciate any suggests, and wouldn't rule out the possibility of a 
> newb mistake somewhere. . .
>
> Thanks,
> Geof
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to