Examples of RowBuilder


Examples of bad.robot.excel.row.RowBuilder

        assertThat(modified.workbook(), sameWorkbook(getWorkbook("shouldReplaceCellsInComplicatedExampleTemplateExpected.xls")));
    }

    @Test
    public void shouldAppendRow() throws IOException, ParseException {
        RowBuilder row = aRow()
                .withString(column(A), "This")
                .withString(column(C), "Row")
                .withString(column(D), "was")
                .withString(column(E), "inserted")
                .withString(column(H), "here")
                .withString(column(I), "by")
                .withString(column(J), "some")
                .withString(column(K), "smart")
                .withString(column(N), "Programmer")
                .withInteger(column(L), 1)
                .withDate(column(P), createDate(11, FEBRUARY, 1979))
                .withDouble(column(O), new Double("0.123456789"));
        PoiWorkbook modified = new PoiWorkbook(getWorkbook("shouldAppendRowTemplate.xls")).appendRowToFirstSheet(row.build());

        assertThat(modified.workbook(), sameWorkbook(getWorkbook("shouldAppendRowTemplateExpected.xls")));
    }
View Full Code Here

Examples of bad.robot.excel.row.RowBuilder

        assertThat(modified.workbook(), sameWorkbook(getWorkbook("cellTypes.xls")));
    }

    @Test
    public void replaceCellWithSameRow() throws IOException {
        RowBuilder row = aRow()
                .withString(column(A), "String")
                .withString(column(B), "value");

        PoiWorkbook modified = new PoiWorkbook(getWorkbook("cellTypes.xls")).appendRowToFirstSheet(row.build());
        assertThat(modified.workbook(), Matchers.sameWorkbook(getWorkbook("replaceCellWithSameRowExpected.xls")));
    }
View Full Code Here

Examples of com.alibaba.wasp.meta.RowBuilder

    return returnResult;
  }

  private boolean nextInternal(int limit, String metric) throws IOException {
    List<Get> gets = new ArrayList<Get>();
    RowBuilder builder = RowBuilder.build();
    Get get = null;
    Result[] indexResults = indexScanner.next(limit);
    for (Result result : indexResults) {
      if (action.getFTableName() != null) {
        get = new Get(builder.buildEntityRowKey(result));
        get.setTimeRange(0, this.timeStamp);
        get.setMaxVersions(1);
        for (ColumnStruct col : this.action.getColumns()) {
          get.addColumn(Bytes.toBytes(col.getFamilyName()),
              Bytes.toBytes(col.getColumnName()));
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.loader.builder.RowBuilder


  private void loadRows( jxl.Sheet _xlsSheet, SheetBuilder _sheetBuilder ) throws SpreadsheetException
  {
    for (int iRow = 0; iRow < _xlsSheet.getRows(); iRow++) {
      final RowBuilder rowBuilder = _sheetBuilder.beginRow();
      final jxl.Cell[] xlsRow = _xlsSheet.getRow( iRow );
      if (xlsRow != null) {
        for (final Cell xlsCell : xlsRow) {
          if (null == xlsCell) {
            rowBuilder.addEmptyCell();
          }
          else {
            loadCell( _xlsSheet.getName(), xlsCell, rowBuilder );
          }
        }
      }
      rowBuilder.endRow();
    }
  }
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.loader.builder.RowBuilder

  @Override
  public void elementStarted( final StartElement _startElement, final Map<QName, ElementListener> _handlers )
  {
    final Attribute attribute = _startElement.getAttributeByName( XMLConstants.Table.NUMBER_ROWS_REPEATED );
    this.numberRowsRepeated = attribute == null ? 1 : Integer.parseInt( attribute.getValue() );
    final RowBuilder rowBuilder = this.sheetBuilder.beginRow();
    final CellParser cellParser = new CellParser( rowBuilder, this.config );
    _handlers.put( XMLConstants.Table.TABLE_CELL, cellParser );
    _handlers.put( XMLConstants.Table.COVERED_TABLE_CELL, cellParser );
  }
View Full Code Here

Examples of org.kiji.schema.util.InstanceBuilder.RowBuilder

    final TableBuilder tableBuilder =
        new InstanceBuilder(getKiji())
            .withTable(KijiTableLayouts
                    .getLayout("org/kiji/schema/layout/all-types-no-counters-schema.json"));

    final RowBuilder rowBuilder = tableBuilder.withRow(ROW);

    for (Entry<String, NavigableMap<String, NavigableMap<Long, Object>>> familyEntry
        : families.entrySet()) {
      final FamilyBuilder familyBuilder = rowBuilder.withFamily(familyEntry.getKey());

      for (Entry<String, NavigableMap<Long, Object>> columnEntry
          : familyEntry.getValue().entrySet()) {
        final QualifierBuilder qualifierBuilder =
            familyBuilder.withQualifier(columnEntry.getKey());
View Full Code Here

Examples of org.kiji.schema.util.InstanceBuilder.RowBuilder

    final TableBuilder tableBuilder =
        new InstanceBuilder(getKiji())
            .withTable(KijiTableLayouts.getLayout("org/kiji/schema/layout/all-types-schema.json"));

    final RowBuilder rowBuilder = tableBuilder.withRow(ROW);

    for (Entry<String, NavigableMap<String, NavigableMap<Long, Object>>> familyEntry
        : families.entrySet()) {
      final FamilyBuilder familyBuilder = rowBuilder.withFamily(familyEntry.getKey());

      for (Entry<String, NavigableMap<Long, Object>> columnEntry
          : familyEntry.getValue().entrySet()) {
        final QualifierBuilder qualifierBuilder =
            familyBuilder.withQualifier(columnEntry.getKey());
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.