Class IdentityDocumentalStrategy

    • Constructor Summary

      Constructors 
      Constructor Description
      IdentityDocumentalStrategy​(int numberOfLocalIndices, long numberOfDocuments)
      Creates a new identity documental clustering strategy.
    • Constructor Detail

      • IdentityDocumentalStrategy

        public IdentityDocumentalStrategy​(int numberOfLocalIndices,
                                          long numberOfDocuments)
        Creates a new identity documental clustering strategy.
        Parameters:
        numberOfLocalIndices - the number of local indices.
        numberOfDocuments - the number of documents.
    • Method Detail

      • numberOfLocalIndices

        public int numberOfLocalIndices()
        Description copied from interface: ClusteringStrategy
        Returns the number of local indices handled by this strategy.
        Specified by:
        numberOfLocalIndices in interface ClusteringStrategy
        Returns:
        the number of local indices handled by this strategy.
      • localPointer

        public long localPointer​(long globalPointer)
        Description copied from interface: DocumentalClusteringStrategy
        Returns the local document pointer corresponding to a global document pointer.
        Specified by:
        localPointer in interface DocumentalClusteringStrategy
        Parameters:
        globalPointer - a global document pointer.
        Returns:
        the corresponding local document pointer.
      • globalPointer

        public long globalPointer​(int localIndex,
                                  long localPointer)
        Description copied from interface: DocumentalClusteringStrategy
        Returns the global document pointer given a local index and a local document pointer.
        Specified by:
        globalPointer in interface DocumentalClusteringStrategy
        Parameters:
        localIndex - the local index.
        localPointer - the local document pointer in localIndex.
        Returns:
        the global document pointer.
      • numberOfDocuments

        public long numberOfDocuments​(int localIndex)
        Description copied from interface: DocumentalClusteringStrategy
        Returns the number of documents that will be assigned to the given local index.
        Specified by:
        numberOfDocuments in interface DocumentalClusteringStrategy
        Parameters:
        localIndex - the local index.
        Returns:
        the number of documents that will be assigned to localIndex.