org.apache.lucene.search.spans
Class Span

Object
  extended by Span
All Implemented Interfaces:
Cloneable

public class Span
extends Object
implements Cloneable

Data holder to keep track of a single matching span.


Field Summary
 int end
          Word position of the span end
 int rank
          Rank - zero for top hit, 1 for next, etc.
 float score
          Score of the span
 int start
          Word position of the span start
 
Constructor Summary
Span()
           
 
Method Summary
 Object clone()
          Make an exact copy of this Span
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

score

public float score
Score of the span


rank

public int rank
Rank - zero for top hit, 1 for next, etc.


start

public int start
Word position of the span start


end

public int end
Word position of the span end

Constructor Detail

Span

public Span()
Method Detail

clone

public Object clone()
Make an exact copy of this Span

Overrides:
clone in class Object