Class IDFLookup

java.lang.Object
generic.lsh.vector.IDFLookup

public class IDFLookup extends Object
  • Constructor Details

    • IDFLookup

      public IDFLookup()
  • Method Details

    • empty

      public boolean empty()
    • getCount

      public int getCount(int hash)
    • getCapacity

      public int getCapacity()
    • getRawHash

      public int getRawHash(int pos)
    • getRawCount

      public int getRawCount(int pos)
    • saveXml

      public void saveXml(Writer fwrite) throws IOException
      Throws:
      IOException
    • restoreXml

      public void restoreXml(XmlPullParser parser)
    • toArray

      public int[] toArray()
      Collapse IDFLookup into an int array, suitable for storage
      Returns:
      int[]
    • set

      public void set(int[] hashCountPair)
      Set from an array of hash/count pairs. Every even index is a hash, every odd index is a count
      Parameters:
      hashCountPair - is the pair array