1.29.9.18.3. Fetching the Result

Let's get nodes:

NodeIterator it = result.getNodes();


if(it.hasNext())
{
   Node findedNode = it.nextNode();
}

The NodeIterator will return "folder3", "folder4" and "folder5" nodes.

We can also get a table:

String[] columnNames = result.getColumnNames();

RowIterator rit = result.getRows();
while (rit.hasNext())
{
   Row row = rit.nextRow();
   // get values of the row
   Value[] values = row.getValues();
}

Table content is:

jcr:pathjcr:score
/folder1/folder2/folder31000
/folder1/folder2/folder3/folder41000
/folder1/folder2/folder51000


Copyright ©2012. All rights reserved. eXo Platform SAS