|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.mg4j.index.cluster.IdentityDocumentalStrategy
public class IdentityDocumentalStrategy
A documental strategy that maps identically local to global pointers and viceversa.
When clustering a posteriory a set of previously built renumbered indices
using a DocumentalMergedCluster,
local document pointers are actually global document pointers.
In this case, an instance of this class should be used as a strategy
for the cluster.
| Constructor Summary | |
|---|---|
IdentityDocumentalStrategy(int numberOfLocalIndices,
int numberOfDocuments)
Creates a new identity documental clustering strategy. |
|
| Method Summary | |
|---|---|
int |
globalPointer(int localIndex,
int localPointer)
Returns the global document pointer given a local index and a local document pointer. |
int |
localPointer(int globalPointer)
Returns the local document pointer corresponding to a global document pointer. |
int |
numberOfDocuments(int localIndex)
Returns the number of documents that will be assigned to the given local index. |
int |
numberOfLocalIndices()
Returns the number of local indices handled by this strategy. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityDocumentalStrategy(int numberOfLocalIndices,
int numberOfDocuments)
numberOfLocalIndices - the number of local indices.numberOfDocuments - the number of documents.| Method Detail |
|---|
public int numberOfLocalIndices()
ClusteringStrategy
numberOfLocalIndices in interface ClusteringStrategypublic int localPointer(int globalPointer)
DocumentalClusteringStrategy
localPointer in interface DocumentalClusteringStrategyglobalPointer - a global document pointer.
public int globalPointer(int localIndex,
int localPointer)
DocumentalClusteringStrategy
globalPointer in interface DocumentalClusteringStrategylocalIndex - the local index.localPointer - the local document pointer in localIndex.
public int numberOfDocuments(int localIndex)
DocumentalClusteringStrategy
numberOfDocuments in interface DocumentalClusteringStrategylocalIndex - the local index.
localIndex.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||