public SpanNotQuery(SpanQueryBase include, SpanQueryBase exclude) { if (include == null) throw new ArgumentNullException("include", "SpanNotQuery requires an include query."); if (exclude == null) throw new ArgumentNullException("exclude", "SpanNotQuery requires an exclude query."); Include = include; Exclude = exclude; }
public SpanFirstQuery(SpanQueryBase match, Int64 end) { if (match == null) throw new ArgumentNullException("match", "SpanFirstQuery requires a match span query."); if (match is SpanFirstQuery) throw new ArgumentException("SpanFirstQuery requires the match query to be a different type of match query.", "match"); if (end <= 0) throw new ArgumentOutOfRangeException("end", "SpanFirstQuery requires the end value to be greater than zero."); Match = match; End = end; }