Example usage for org.apache.mahout.cf.taste.impl.model.jdbc PostgreSQLBooleanPrefJDBCDataModel PostgreSQLBooleanPrefJDBCDataModel

List of usage examples for org.apache.mahout.cf.taste.impl.model.jdbc PostgreSQLBooleanPrefJDBCDataModel PostgreSQLBooleanPrefJDBCDataModel

Introduction

In this page you can find the example usage for org.apache.mahout.cf.taste.impl.model.jdbc PostgreSQLBooleanPrefJDBCDataModel PostgreSQLBooleanPrefJDBCDataModel.

Prototype

public PostgreSQLBooleanPrefJDBCDataModel(DataSource dataSource) 

Source Link

Document

Creates a using the given javax.sql.DataSource and default table/column names.

Usage

From source file:com.buddycloud.channeldirectory.search.handler.common.mahout.PostgreSQLRecommenderDataModel.java

License:Apache License

private void createDataModel() throws TasteException {
    this.dataModel = new ReloadFromJDBCDataModel(
            new PostgreSQLBooleanPrefJDBCDataModel(dataSource.getDataSource()));
}