1   /*
2    *  IndexedCorpus.java
3    *
4    *  Copyright (c) 1998-2005, The University of Sheffield.
5    *
6    *  This file is part of GATE (see http://gate.ac.uk/), and is free
7    *  software, licenced under the GNU Library General Public License,
8    *  Version 2, June 1991 (in the distribution as file licence.html,
9    *  and also available at http://gate.ac.uk/gate/licence.html).
10   *
11   *  Rosen Marinov, 19/Apr/2002
12   *
13   */
14  
15  package gate.creole.ir;
16  
17  import gate.Corpus;
18  
19  public interface IndexedCorpus extends Corpus{
20  
21    /** Sets the definition to this corpus.
22     * @param definition of index for this corpus
23     */
24    public void setIndexDefinition(IndexDefinition definition);
25  
26    /** @return IndexDefinition definition of index for this corpus. */
27    public IndexDefinition getIndexDefinition();
28  
29    /** @return IndexManager manager object for this corpus. It creates
30     *  after seting of IndexDefinition by indexType property. */
31    public IndexManager getIndexManager();
32  
33    /** @return IndexStatistics statistics for this index. */
34    public IndexStatistics getIndexStatistics();
35  
36  }