Examples of Row


Examples of com.alvazan.orm.api.z8spi.Row

    RowHolder<Row> currentRow = fromCache(colFamily, rowKey);
    if(currentRow == null) {
      currentRow = new RowHolder<Row>(rowKey);
    }

    Row value = currentRow.getValue();
    if(value == null)
      value = rowProvider.get();
   
    value.setKey(rowKey);
    value.addColumns(columns);
    cacheRow(colFamily, rowKey, value);
  }
View Full Code Here

Examples of com.aspose.words.Row

    // Get the first table in the document.
    Table firstTable = (Table)doc.getChild(NodeType.TABLE, 0, true);

    // We will split the table at the third row (inclusive).
    Row row = firstTable.getRows().get(2);

    // Create a new container for the split table.
    Table table = (Table)firstTable.deepClone(false);

    // Insert the container after the original.
    firstTable.getParentNode().insertAfter(table, firstTable);

    // Add a buffer paragraph to ensure the tables stay apart.
    firstTable.getParentNode().insertAfter(new Paragraph(doc), firstTable);

    Row currentRow;

    do
    {
        currentRow = firstTable.getLastRow();
        table.prependChild(currentRow);
View Full Code Here

Examples of com.bleujin.framework.db.Row

    assertEquals(1, rows.getRowCount()) ;
  }
 
  public void testRow() throws Exception {
    Rows rows = dc.getRows("select * from dual") ;
    Row row = rows.firstRow() ;
   
    assertNotNull(row.getString(1)) ;
  }
View Full Code Here

Examples of com.brsanthu.dataexporter.model.Row

        return (TreeExportOptions) getOptions();
   
   
    @Override
    public void writeRow(RowDetails rowDetails) {
      Row row = rowDetails.getRow();
      printTreeNode("", true, true, true, row);
    }
View Full Code Here

Examples of com.data2semantics.yasgui.client.tab.results.input.dlv.Row

 
 
  private void storeTable(DlvWrapper dlv) {
    storeVariables(dlv.getRow(0));
    for (int rowId = 1; rowId < dlv.length(); rowId++) {
      Row row = dlv.getRow(rowId);
      HashMap<String, HashMap<String, String>> bindingHashMap = new HashMap<String, HashMap<String, String>>();
      for (int colId = 0; colId < row.length(); colId++) {
        //only add this if we actually have an answer for this binding
        String value = row.getCol(colId);
        if (value != null && value.length() > 0) {
          HashMap<String,String> nodeHashMap = new HashMap<String, String>();
          nodeHashMap.put("value", value);
          bindingHashMap.put(this.variables.get(colId),nodeHashMap);
        }
View Full Code Here

Examples of com.datastax.driver.core.Row

   
    ResultSetFuture rs = session.executeAsync(query);

    int size = 0;
    try {
      Row row = rs.getUninterruptibly(1000000, TimeUnit.MILLISECONDS).one();
      size = row != null ? row.getBytesUnsafe(colName.toString()).capacity() : 0;
    }
    catch (TimeoutException e) {
      e.printStackTrace();
      throw new OperationException(e);
    }
View Full Code Here

Examples of com.ebay.xcelite.annotations.Row

    columns = Sets.newLinkedHashSet();
    columnsOrdering();
  }

  private void columnsOrdering() {
    Row rowAnnotation = type.getAnnotation(Row.class);
    if (rowAnnotation == null || rowAnnotation.colsOrder() == null || rowAnnotation.colsOrder().length == 0) return;
    colsOrdering = Sets.newLinkedHashSet();
    for (String column : rowAnnotation.colsOrder()) {
      colsOrdering.add(new Col(column));
    }
  }
View Full Code Here

Examples of com.facebook.presto.sql.tree.Row

    {
        assertStatement("VALUES ('a', 1, 2.2), ('b', 2, 3.3)",
                new Query(
                        Optional.<With>absent(),
                        new Values(ImmutableList.of(
                                new Row(ImmutableList.<Expression>of(
                                        new StringLiteral("a"),
                                        new LongLiteral("1"),
                                        new DoubleLiteral("2.2")
                                )),
                                new Row(ImmutableList.<Expression>of(
                                        new StringLiteral("b"),
                                        new LongLiteral("2"),
                                        new DoubleLiteral("3.3")
                                ))
                        )),
                        ImmutableList.<SortItem>of(),
                        Optional.<String>absent(),
                        Optional.<Approximate>absent()));

        assertStatement("SELECT * FROM (VALUES ('a', 1, 2.2), ('b', 2, 3.3))",
                new Query(
                        Optional.<With>absent(),
                        new QuerySpecification(
                                selectList(new AllColumns()),
                                ImmutableList.<Relation>of(new TableSubquery(
                                        new Query(
                                                Optional.<With>absent(),
                                                new Values(ImmutableList.of(
                                                        new Row(ImmutableList.<Expression>of(
                                                                new StringLiteral("a"),
                                                                new LongLiteral("1"),
                                                                new DoubleLiteral("2.2")
                                                        )),
                                                        new Row(ImmutableList.<Expression>of(
                                                                new StringLiteral("b"),
                                                                new LongLiteral("2"),
                                                                new DoubleLiteral("3.3")
                                                        ))
                                                )),
View Full Code Here

Examples of com.foundationdb.qp.row.Row

                }
                checkQueryCancelation();
                while (pending.isEmpty() && (lookupState != LookupState.EXHAUSTED)) {
                    advance();
                }
                Row row = pending.poll();
                if (LOG_EXECUTION) {
                    LOG.debug("GroupLookup: yield {}", row);
                }
                return row;
            } finally {
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201208.Row

        Pql.getColumnLabels(resultSet));
  }

  @Test
  public void testGetRowStringValues() {
    Row row = new Row();
    row.setValues(new Value[] {textValue1, booleanValue1, numberValue2});
    assertEquals(
        Lists.newArrayList(new String[] {"value1", "false", "1.02"}), Pql.getRowStringValues(row));
  }
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.