ca.sqlpower.architect.profile
Class LocalReservoirProfileCreator

java.lang.Object
  extended by ca.sqlpower.architect.profile.AbstractTableProfileCreator
      extended by ca.sqlpower.architect.profile.LocalReservoirProfileCreator
All Implemented Interfaces:
TableProfileCreator

public class LocalReservoirProfileCreator
extends AbstractTableProfileCreator

A profile creator that takes a statistical sample of the rows in the table and then performs the profiling operation on that sample. The profiling is done inside the local JVM, which means that a known set of aggregates will be computed for each data type, regardless of the remote database platform's support for aggregating different data types. For example, this profiler will always calculate the average date of a date column.

Unless the network connection to the remote database is very slow, expect this profile creator to be much faster than the RemoteDatabaseProfileCreator, especially on large tables.


Constructor Summary
LocalReservoirProfileCreator(ProfileSettings settings)
           
 
Method Summary
protected  boolean doProfileImpl(TableProfileResult tpr)
           
 java.lang.String toString()
           
 
Methods inherited from class ca.sqlpower.architect.profile.AbstractTableProfileCreator
doProfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalReservoirProfileCreator

public LocalReservoirProfileCreator(ProfileSettings settings)
Method Detail

doProfileImpl

protected boolean doProfileImpl(TableProfileResult tpr)
                         throws ca.sqlpower.util.reservoir.ReservoirDataException,
                                java.sql.SQLException,
                                ArchitectException
Specified by:
doProfileImpl in class AbstractTableProfileCreator
Throws:
ca.sqlpower.util.reservoir.ReservoirDataException
java.sql.SQLException
ArchitectException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca