public class ReadOnlyTermDocRecord<V extends Comparable<V>> extends Object implements ITermDocRecord<V>
ITermDocRecord
.Constructor and Description |
---|
ReadOnlyTermDocRecord(String text,
V docId,
int fieldId,
double termWeight) |
Modifier and Type | Method and Description |
---|---|
V |
getDocId()
The document identifier.
|
int |
getFieldId()
The field identifier.
|
double |
getLocalTermWeight()
The normalized local term weight for the token and document in the
associated entry of the full text search index.
|
String |
getToken()
The token text.
|
String |
toString() |
public String getToken()
ITermDocKey
getToken
in interface ITermDocKey<V extends Comparable<V>>
public V getDocId()
ITermDocKey
getDocId
in interface ITermDocKey<V extends Comparable<V>>
public int getFieldId() throws UnsupportedOperationException
ITermDocKey
getFieldId
in interface ITermDocKey<V extends Comparable<V>>
UnsupportedOperationException
- if the full text index is not storing field identifiers.public double getLocalTermWeight()
ITermDocKey
getLocalTermWeight
in interface ITermDocKey<V extends Comparable<V>>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.