All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.it.unimi.dsi.big.mg4j.index.cluster.PartitioningStrategy Maven / Gradle / Ivy

Go to download

MG4J (Managing Gigabytes for Java) is a free full-text search engine for large document collections written in Java. The big version is a fork of the original MG4J that can handle more than 2^31 terms and documents.

The newest version!
package it.unimi.dsi.big.mg4j.index.cluster;

/*		 
 * MG4J: Managing Gigabytes for Java (big)
 *
 * Copyright (C) 2006-2011 Sebastiano Vigna 
 *
 *  This library is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU Lesser General Public License as published by the Free
 *  Software Foundation; either version 3 of the License, or (at your option)
 *  any later version.
 *
 *  This library 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 Lesser General Public License
 *  for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, see .
 *
 */

import it.unimi.dsi.util.Properties;

import java.io.Serializable;

/** A common ancestor interface for all partitioning strategies.
 * 
 * 

When partitioning an index, there are a few pieces of data that * must be provided independently of the particular strategy chosen. This * interface embodies methods to access them. * *

Each local index is defined by an integer starting from 0 up to * {@link #numberOfLocalIndices()} − 1. Each local index is also associated with a * set of {@link #properties()} that is usually merged with the property file * of the local index. * * @see it.unimi.dsi.big.mg4j.index.cluster.ClusteringStrategy * @author Sebastiano Vigna */ public interface PartitioningStrategy extends Serializable { /** Returns the number of local indices created by this strategy. * @return the number of local indices created by this strategy. */ int numberOfLocalIndices(); /** Returns an array of properties, one for each local index, that specify additional information about local indices. * * @return an array of properties, one for each local index; any element * can be null (in that case, the set of properties is assumed to be empty). */ Properties[] properties(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy