/** * Set the data value of the given field with a <code>long</code>. * @param field the data field to set * @param val the value to set * @see #canSetLong(String) */ public final void setLong(String field, long val) { ++m_modCount; m_table.setLong(m_cur, field, val); }
/** * @see prefuse.data.Tuple#setLong(java.lang.String, long) */ public final void setLong(String field, long val) { validityCheck(); m_table.setLong(m_row, field, val); }
/** * @see prefuse.data.Tuple#setLong(int, long) */ public final void setLong(int col, long val) { validityCheck(); m_table.setLong(m_row, col, val); }
agg_tab.setLong((i*num_hosts)+j,"stat",stats[i][j]); if (stats[i][j] > max) max = stats[i][j]; if (stats[i][j] > 0 && stats[i][j] < min) min = stats[i][j];
/** * Add an edge to the graph. Both multiple edges between two nodes * and edges from a node to itself are allowed. * @param s the source node id * @param t the target node id * @return the edge id (edge table row number) of the added edge */ public int addEdge(int s, int t) { // get keys for the nodes long key1 = getKey(s); long key2 = getKey(t); // add edge row, set source/target fields Table edges = getEdgeTable(); int r = edges.addRow(); if ( m_longKey ) { edges.setLong(r, m_skey, key1); edges.setLong(r, m_tkey, key2); } else { edges.setInt(r, m_skey, (int)key1); edges.setInt(r, m_tkey, (int)key2); } return r; }
/** * Adds a column to given table by converting timestamp to long with * seconds since epoch, and adding milliseconds from additional column * in original table * * @param origTable Table to add to * @param srcFieldName Name of column containing timestamp * @param srcMillisecondFieldName Name of column containing millisecond value of time * @param dstFieldName Name of new column to add * * @return Modified table with added column */ protected Table addTimeCol (Table origTable, String srcFieldName, String srcMillisecondFieldName, String dstFieldName) { origTable.addColumn(dstFieldName, long.class); int total_rows = origTable.getRowCount(); for (int curr_row_num = 0; curr_row_num < total_rows; curr_row_num++) { origTable.setLong(curr_row_num, dstFieldName, ((Timestamp)origTable.get(curr_row_num, srcFieldName)).getTime() + origTable.getLong(curr_row_num, srcMillisecondFieldName) ); } return origTable; }
t.setLong(trow, field, rSet.getLong(rCol)); break;