Exemple #1
0
 public TokenStreamAnonymousInnerClassHelper(MemoryIndex outerInstance, ICollection <T> keywords)
 {
     this.outerInstance = outerInstance;
     this.keywords      = keywords;
     iter      = keywords.GetEnumerator();
     start     = 0;
     termAtt   = AddAttribute <ICharTermAttribute>();
     offsetAtt = AddAttribute <IOffsetAttribute>();
 }
            internal IndexSearcher searcher; // needed to find searcher.getSimilarity()

            internal MemoryIndexReader(MemoryIndex outerInstance)
                : base()     // avoid as much superclass baggage as possible
            {
                this.outerInstance = outerInstance;
            }
Exemple #3
0
 public CollectorAnonymousInnerClassHelper(MemoryIndex outerInstance, float[] scores)
 {
     this.outerInstance = outerInstance;
     this.scores        = scores;
 }