@Test public void testReadRegexSplittedFile() throws Exception { File testFile = getTestTempFile("testRegex.txt"); writeLines(testFile, DATA_SPLITTED_WITH_TWO_SPACES); FileDataModel model = new FileDataModel(testFile,"\\s+"); assertEquals(model.getItemIDsFromUser(123).size(), 3); assertEquals(model.getItemIDsFromUser(456).size(), 4); }
@Override public FastIDSet getItemIDsFromUser(long userID) throws TasteException { return delegate.getItemIDsFromUser(userID); }
FileDataModel extends AbstractDataModel { @Override public FastIDSet getItemIDsFromUser(long userID) throws TasteException { return delegate.getItemIDsFromUser(userID); } }
FileDataModel extends AbstractDataModel { @Override public FastIDSet getItemIDsFromUser(long userID) throws TasteException { return delegate.getItemIDsFromUser(userID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); }
FileDataModel extends AbstractDataModel { @Override public FastIDSet getItemIDsFromUser(long userID) throws TasteException { return delegate.getItemIDsFromUser(userID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); File getDataFile(); static char determineDelimiter(String line); @Override LongPrimitiveIterator getUserIDs(); @Override PreferenceArray getPreferencesFromUser(long userID); @Override FastIDSet getItemIDsFromUser(long userID); @Override LongPrimitiveIterator getItemIDs(); @Override PreferenceArray getPreferencesForItem(long itemID); @Override Float getPreferenceValue(long userID, long itemID); @Override Long getPreferenceTime(long userID, long itemID); @Override int getNumItems(); @Override int getNumUsers(); @Override int getNumUsersWithPreferenceFor(long itemID); @Override int getNumUsersWithPreferenceFor(long itemID1, long itemID2); @Override void setPreference(long userID, long itemID, float value); @Override void removePreference(long userID, long itemID); @Override void refresh(Collection<Refreshable> alreadyRefreshed); @Override boolean hasPreferenceValues(); @Override float getMaxPreference(); @Override float getMinPreference(); @Override String toString(); }
FileDataModel extends AbstractDataModel { @Override public FastIDSet getItemIDsFromUser(long userID) throws TasteException { return delegate.getItemIDsFromUser(userID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); File getDataFile(); static char determineDelimiter(String line); @Override LongPrimitiveIterator getUserIDs(); @Override PreferenceArray getPreferencesFromUser(long userID); @Override FastIDSet getItemIDsFromUser(long userID); @Override LongPrimitiveIterator getItemIDs(); @Override PreferenceArray getPreferencesForItem(long itemID); @Override Float getPreferenceValue(long userID, long itemID); @Override Long getPreferenceTime(long userID, long itemID); @Override int getNumItems(); @Override int getNumUsers(); @Override int getNumUsersWithPreferenceFor(long itemID); @Override int getNumUsersWithPreferenceFor(long itemID1, long itemID2); @Override void setPreference(long userID, long itemID, float value); @Override void removePreference(long userID, long itemID); @Override void refresh(Collection<Refreshable> alreadyRefreshed); @Override boolean hasPreferenceValues(); @Override float getMaxPreference(); @Override float getMinPreference(); @Override String toString(); static final long DEFAULT_MIN_RELOAD_INTERVAL_MS; }