コード例 #1
0
 /*     */ public boolean equals(Object o) /*     */ {
   /* 149 */ if (this == o) return true;
   /* 150 */ if (!(o instanceof SpanFirstQuery)) return false;
   /*     */
   /* 152 */ SpanFirstQuery other = (SpanFirstQuery) o;
   /* 153 */ return (this.end == other.end)
       && (this.match.equals(other.match))
       && (getBoost() == other.getBoost());
   /*     */ }
コード例 #2
0
 /*     */ public Query rewrite(IndexReader reader) /*     */ throws IOException /*     */ {
   /* 132 */ SpanFirstQuery clone = null;
   /*     */
   /* 134 */ SpanQuery rewritten = (SpanQuery) this.match.rewrite(reader);
   /* 135 */ if (rewritten != this.match) {
     /* 136 */ clone = (SpanFirstQuery) clone();
     /* 137 */ clone.match = rewritten;
     /*     */ }
   /*     */
   /* 140 */ if (clone != null) {
     /* 141 */ return clone;
     /*     */ }
   /* 143 */ return this;
   /*     */ }
コード例 #3
0
 /*     */ public Object clone() /*     */ {
   /*  66 */ SpanFirstQuery spanFirstQuery =
       new SpanFirstQuery((SpanQuery) this.match.clone(), this.end);
   /*  67 */ spanFirstQuery.setBoost(getBoost());
   /*  68 */ return spanFirstQuery;
   /*     */ }