final int clusterIdTwo = database.addCluster("clusterTwo");
final int clusterIdThree = database.addCluster("clusterThree");
final int clusterIdFour = database.addCluster("clusterFour");
ODocument docClusterOne = new ODocument();
ORidBag ridBagClusterOne = new ORidBag();
docClusterOne.field("ridBag", ridBagClusterOne);
docClusterOne.save("clusterOne");
ODocument docClusterTwo = new ODocument();
ODocument embeddedDocTwo = new ODocument();
final ORidBag ridBagClusterTwo = new ORidBag();
embeddedDocTwo.field("ridBag", ridBagClusterTwo);
List<ODocument> elist = new ArrayList<ODocument>();
elist.add(embeddedDocTwo);
docClusterTwo.field("elist", elist, OType.EMBEDDEDLIST);
docClusterTwo.save("clusterTwo");
ODocument docClusterThree = new ODocument();
ODocument embeddedDocThree = new ODocument();
final ORidBag ridBagClusterThree = new ORidBag();
embeddedDocThree.field("ridBag", ridBagClusterThree);
Set<ODocument> eset = new HashSet<ODocument>();
eset.add(embeddedDocThree);
docClusterThree.field("eset", eset, OType.EMBEDDEDSET);
docClusterThree.save("clusterThree");
ODocument docClusterFour = new ODocument();
ODocument embeddedDocFour = new ODocument();
final ORidBag ridBagClusterFour = new ORidBag();
embeddedDocFour.field("ridBag", ridBagClusterFour);
Map<String, ODocument> emap = new HashMap<String, ODocument>();
emap.put("l", embeddedDocFour);