コード例 #1
0
 public override void SeekExact(BytesRef term, TermState state)
 {
     throw IllegalStateException.Create("this method should never be called");
 }
コード例 #2
0
 /// <summary>
 /// Copies the content of the given <see cref="TermState"/> to this instance
 /// </summary>
 /// <param name="other">
 ///          the <see cref="TermState"/> to copy </param>
 public abstract void CopyFrom(TermState other);
コード例 #3
0
 public override void CopyFrom(TermState other)
 {
     throw UnsupportedOperationException.Create();
 }
コード例 #4
0
 public override void SeekExact(BytesRef term, TermState state)
 {
     throw new InvalidOperationException("this method should never be called");
 }
コード例 #5
0
 public override void CopyFrom(TermState other)
 {
     throw new NotSupportedException();
 }
コード例 #6
0
ファイル: TermContext.cs プロジェクト: wow64bb/YAFNET
 /// <summary>
 /// Creates a <see cref="TermContext"/> with an initial <see cref="TermState"/>,
 /// <see cref="IndexReader"/> pair.
 /// </summary>
 public TermContext(IndexReaderContext context, TermState state, int ord, int docFreq, long totalTermFreq)
     : this(context)
 {
     Register(state, ord, docFreq, totalTermFreq);
 }
コード例 #7
0
 /// <summary>
 /// this enum does not support seeking! </summary>
 /// <exception cref="NotSupportedException"> In general, subclasses do not
 ///         support seeking. </exception>
 public override void SeekExact(BytesRef term, TermState state)
 {
     throw new NotSupportedException(this.GetType().Name + " does not support seeking");
 }
コード例 #8
0
 public override void SeekExact(BytesRef term, TermState state)
 {
     Debug.Assert(state != null && state is OrdTermState);
     this.SeekExact(((OrdTermState)state).Ord);
 }