2006-05-26 11:32:50 +02:00
// indexRI.java
2005-05-07 23:11:18 +02:00
// -----------------------------
2006-11-07 02:09:02 +01:00
// (C) 2005 by Michael Peter Christen; mc@anomic.de, Frankfurt a. M., Germany
// first published 6.5.2005 on http://www.anomic.de
2005-05-07 23:11:18 +02:00
//
2006-11-07 02:09:02 +01:00
// This is a part of YaCy, a peer-to-peer based web search engine
//
// $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $
// $LastChangedRevision: 1986 $
// $LastChangedBy: orbiter $
//
// LICENSE
//
2005-05-07 23:11:18 +02:00
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2006-05-26 11:32:50 +02:00
package de.anomic.index ;
2005-05-07 23:11:18 +02:00
2006-08-01 12:30:55 +02:00
import java.util.Set ;
2005-05-07 23:11:18 +02:00
2007-03-08 17:15:40 +01:00
import de.anomic.kelondro.kelondroCloneableIterator ;
2006-05-26 11:32:50 +02:00
public interface indexRI {
2005-05-07 23:11:18 +02:00
public int size ( ) ;
2006-12-22 13:54:56 +01:00
public int minMem ( ) ;
2005-05-07 23:11:18 +02:00
2007-03-08 17:15:40 +01:00
public kelondroCloneableIterator wordContainers ( String startWordHash , boolean rot ) ; // method to replace wordHashes
2006-07-26 13:21:51 +02:00
2005-05-31 19:39:14 +02:00
public long getUpdateTime ( String wordHash ) ;
2006-11-07 02:09:02 +01:00
public int indexSize ( String wordHash ) ;
2007-01-08 14:13:30 +01:00
public boolean hasContainer ( String wordHash ) ; // should only be used if in case that true is returned the getContainer is NOT called
2007-12-28 04:39:36 +01:00
public indexContainer getContainer ( String wordHash , Set < String > urlselection ) ; // if urlselection != null all url references which are not in urlselection are removed from the container
2006-05-28 03:09:31 +02:00
public indexContainer deleteContainer ( String wordHash ) ;
2006-02-14 01:12:07 +01:00
2006-12-06 13:51:46 +01:00
public boolean removeEntry ( String wordHash , String urlHash ) ;
2007-12-28 04:39:36 +01:00
public int removeEntries ( String wordHash , Set < String > urlHashes ) ;
2006-12-05 03:47:51 +01:00
public void addEntries ( indexContainer newEntries , long creationTime , boolean dhtCase ) ;
2005-05-07 23:11:18 +02:00
2006-12-05 03:47:51 +01:00
public void close ( ) ;
2005-05-07 23:11:18 +02:00
}