Package weka.experiment

Examples of weka.experiment.InstanceQuery


  public void setInstancesFromDBQ(String url, String user,
                                  String pw, String query,
                                  boolean sparse) {
    if (m_IOThread == null) {
      try {
  InstanceQuery InstQ = new InstanceQuery();
        InstQ.setDatabaseURL(url);
        InstQ.setUsername(user);
        InstQ.setPassword(pw);
        InstQ.setQuery(query);
        InstQ.setSparseData(sparse);
 
        // we have to disconnect, otherwise we can't change the DB!
        if (InstQ.isConnected())
          InstQ.disconnectFromDatabase();

  InstQ.connectToDatabase();     
  try {
    addUndoPoint();
  } catch (Exception ignored) {}
  setInstancesFromDB(InstQ);
      } catch (Exception ex) {
View Full Code Here


   
    Instances result = null;
   
    // TODO perhaps add option for sparse data
    try {
      InstanceQuery iq = new InstanceQuery();
      iq.setUsername(m_User);
      iq.setPassword(m_Password);
      iq.setQuery(m_query);
     
      result = iq.retrieveInstances();
     
      if(m_DataBaseConnection.getUpperCase()) {
        m_idColumn = m_idColumn.toUpperCase();
      }
     
View Full Code Here

   */
  public void setInstancesFromDBQ(String url, String user,
                                  String pw, String query) {
    if (m_IOThread == null) {
      try {
  InstanceQuery InstQ = new InstanceQuery();
        InstQ.setDatabaseURL(url);
        InstQ.setUsername(user);
        InstQ.setPassword(pw);
        InstQ.setQuery(query);
 
        // we have to disconnect, otherwise we can't change the DB!
        if (InstQ.isConnected())
          InstQ.disconnectFromDatabase();

  InstQ.connectToDatabase();     
  try {
    addUndoPoint();
  } catch (Exception ignored) {}
  setInstancesFromDB(InstQ);
      } catch (Exception ex) {
View Full Code Here

   */
  protected void setInstancesFromDBaseQuery() {

    try {
      if (m_InstanceQuery == null) {
  m_InstanceQuery = new InstanceQuery();
      }
      String dbaseURL = m_InstanceQuery.getDatabaseURL();
      String username = m_InstanceQuery.getUsername();
      String passwd = m_InstanceQuery.getPassword();
      /*dbaseURL = (String) JOptionPane.showInputDialog(this,
View Full Code Here

    } else if (exp.getResultListener() instanceof DatabaseResultListener) {
      String dbaseURL = ((DatabaseResultListener) exp.getResultListener())
  .getDatabaseURL();
      try {
  if (m_InstanceQuery == null) {
    m_InstanceQuery = new InstanceQuery();
  }
  m_InstanceQuery.setDatabaseURL(dbaseURL);
  m_InstanceQuery.connectToDatabase();
  String tableName = m_InstanceQuery
    .getResultsTableName(exp.getResultProducer());
View Full Code Here

   */
  protected void setInstancesFromDBaseQuery() {

    try {
      if (m_InstanceQuery == null) {
  m_InstanceQuery = new InstanceQuery();
      }
      String dbaseURL = m_InstanceQuery.getDatabaseURL();
      String username = m_InstanceQuery.getUsername();
      String passwd = m_InstanceQuery.getPassword();
      /*dbaseURL = (String) JOptionPane.showInputDialog(this,
View Full Code Here

    } else if (exp.getResultListener() instanceof DatabaseResultListener) {
      String dbaseURL = ((DatabaseResultListener) exp.getResultListener())
  .getDatabaseURL();
      try {
  if (m_InstanceQuery == null) {
    m_InstanceQuery = new InstanceQuery();
  }
  m_InstanceQuery.setDatabaseURL(dbaseURL);
  m_InstanceQuery.connectToDatabase();
  String tableName = m_InstanceQuery
    .getResultsTableName(exp.getResultProducer());
View Full Code Here

   */
  public void setInstancesFromDBQ(String url, String user,
                                  String pw, String query) {
    if (m_IOThread == null) {
      try {
  InstanceQuery InstQ = new InstanceQuery();
        InstQ.setDatabaseURL(url);
        InstQ.setUsername(user);
        InstQ.setPassword(pw);
        InstQ.setQuery(query);
 
        // we have to disconnect, otherwise we can't change the DB!
        if (InstQ.isConnected())
          InstQ.disconnectFromDatabase();

  InstQ.connectToDatabase();     
  try {
    addUndoPoint();
  } catch (Exception ignored) {}
  setInstancesFromDB(InstQ);
      } catch (Exception ex) {
View Full Code Here

   */
  protected void setInstancesFromDBaseQuery() {

    try {
      if (m_InstanceQuery == null) {
  m_InstanceQuery = new InstanceQuery();
      }
      String dbaseURL = m_InstanceQuery.getDatabaseURL();
      String username = m_InstanceQuery.getUsername();
      String passwd = m_InstanceQuery.getPassword();
      /*dbaseURL = (String) JOptionPane.showInputDialog(this,
View Full Code Here

    } else if (exp.getResultListener() instanceof DatabaseResultListener) {
      String dbaseURL = ((DatabaseResultListener) exp.getResultListener())
  .getDatabaseURL();
      try {
  if (m_InstanceQuery == null) {
    m_InstanceQuery = new InstanceQuery();
  }
  m_InstanceQuery.setDatabaseURL(dbaseURL);
  m_InstanceQuery.connectToDatabase();
  String tableName = m_InstanceQuery
    .getResultsTableName(exp.getResultProducer());
View Full Code Here

TOP

Related Classes of weka.experiment.InstanceQuery

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.