static public ComplexNode toComplexNode(Node node){ ComplexNode result = new ComplexNode() .setId(node.getId()) .setScore(node.getScore()) .setRecordCount(node.getRecordCount()) .setDefaultChild(node.getDefaultChild()) .setPredicate(node.getPredicate()); if(node.hasNodes()){ (result.getNodes()).addAll(node.getNodes()); } // End if if(node.hasScoreDistributions()){ (result.getScoreDistributions()).addAll(node.getScoreDistributions()); } return result; } }
value.setScore(node.getScore()); value.setRecordCount(node.getRecordCount()); value.setDefaultChild(node.getDefaultChild());
value.setScore(node.getScore()); value.setRecordCount(node.getRecordCount()); value.setDefaultChild(node.getDefaultChild());