Class DocTermsIndexDocValues
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Queries.Function.DocValues
Assembly: Lucene.Net.Queries.dll
Syntax
public abstract class DocTermsIndexDocValues : FunctionValues
Constructors
DocTermsIndexDocValues(ValueSource, AtomicReaderContext, string)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, string field)
Parameters
Type | Name | Description |
---|---|---|
ValueSource | vs | |
AtomicReaderContext | context | |
string | field |
Fields
m_spare
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly BytesRef m_spare
Field Value
Type | Description |
---|---|
BytesRef |
m_spareChars
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly CharsRef m_spareChars
Field Value
Type | Description |
---|---|
CharsRef |
m_termsIndex
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly SortedDocValues m_termsIndex
Field Value
Type | Description |
---|---|
SortedDocValues |
m_val
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly MutableValueStr m_val
Field Value
Type | Description |
---|---|
MutableValueStr |
m_vs
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly ValueSource m_vs
Field Value
Type | Description |
---|---|
ValueSource |
Properties
NumOrd
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override int NumOrd { get; }
Property Value
Type | Description |
---|---|
int | the number of unique sort ordinals this instance has |
Overrides
Methods
BoolVal(int)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override bool BoolVal(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
bool |
Overrides
BytesVal(int, BytesRef)
returns the bytes representation of the str val - TODO: should this return the indexed raw bytes not?
Declaration
public override bool BytesVal(int doc, BytesRef target)
Parameters
Type | Name | Description |
---|---|---|
int | doc | |
BytesRef | target |
Returns
Type | Description |
---|---|
bool |
Overrides
Exists(int)
Returns true
if there is a value for this document
Declaration
public override bool Exists(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
bool |
Overrides
GetRangeScorer(IndexReader, string, string, bool, bool)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override ValueSourceScorer GetRangeScorer(IndexReader reader, string lowerVal, string upperVal, bool includeLower, bool includeUpper)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
string | lowerVal | |
string | upperVal | |
bool | includeLower | |
bool | includeUpper |
Returns
Type | Description |
---|---|
ValueSourceScorer |
Overrides
GetValueFiller()
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override FunctionValues.ValueFiller GetValueFiller()
Returns
Type | Description |
---|---|
FunctionValues.ValueFiller |
Overrides
ObjectVal(int)
Native object representation of the value
Declaration
public override abstract object ObjectVal(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
object |
Overrides
OrdVal(int)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override int OrdVal(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc | The doc to retrieve to sort ordinal for |
Returns
Type | Description |
---|---|
int | the sort ordinal for the specified doc TODO: Maybe we can just use intVal for this... |
Overrides
StrVal(int)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override string StrVal(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
string |
Overrides
ToString(int)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public override string ToString(int doc)
Parameters
Type | Name | Description |
---|---|---|
int | doc |
Returns
Type | Description |
---|---|
string |
Overrides
ToTerm(string)
Serves as base class for FunctionValues based on DocTermsIndex.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected abstract string ToTerm(string readableValue)
Parameters
Type | Name | Description |
---|---|---|
string | readableValue |
Returns
Type | Description |
---|---|
string |