|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.di.mg4j.index.cluster.SubsetLexicalStrategy
public class SubsetLexicalStrategy
A lexical strategy that creates an index containing a subset of the terms.
Constructor Summary | |
---|---|
SubsetLexicalStrategy(IntSet subset)
Creates a new subset lexical strategy. |
Method Summary | |
---|---|
int |
localIndex(int globalNumber)
Returns the index to which a given term number is mapped by this strategy. |
int |
localNumber(int globalNumber)
Returns the local term number given a global term number. |
static void |
main(String[] arg)
|
int |
numberOfLocalIndices()
Returns the number of local indices created by this strategy. |
Properties[] |
properties()
Returns an array of properties, one for each local index, that specify additional information about local indices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubsetLexicalStrategy(IntSet subset)
subset
- the subset of terms.Method Detail |
---|
public int numberOfLocalIndices()
PartitioningStrategy
numberOfLocalIndices
in interface PartitioningStrategy
public int localIndex(int globalNumber)
LexicalPartitioningStrategy
localIndex
in interface LexicalPartitioningStrategy
globalNumber
- the term global number.
public int localNumber(int globalNumber)
LexicalPartitioningStrategy
localNumber
in interface LexicalPartitioningStrategy
globalNumber
- a global term number.
public Properties[] properties()
PartitioningStrategy
properties
in interface PartitioningStrategy
null
(in that case, the set of properties is assumed to be empty).public static void main(String[] arg) throws com.martiansoftware.jsap.JSAPException, IOException, ConfigurationException, SecurityException, URISyntaxException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
com.martiansoftware.jsap.JSAPException
IOException
ConfigurationException
SecurityException
URISyntaxException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |