public class FoundDocumentField extends Object
Learn more
Modifier | Constructor and Description |
---|---|
protected |
FoundDocumentField(String fieldName,
int occurrenceCount,
double relevance,
String[] terms,
int[] termsOccurrences,
String[][] termSequences,
int[] termSequencesOccurrences,
int[][] termSequencePositions)
Initializes a new instance of the
FoundDocumentField class. |
Modifier and Type | Method and Description |
---|---|
protected static FoundDocumentField |
create(String fieldName,
int occurrenceCount,
double relevance,
String[] terms,
int[] termsOccurrences,
String[][] termSequences,
int[] termSequencesOccurrences,
int[][] termSequencePositions) |
static FoundDocumentField |
deserialize(byte[] array)
Deserializes an instance from a byte array.
|
String |
getFieldName()
Gets the field name.
|
int |
getOccurrenceCount()
Gets the number of occurrences found.
|
String[] |
getTerms()
Gets the terms found.
|
int[][] |
getTermSequencePositions()
Gets the found term sequence positions.
|
String[][] |
getTermSequences()
Gets the term sequences found.
|
int[] |
getTermSequencesOccurrences()
Gets the occurrences of the found term sequences.
|
int[] |
getTermsOccurrences()
Gets the occurrences of the found terms.
|
byte[] |
serialize()
Serializes the current instance to a byte array.
|
String |
toString()
Returns string representation of the found document field.
|
protected FoundDocumentField(String fieldName, int occurrenceCount, double relevance, String[] terms, int[] termsOccurrences, String[][] termSequences, int[] termSequencesOccurrences, int[][] termSequencePositions)
Initializes a new instance of the FoundDocumentField
class.
fieldName
- The field name.occurrenceCount
- The occurrence count.relevance
- The relevance.terms
- The found terms.termsOccurrences
- The found terms occurrences.termSequences
- The found term sequences.termSequencesOccurrences
- The occurrences of the found term sequences.termSequencePositions
- The found term sequence positions.public final String getFieldName()
Gets the field name.
public final int getOccurrenceCount()
Gets the number of occurrences found.
public final String[] getTerms()
Gets the terms found.
public final int[] getTermsOccurrences()
Gets the occurrences of the found terms.
public final String[][] getTermSequences()
Gets the term sequences found.
public final int[] getTermSequencesOccurrences()
Gets the occurrences of the found term sequences.
public String toString()
Returns string representation of the found document field.
public final int[][] getTermSequencePositions()
Gets the found term sequence positions.
public final byte[] serialize()
Serializes the current instance to a byte array.
public static FoundDocumentField deserialize(byte[] array)
Deserializes an instance from a byte array.
array
- A byte array to deserialize from.protected static FoundDocumentField create(String fieldName, int occurrenceCount, double relevance, String[] terms, int[] termsOccurrences, String[][] termSequences, int[] termSequencesOccurrences, int[][] termSequencePositions)