Package org.apache.mahout.cf.taste.impl.model

Examples of org.apache.mahout.cf.taste.impl.model.BooleanPreference


    this.setPreferenceSQL = setPreferenceSQL;
  }
 
  @Override
  protected Preference buildPreference(ResultSet rs) throws SQLException {
    return new BooleanPreference(getLongColumn(rs, 1), getLongColumn(rs, 2));
  }
View Full Code Here


    this.setPreferenceSQL = setPreferenceSQL;
  }
 
  @Override
  protected Preference buildPreference(ResultSet rs) throws SQLException {
    return new BooleanPreference(getLongColumn(rs, 1), getLongColumn(rs, 2));
  }
View Full Code Here

        item = buildItem(itemID);
        itemCache.put(itemID, item);
      }
      log.debug("Read item '{}' for user ID '{}'", item, userID);
      if (preferenceValueString == null) {
        prefs.add(new BooleanPreference(null, item));
      } else {
        double preferenceValue = Double.parseDouble(preferenceValueString);
        prefs.add(buildPreference(null, item, preferenceValue));
      }
    }
View Full Code Here

    this.setPreferenceSQL = setPreferenceSQL;
  }
 
  @Override
  protected Preference buildPreference(ResultSet rs) throws SQLException {
    return new BooleanPreference(getLongColumn(rs, 1), getLongColumn(rs, 2));
  }
View Full Code Here

    this.setPreferenceSQL = setPreferenceSQL;
  }

  @Override
  protected Preference buildPreference(ResultSet rs) throws SQLException {
    return new BooleanPreference(getLongColumn(rs, 1), getLongColumn(rs, 2));
  }
View Full Code Here

TOP

Related Classes of org.apache.mahout.cf.taste.impl.model.BooleanPreference

Copyright © 2018 www.massapicom. 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.