Class IndexWriter.IntIndexCollectorUncompressed

    • Constructor Summary

      Constructors 
      Constructor Description
      IntIndexCollectorUncompressed​(int size)
      Create an IntIndexCollectorUncompressed of the given size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int get​(int index)
      Retrieve an entry.
      void set​(int index, int value)
      Set a particular entry.
      IIndexReader.IOne2OneIndex writeTo​(java.io.File indexFile)
      Store the collector to a file.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntIndexCollectorUncompressed

        public IntIndexCollectorUncompressed​(int size)
        Create an IntIndexCollectorUncompressed of the given size.
        Parameters:
        size - the requiredsize
    • Method Detail

      • set

        public void set​(int index,
                        int value)
        Set a particular entry.
        Parameters:
        index - the index into the array
        value - the value
      • get

        public int get​(int index)
        Retrieve an entry.
        Parameters:
        index - the index
        Returns:
        the value
      • writeTo

        public IIndexReader.IOne2OneIndex writeTo​(java.io.File indexFile)
                                           throws java.io.IOException
        Store the collector to a file.
        Parameters:
        indexFile - the file
        Returns:
        an index which holds the same values as the collector
        Throws:
        java.io.IOException - if a problem occurred with the write