Search in sources :

Example 16 with PathSummaryReader

use of org.sirix.index.path.summary.PathSummaryReader in project sirix by sirixdb.

the class PathSummaryTest method testInsert.

/**
 * Test insert on test document.
 *
 * @throws SirixException if Sirix fails
 */
@Test
public void testInsert() throws SirixException {
    PathSummaryReader pathSummary = wtx.getPathSummary();
    pathSummary.moveToDocumentRoot();
    testInsertHelper(pathSummary);
    wtx.commit();
    wtx.close();
    pathSummary = holder.getResourceManager().openPathSummary();
    testInsertHelper(pathSummary);
    pathSummary.close();
}
Also used : PathSummaryReader(org.sirix.index.path.summary.PathSummaryReader) Test(org.junit.Test)

Aggregations

PathSummaryReader (org.sirix.index.path.summary.PathSummaryReader)16 QNm (org.brackit.xquery.atomic.QNm)11 Test (org.junit.Test)8 Axis (org.sirix.api.Axis)6 DescendantAxis (org.sirix.axis.DescendantAxis)6 XdmNodeReadTrx (org.sirix.api.XdmNodeReadTrx)3 Str (org.brackit.xquery.atomic.Str)1 PathException (org.brackit.xquery.util.path.PathException)1 XdmNodeWriteTrx (org.sirix.api.XdmNodeWriteTrx)1 DBNode (org.sirix.xquery.node.DBNode)1