Interface IIndexReader.IOne2OneIndex

All Superinterfaces:
IIndexReader
All Known Subinterfaces:
IIndexReader.IOne2SizeIndex
All Known Implementing Classes:
IndexReader.IntIndexReader, IndexReader.SizeIndexReader, IndexWriter.IntIndexCollector
Enclosing interface:
IIndexReader

public static interface IIndexReader.IOne2OneIndex extends IIndexReader
Index from object id to another int. For example, object id to type id.
  • Method Details

    • get

      int get(int index)
      Look up an int in the underlying index
      Parameters:
      index - the int key
      Returns:
      the int value
    • getAll

      int[] getAll(int[] index)
      Look up all the items from the index array and return the version in the index
      Parameters:
      index - an array of items to look up
      Returns:
      an array of the result items
    • getNext

      int[] getNext(int index, int length)
      Look up all the items from the index from index to index + length - 1 and return the result in the index for each on
      Parameters:
      index - the start index
      length - the number of consecutive items to look up
      Returns:
      an array of the result items