Class IndexWriter.Identifier

    • Constructor Detail

      • Identifier

        public Identifier()
    • Method Detail

      • add

        public void add​(long id)
        Add an object.
        Parameters:
        id - the object address
      • sort

        public void sort()
        Sort the addresses of the objects in order. Also puts all of the added addresses into an array. Makes a reverse lookup easier.
      • size

        public int size()
        Description copied from interface: IIndexReader
        Size of the index
        Specified by:
        size in interface IIndexReader
        Returns:
        number of entries
      • iterator

        public IteratorLong iterator()
        Iterate through the object addresses.
        Returns:
        the iterator
      • getNext

        public long[] getNext​(int index,
                              int length)
        Description copied from interface: IIndexReader.IOne2LongIndex
        Look up long from an range of int keys in the index.
        Specified by:
        getNext in interface IIndexReader.IOne2LongIndex
        Parameters:
        index - the starting point
        length - the number of items to look up
        Returns:
        an array of longs corresponding to the input
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: IIndexReader
        Close the backing file.
        Specified by:
        close in interface IIndexReader
        Throws:
        java.io.IOException
      • delete

        public void delete()
        Description copied from interface: IIndexReader
        Delete the backing file.
        Specified by:
        delete in interface IIndexReader
      • unload

        public void unload()
                    throws java.io.IOException
        Description copied from interface: IIndexReader
        Clear the caches. Used when the indexes are not current in use and the memory needs to be reclaimed such as when building the dominator tree.
        Specified by:
        unload in interface IIndexReader
        Throws:
        java.io.IOException