columnCategories[i] = new HashMapBlows(input);
indexData[row] = missingCategory; } else { indexData[row] = columnCategories[col].index(peace);
boolean hasCategory(int index) { return index < size() && indexToData.get(index) != null; }
HashMapBlows categories = new HashMapBlows(); for (int row = 0; row < rowCount; row++) { String s = getString(row, column); indexData[row] = categories.index(s);
columnCategories[i] = new HashMapBlows(input);
output.writeInt(missingCategory); } else { output.writeInt(columnCategories[col].index(peace));
indexData[row] = missingCategory; } else { indexData[row] = columnCategories[col].index(String.valueOf(piece));
HashMapBlows categories = new HashMapBlows(); for (int row = 0; row < rowCount; row++) { String s = getString(row, column); indexData[row] = categories.index(s);
output.writeInt(columnCategories[col].index(pieces[col])); break;
output.writeInt(0); } else { hmb.write(output); hmb.writeln(PApplet.createWriter(new File(columnTitles[col] + ".categories")));
output.writeInt(0); } else { hmb.write(output); hmb.writeln(PApplet.createWriter(new File(columnTitles[col] + ".categories")));
catTemp[i] = columnCategories[i]; catTemp[index] = new HashMapBlows(); for (int i = index; i < columns.length; i++) { catTemp[i+1] = columnCategories[i];
int index = source.getInt(col); setInt(row, col, index); if (!columnCategories[col].hasCategory(index)) { columnCategories[col].setCategory(index, source.getString(col));
return missingString; return columnCategories[column].key(cat); } else if (columnTypes[column] == FLOAT) { if (Float.isNaN(getFloat(row, column))) {
catTemp[i] = columnCategories[i]; catTemp[index] = new HashMapBlows(); for (int i = index; i < columns.length; i++) { catTemp[i+1] = columnCategories[i];
/** * Get a String value from the table. If the row is longer than the table * * @webref table:method * @brief Get an String value from the specified row and column * @param row ID number of the row to reference * @param column ID number of the column to reference * @see Table#getInt(int, int) * @see Table#getFloat(int, int) * @see Table#getStringColumn(String) * @see Table#setInt(int, int, int) * @see Table#setFloat(int, int, float) * @see Table#setString(int, int, String) */ public String getString(int row, int column) { checkBounds(row, column); if (columnTypes[column] == STRING) { String[] stringData = (String[]) columns[column]; return stringData[row]; } else if (columnTypes[column] == CATEGORY) { int cat = getInt(row, column); if (cat == missingCategory) { return missingString; } return columnCategories[column].key(cat); } else { return String.valueOf(Array.get(columns[column], row)); } }
HashMapBlows(DataInputStream input) throws IOException { read(input); }
HashMapBlows(DataInputStream input) throws IOException { read(input); }