|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.retrieval.PassageStore
public class PassageStore
A class to store the passages for a single field while doing proximity queries or passage highlighting.
| Field Summary | |
|---|---|
protected ArrayGroup |
ag
The array group that we're associated with. |
protected int |
nPass
The number of passages stored in the pass array. |
protected int[] |
pass
|
protected int[] |
passEndPosns
The ending positions in the passages array for the passages for a given document. |
protected int |
passPosn
The current position in the passages array. |
protected int[] |
passStartPosns
The starting positions in the passages array for the passages for a given document. |
protected float[] |
penalties
The penalties associated with each of the passsages. |
protected int |
width
The width of the passages that we're storing. |
| Constructor Summary | |
|---|---|
PassageStore(ArrayGroup ag)
Instantiates a passage store. |
|
| Method Summary | |
|---|---|
void |
add(int pos,
int[] p,
float penalty)
Adds a passage to this passage store. |
protected int[] |
getAllPassages(int doc)
Gets all of the passages associated with a document as a single array of int. |
protected float[] |
getPenalties(int doc)
|
protected float |
getPenalty(int doc)
|
protected int[][] |
getUniquePassages(int doc)
|
java.lang.String |
toString(int doc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayGroup ag
protected int[] pass
protected int[] passStartPosns
ArrayGroup.
protected int[] passEndPosns
ArrayGroup.
protected float[] penalties
protected int passPosn
protected int nPass
pass array.
protected int width
| Constructor Detail |
|---|
public PassageStore(ArrayGroup ag)
ag - The array group that we're associated with.| Method Detail |
|---|
public void add(int pos,
int[] p,
float penalty)
pos - The position to which the passage should be added.p - The passage to add.protected int[] getAllPassages(int doc)
protected float getPenalty(int doc)
protected int[][] getUniquePassages(int doc)
protected float[] getPenalties(int doc)
public java.lang.String toString(int doc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||