Examples of deleteColumn()


Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo.deleteColumn()

    assertThat(panel.getRows()).hasSize(1);
    assertEquals("1 1 [1] {(0,0)=(1,1)}", panel.getStatus().toString());
    // do operation
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        panel.deleteColumn(0);
      }
    });
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of com.heatonresearch.aifh.normalize.DataSet.deleteColumn()

            }
            final DataSet ds = DataSet.load(istream);
            istream.close();

            ds.deleteUnknowns();
            ds.deleteColumn(0);
            ds.replaceColumn(9, 4, 1, 0);
            final List<BasicData> trainingData = ds.extractSupervised(0, 9, 9, 1);

            final MultipleLinearRegression reg = new MultipleLinearRegression(9);
            reg.setLinkFunction(new LogitLinkFunction());
View Full Code Here

Examples of com.netflix.astyanax.ColumnListMutation.deleteColumn()

  private void removeColumns(Remove action, ColumnFamily cf, MutationBatch m) {
    ColumnListMutation row = m.withRow(cf, action.getRowKey());
   
    for(byte[] name : action.getColumns()) {
      row.deleteColumn(name);
    }
  }

  private void removeColumn(RemoveColumn action, MetaLookup mgr, MutationBatch m) {
    Info info = columnFamilies.fetchColumnFamilyInfo(action.getColFamily().getColumnFamily(), mgr);
View Full Code Here

Examples of de.ambits.csvmaster.service.CsvService.deleteColumn()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    ICsvService service = new CsvService();
    ListSelectionDialog dlg = new ListSelectionDialog(Display.getCurrent().getActiveShell(), service.getTableHeaders(event), new CsvContentProvider(), new LabelProvider(), "Select the columns to delete.");
    dlg.setTitle("Delete columns");
        if (dlg.open() == Window.OK) {
          service.deleteColumn(dlg.getResult(), event);
        }
    return null;
  }
}
View Full Code Here

Examples of de.ambits.csvmaster.service.ICsvService.deleteColumn()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    ICsvService service = new CsvService();
    ListSelectionDialog dlg = new ListSelectionDialog(Display.getCurrent().getActiveShell(), service.getTableHeaders(event), new CsvContentProvider(), new LabelProvider(), "Select the columns to delete.");
    dlg.setTitle("Delete columns");
        if (dlg.open() == Window.OK) {
          service.deleteColumn(dlg.getResult(), event);
        }
    return null;
  }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseAdmin.deleteColumn()

      case DROP:
        disableTable(admin, table);
        println("Dropping " + column + " from " + table +
          "... Please wait.");
        column = appendDelimiter(column);
        admin.deleteColumn(new Text(table), new Text(column));
        enableTable(admin, table);
        break;
      case CHANGE:
        // Not yet supported
        return new ReturnMsg(0, "" + operationType + " is not yet supported.");
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Admin.deleteColumn()

    // delete column
    assertFalse("No column family deleted yet", cp.wasDeleteColumnCalled());
    assertFalse("Delete table column handler should not be called.",
        cp.wasDeleteColumnHandlerCalled());
    admin.deleteColumn(TEST_TABLE, TEST_FAMILY2);
    HTableDescriptor tableDesc = admin.getTableDescriptor(TEST_TABLE);
    assertNull("'"+Bytes.toString(TEST_FAMILY2)+"' should have been removed",
        tableDesc.getFamily(TEST_FAMILY2));
    assertTrue("Coprocessor should have been called on column delete",
        cp.wasDeleteColumnCalled());
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumn()

   * Reset the split parent region info in meta table
   */
  private void resetSplitParent(HbckInfo hi) throws IOException {
    RowMutations mutations = new RowMutations(hi.metaEntry.getRegionName());
    Delete d = new Delete(hi.metaEntry.getRegionName());
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
    mutations.add(d);

    Put p = new Put(hi.metaEntry.getRegionName());
    HRegionInfo hri = new HRegionInfo(hi.metaEntry);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumn()

   */
  private void resetSplitParent(HbckInfo hi) throws IOException {
    RowMutations mutations = new RowMutations(hi.metaEntry.getRegionName());
    Delete d = new Delete(hi.metaEntry.getRegionName());
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
    d.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
    mutations.add(d);

    Put p = new Put(hi.metaEntry.getRegionName());
    HRegionInfo hri = new HRegionInfo(hi.metaEntry);
    hri.setOffline(false);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Delete.deleteColumn()

            final byte[] value = Bytes.toBytes("value_for_row_" + iRow +
                "_cf_" + Bytes.toStringBinary(cf) + "_col_" + iCol + "_ts_" +
                ts + "_random_" + rand.nextLong());
            put.add(cf, qual, ts, value);
          } else if (rand.nextDouble() < 0.8) {
            del.deleteColumn(cf, qual, ts);
          } else {
            del.deleteColumns(cf, qual, ts);
          }
        }
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.