From: William T. S. <bu...@vi...> - 2002-06-21 21:45:45
|
Hi again, What appears to be the constructor for ThreadedFeatureTable uses "public FeatureTable(DataSource ds)", not "public ThreadedFeatureTable(DataSource ds)". Here's a code snippet (the constructor starts 8 lines from the bottom): public class ThreadedFeatureTable implements FeatureTable{ /** The column names loaded from the DataSource */ private String [] columns = null; /** The DataSource used by this Featuretable to load data */ private DataSource ds = null; /** The central table of loaded Features */ private Vector table = null; /** The current loaded Extent */ private Extent loadedExtent = null; /** The TableEventListeners attached to this object */ private Vector vTableEventListeners = new Vector(); /** The attached FeatureIndex objects */ private Vector vIndexes = new Vector(); /** The currently loading threads */ private Vector vLoadingThreads = new Vector(); /** This mode discards all the Features in this table before loading a new Extent */ public static final int MODE_DISCARD_ALL = 0; /** This mode disacrds only those Features not needed by a new Extent */ public static final int MODE_LOAD_INTERSECT = 1; private int iLoadMode = MODE_DISCARD_ALL; /** The normal, non-loading, non Index-rebuilding state of the FeatureTable */ public static final int STATE_NORMAL = 0; /** Threaded loading is in progress */ public static final int STATE_LOADING = 1; /** Indexes are being rebuilt (all TableChangedListeners are being notified) */ public static final int STATE_BUILDING = 2; private int iState = STATE_NORMAL; /** Creates a new FeatureTable with the specified number of rows */ public FeatureTable(DataSource ds) { // Set DataSource this.ds = ds; // Set columns names columns = ds.getColumnNames(); // Initialize the table table = new Vector(); } Hope this isn't old news. Best regards, Buck *********************************************************************** *William T. Stockhausen, PhD e-mail: bu...@vi... * *Senior Marine Scientist voice : 804-684-7643 * *Virginia Institute of Marine Science fax : 804-684-7250 * *College of William and Mary http://www.vims.edu/~buck * *Greate Road * *Gloucester Point, VA 23062-1346 * *********************************************************************** |