Examples of first()


Examples of org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeIndexTable.first()

        btreeCopy.setSchema(schema);
        final String idx = schema.getIndexes(REP_CACHE_TABLE).iterator().next().getName();
        Assert.assertNotNull(idx);
        final ISqlJetBtreeIndexTable index = new SqlJetBtreeIndexTable(btreeCopy, idx, true);
        String prev = null;
        for (index.first(); !index.eof(); index.next()) {
            final String hash = index.getString(0);
            logger.info(hash);
            if (prev != null && hash != null) {
                Assert.assertTrue(hash.compareTo(prev) > 0);
            }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.first()

    persistenceDb.beginTransaction(SqlJetTransactionMode.READ_ONLY);
    try
    {
      classLogger.log(Level.CONFIG, "Getting Group ID {0} to merge Customer ID {1}.", new Object[] {1, 1});
      ISqlJetCursor foundRow = customerTable.lookup(customerTable.getPrimaryKeyIndexName(), 1);
      if(foundRow != null && foundRow.first())
      {
        int rowCount = intFromLong(foundRow.getRowCount());
        classLogger.log(Level.CONFIG, "Reading {0} Customers.", rowCount);
      }
    }
View Full Code Here

Examples of org.uengine.util.dao.IDAO.first()

     
      if(getSharedContext(sharedContextKey)!=null){
        IDAO cachedOne = (IDAO)getSharedContext(sharedContextKey);
       
        try{
          cachedOne.first();
        }catch(Exception e){}
       
        return cachedOne;
      }
     
View Full Code Here

Examples of org.xbill.DNS.RRset.first()

  m_rs.addRR(m_s2);

  RRset rs2 = new RRset( m_rs );

  assertEquals(2, rs2.size());
  assertEquals(m_a1, rs2.first());
  Iterator itr = rs2.rrs();
  assertEquals(m_a1, itr.next());
  assertEquals(m_a2, itr.next());
  assertFalse(itr.hasNext());
 
View Full Code Here

Examples of org.zkoss.test.JQuery.first()

  public void validation_buttons() {
    spreadsheet.focus(1, 3);
   
    JQuery buttons = spreadsheet.getMainBlock().getRow(1).jq$n().children(".zsdropdown");
    Assert.assertEquals(1, buttons.length());
    Assert.assertTrue(buttons.first().isVisible());
   
    spreadsheet.focus(25, 3);
    buttons = spreadsheet.getMainBlock().getRow(25).jq$n().children(".zsdropdown");
    Assert.assertEquals(1, buttons.length());
    Assert.assertTrue(buttons.first().isVisible());
View Full Code Here

Examples of org.zkoss.ztl.JQuery.first()

   
    public String setCellFontColorByToolbarbutton(int lCol, int tRow, int rCol, int bRow, int nthColorPalette) {
      selectCells(lCol, tRow, rCol, bRow);
      click(jq("$fontCtrlPanel $fontColorBtn"));
        JQuery color = jq(".z-colorpalette:visible div.z-colorpalette-colorbox:nth-child(" + nthColorPalette + ")");
        String selectedColor = color.first().text();
      mouseOver(color);
      click(color);
      waitResponse();
      return selectedColor;
    }
View Full Code Here

Examples of ptolemy.actor.util.TotallyOrderedSet.first()

        TotallyOrderedSet breakpoints = getBreakPoints();
        if ((breakpoints != null) && !breakpoints.isEmpty()) {
            if (_debugging && _verbose) {
                _debug("The first breakpoint in the breakpoint list is at "
                        + breakpoints.first());
            }

            // NOTE: the breakpoint table is not changed.
            Time nextBreakpoint = ((Time) breakpoints.first());
            double maximAllowedStepSize = nextBreakpoint.subtract(
View Full Code Here

Examples of shark.api.JavaTableRDD.first()

            public Boolean call(Row row) throws Exception {
                return row.getString("name").equals("B");
            }
        }).cache();
        Assert.assertEquals(1, filtered.count());
        Assert.assertEquals(2, filtered.first().getInt("id").intValue());
    }

    @Test
    public void union() {
        JavaTableRDD a = sc.sql2rdd("select * from users_java where name = \"A\"");
View Full Code Here

Examples of ucar.ma2.Range.first()

      for (int count=0; count<v.getRank(); count++) {
        Range r = ranges.get(count);
        if (r == null)
          r = new Range( 0, v.getDimension(count).getLength());
        if (count>0) sb.append(", ");
        sb.append(r.first());
        sb.append(':');
        sb.append(r.last());
        sb.append(':');
        sb.append(r.stride());
      }
View Full Code Here

Examples of xmlcomponents.Jode.first()

    }
   
    System.out.println("AutoLauncher:loading XML configuration node");
    Jode config = root.single("configuration");
    System.out.println("AutoLauncher:loading XML processingPath node");
    String processingPath = config.first("config").attribute("processingPath").v;
    System.out.println("processingPath = "+processingPath);
    // launch each child process
    for(Jode child : config.children())
    {
      if (child.n.equals("process"))
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.