/** * @see javax.swing.table.TableModel#getColumnCount() */ public int getColumnCount() { return m_table.getColumnCount(); } /**
/** * @see prefuse.data.Tuple#getColumnCount() */ public int getColumnCount() { return m_table.getColumnCount(); }
/** * @see java.lang.Object#toString() */ public String toString() { StringBuffer sbuf = new StringBuffer(); sbuf.append("Table["); sbuf.append("rows=").append(getRowCount()); sbuf.append(", cols=").append(getColumnCount()); sbuf.append(", maxrow=").append(m_rows.getMaximumRow()); sbuf.append("]"); return sbuf.toString(); }
char[] pad = new char[table.getColumnCount()]; boolean[] pre = new boolean[table.getColumnCount()]; for (int i=0; i<table.getColumnCount(); ++i ) { Class type = table.getColumnType(i); pre[i] = TypeLib.isNumericType(type); for ( int i=0; i<table.getColumnCount(); ++i ) { out.print(pack(table.getString(row, i), m_schema.getColumnLength(i),
for ( int i=0; i<table.getColumnCount(); ++i ) { if ( i>0 ) out.print(m_delim); out.print(table.getColumnName(i)); for ( int i=0; i<table.getColumnCount(); ++i ) { if ( i>0 ) out.print(m_delim); out.print(table.getString(row, table.getColumnName(i)));
for ( int i=0; i<table.getColumnCount(); ++i ) { if ( i>0 ) out.print(','); out.print(makeCSVSafe(table.getColumnName(i))); for ( int i=0; i<table.getColumnCount(); ++i ) { if ( i>0 ) out.print(','); String str = table.getString(row, table.getColumnName(i));
log.info("Search complete: #cols: " + rs_tab.getColumnCount() + "; #rows: " + rs_tab.getRowCount());
protected Table setupDataTable() { Table res_tab = this.getData(); if (res_tab == null) { return res_tab; } res_tab.addColumn("seqno","ROW()"); res_tab = addTimeOffsetCol(res_tab, "start_time", "start_time_millis", START_FIELD_NAME, 0); ColumnMetadata dstcol = res_tab.getMetadata(START_FIELD_NAME); long mintime = ((Timestamp)res_tab.get(dstcol.getMinimumRow(), "start_time")).getTime(); res_tab = addTimeOffsetCol(res_tab, "finish_time", "finish_time_millis", END_FIELD_NAME, mintime); res_tab.addColumn(PolygonRenderer.POLYGON,float[].class); log.debug("After adding seqno: #cols: " + res_tab.getColumnCount() + "; #rows: " + res_tab.getRowCount()); return res_tab; }
/** * Returns this Table's schema. The returned schema will be * locked, which means that any attempts to edit the returned schema * by adding additional columns will result in a runtime exception. * * If this Table subsequently has columns added or removed, this will not * be reflected in the returned schema. Instead, this method will need to * be called again to get a current schema. Accordingly, it is not * recommended that Schema instances returned by this method be stored * or reused across scopes unless that exact schema snapshot is * desired. * * @return a copy of this Table's schema */ public Schema getSchema() { if ( m_schema == null ) { Schema s = new Schema(); for ( int i=0; i<getColumnCount(); ++i ) { s.addColumn(getColumnName(i), getColumnType(i), getColumn(i).getDefaultValue()); } s.lockSchema(); m_schema = s; } return m_schema; }