public class ReadOnlyTermDocKey<V extends Comparable<V>> extends Object implements ITermDocKey<V>
ITermDocKey
.Constructor and Description |
---|
ReadOnlyTermDocKey(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.
|
public ReadOnlyTermDocKey(V docId, int fieldId, double termWeight)
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.