Class IndexableFeatureConjunction


  • public class IndexableFeatureConjunction
    extends java.lang.Object
    IndexableFeatureConjunction is a post-processed FeatureConjunction which can be indexed by ConjunctionIndex.
    Author:
    bjorncs
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Set<java.lang.Long> features  
      long id
      Conjunction id
      int k
      K value - number of non-negated operands
      java.util.Set<java.lang.Long> negatedFeatures  
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexableFeatureConjunction​(com.yahoo.document.predicate.FeatureConjunction conjunction)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        public final long id
        Conjunction id
      • k

        public final int k
        K value - number of non-negated operands
      • features

        public final java.util.Set<java.lang.Long> features
      • negatedFeatures

        public final java.util.Set<java.lang.Long> negatedFeatures
    • Constructor Detail

      • IndexableFeatureConjunction

        public IndexableFeatureConjunction​(com.yahoo.document.predicate.FeatureConjunction conjunction)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object