Examples of prune()


Examples of org.neo4j.graphdb.traversal.TraversalDescription.prune()

                        return new LiteDepthFirstSelector( startSource,
                                startThreshold );
                    }
                } );
        final int firstHalf = onDepth / 2;
        Traverser startTraverser = base.prune(
                Traversal.pruneAfterDepth( firstHalf ) ).expand(
                expander ).filter( new Predicate<Path>()
        {
            public boolean accept( Path item )
            {
View Full Code Here

Examples of org.neo4j.rest.graphdb.traversal.RestTraversal.prune()

        assertNotNull(pruneLanguage, "language");

        RestTraversal rt = getRestTraversal(order, rels);

        RestTraversalDescription.ScriptLanguage _pruneLanguage = RestTraversalDescription.ScriptLanguage.valueOf(pruneLanguage);
        rt.prune(_pruneLanguage, pruneBody);

        rt = fillFilter(filterBody, filterLanguage, rt);

        TraverserImpl result = new TraverserImpl();
        result.iter = rt.traverse(node).iterator();
View Full Code Here

Examples of org.openxri.resolve.Cache.prune()

    *
    */
    public void testConcurrent()
    {
        Cache oCache = new Cache(1000);
        oCache.prune((XRIAuthority) AuthorityPath.buildAuthorityPath("@"));
        assertTrue("Initial cache not empty", oCache.getNumNodes() == 0);

       
        XRD oDesc = new XRD();
        Service atAuthService = new Service();
View Full Code Here

Examples of org.openxri.resolve.Cache.prune()

                {
                    oCache.stuff(oAuth, oDummy);
                }
                else
                {
                    oCache.prune(oAuth);
                }

                oCache.find(oAuth, true);
            }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.prune()

    updateTableRow(rowModel, 2, 1000, 0, 2000);
    updateTableRow(rowModel, 3, 1000);
    updateTableRow(rowModel, 4, 1000);
   
    rowModel.validateActualSizes();
    rowModel.prune(5);

    assertEquals(1, rowModel.getRowCount());
    assertEquals(1, rowModel.getRow(0).getMaximumRowSpan());
    assertEquals(5000, rowModel.getRow(0).getPreferredSize(1));
    assertEquals(5000, rowModel.getRow(0).getValidatedTrailingSize(1));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.prune()

    assertEquals(0, rowModel.getRow(3).getPreferredSize(2));
    assertEquals(0, rowModel.getRow(3).getValidatedTrailingSize(2));
    assertEquals(2000, rowModel.getRow(3).getPreferredSize(3));
    assertEquals(2000, rowModel.getRow(3).getValidatedTrailingSize(3));

    rowModel.prune(2);

    // assert that nothing has been done. This model is actually not breakable after the second row, as this
    // row spans further into the third row.
    assertEquals(6, rowModel.getRowCount());
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.prune()

    // assert that nothing has been done. This model is actually not breakable after the second row, as this
    // row spans further into the third row.
    assertEquals(6, rowModel.getRowCount());

    rowModel.prune(3);
    assertEquals(4, rowModel.getRowCount());
    assertEquals(1, rowModel.getRow(0).getMaximumRowSpan());
    assertEquals(3000, rowModel.getRow(0).getPreferredSize(1));
    assertEquals(3000, rowModel.getRow(0).getValidatedTrailingSize(1));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.prune()

    updateTableRow(rowModel, 1, 1000, 2000);
    updateTableRow(rowModel, 2, 1000, 0, 2000);
    updateTableRow(rowModel, 3, 1000);
    updateTableRow(rowModel, 4, 1000);
    rowModel.validateActualSizes();
    rowModel.prune(2);

    // assert that nothing has been done. This model is actually not breakable.
    assertEquals(5, rowModel.getRowCount());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.