public override void SeekExact(BytesRef term, TermState state) { throw IllegalStateException.Create("this method should never be called"); }
/// <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);
public override void CopyFrom(TermState other) { throw UnsupportedOperationException.Create(); }
public override void SeekExact(BytesRef term, TermState state) { throw new InvalidOperationException("this method should never be called"); }
public override void CopyFrom(TermState other) { throw new NotSupportedException(); }
/// <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); }
/// <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"); }
public override void SeekExact(BytesRef term, TermState state) { Debug.Assert(state != null && state is OrdTermState); this.SeekExact(((OrdTermState)state).Ord); }