public enum MultiValueMode extends Enum<MultiValueMode>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
MultiValueMode.UnsortedNumericDoubleValues
Interface allowing custom value generators to be used in MultiValueMode.
|
| 列挙型定数と説明 |
|---|
AVG
Pick the average of all the values.
|
MAX
Pick the highest value.
|
MEDIAN
Pick the median of the values.
|
MIN
Pick the lowest value.
|
SUM
Pick the sum of all the values.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static MultiValueMode |
fromString(String sortMode)
A case insensitive version of
valueOf(String) |
protected org.apache.lucene.util.BytesRef |
pick(org.apache.lucene.index.BinaryDocValues values,
org.apache.lucene.util.BytesRefBuilder builder,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc) |
protected double |
pick(MultiValueMode.UnsortedNumericDoubleValues values,
double missingValue,
int doc) |
protected int |
pick(org.apache.lucene.index.RandomAccessOrds values,
int doc) |
protected org.apache.lucene.util.BytesRef |
pick(SortedBinaryDocValues values,
org.apache.lucene.util.BytesRef missingValue,
int doc) |
protected int |
pick(org.apache.lucene.index.SortedDocValues values,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc) |
protected long |
pick(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc) |
protected long |
pick(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
int doc) |
protected double |
pick(SortedNumericDoubleValues values,
double missingValue,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc) |
protected double |
pick(SortedNumericDoubleValues values,
double missingValue,
int doc) |
NumericDoubleValues |
select(MultiValueMode.UnsortedNumericDoubleValues values,
double missingValue)
Return a
NumericDoubleValues instance that can be used to sort documents
with this mode and the provided values. |
org.apache.lucene.index.SortedDocValues |
select(org.apache.lucene.index.RandomAccessOrds values)
Return a
SortedDocValues instance that can be used to sort documents
with this mode and the provided values. |
org.apache.lucene.index.SortedDocValues |
select(org.apache.lucene.index.RandomAccessOrds values,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs)
Return a
SortedDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents. |
org.apache.lucene.index.BinaryDocValues |
select(SortedBinaryDocValues values,
org.apache.lucene.util.BytesRef missingValue)
Return a
BinaryDocValues instance that can be used to sort documents
with this mode and the provided values. |
org.apache.lucene.index.BinaryDocValues |
select(SortedBinaryDocValues values,
org.apache.lucene.util.BytesRef missingValue,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs,
int maxDoc)
Return a
BinaryDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents. |
org.apache.lucene.index.NumericDocValues |
select(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue)
Return a
NumericDocValues instance that can be used to sort documents
with this mode and the provided values. |
org.apache.lucene.index.NumericDocValues |
select(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs,
int maxDoc)
Return a
NumericDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents. |
NumericDoubleValues |
select(SortedNumericDoubleValues values,
double missingValue)
Return a
NumericDoubleValues instance that can be used to sort documents
with this mode and the provided values. |
NumericDoubleValues |
select(SortedNumericDoubleValues values,
double missingValue,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs,
int maxDoc)
Return a
NumericDoubleValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents. |
static MultiValueMode |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static MultiValueMode[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final MultiValueMode SUM
public static final MultiValueMode AVG
public static final MultiValueMode MEDIAN
public static final MultiValueMode MIN
public static final MultiValueMode MAX
public static MultiValueMode[] values()
for(MultiValueMode c: MultiValueMode.values()) System.out.println(c);
public static MultiValueMode valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public static MultiValueMode fromString(String sortMode)
valueOf(String)IllegalArgumentException - if the given string doesn't match a sort mode or is null.public org.apache.lucene.index.NumericDocValues select(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue)
NumericDocValues instance that can be used to sort documents
with this mode and the provided values. When a document has no value,
missingValue is returned.
Allowed Modes: SUM, AVG, MEDIAN, MIN, MAXprotected long pick(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
int doc)
public org.apache.lucene.index.NumericDocValues select(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs,
int maxDoc)
throws IOException
NumericDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents.
For every root document, the values of its inner documents will be aggregated.
If none of the inner documents has a value, then missingValue is returned.
Allowed Modes: SUM, AVG, MIN, MAX
NOTE: Calling the returned instance on docs that are not root docs is illegal
The returned instance can only be evaluate the current and upcoming docsIOExceptionprotected long pick(org.apache.lucene.index.SortedNumericDocValues values,
long missingValue,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc)
public NumericDoubleValues select(SortedNumericDoubleValues values, double missingValue)
NumericDoubleValues instance that can be used to sort documents
with this mode and the provided values. When a document has no value,
missingValue is returned.
Allowed Modes: SUM, AVG, MEDIAN, MIN, MAXprotected double pick(SortedNumericDoubleValues values, double missingValue, int doc)
public NumericDoubleValues select(SortedNumericDoubleValues values, double missingValue, org.apache.lucene.util.BitSet rootDocs, org.apache.lucene.search.DocIdSetIterator innerDocs, int maxDoc) throws IOException
NumericDoubleValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents.
For every root document, the values of its inner documents will be aggregated.
If none of the inner documents has a value, then missingValue is returned.
Allowed Modes: SUM, AVG, MIN, MAX
NOTE: Calling the returned instance on docs that are not root docs is illegal
The returned instance can only be evaluate the current and upcoming docsIOExceptionprotected double pick(SortedNumericDoubleValues values, double missingValue, org.apache.lucene.search.DocIdSetIterator docItr, int startDoc, int endDoc)
public org.apache.lucene.index.BinaryDocValues select(SortedBinaryDocValues values, org.apache.lucene.util.BytesRef missingValue)
BinaryDocValues instance that can be used to sort documents
with this mode and the provided values. When a document has no value,
missingValue is returned.
Allowed Modes: MIN, MAXprotected org.apache.lucene.util.BytesRef pick(SortedBinaryDocValues values, org.apache.lucene.util.BytesRef missingValue, int doc)
public org.apache.lucene.index.BinaryDocValues select(SortedBinaryDocValues values, org.apache.lucene.util.BytesRef missingValue, org.apache.lucene.util.BitSet rootDocs, org.apache.lucene.search.DocIdSetIterator innerDocs, int maxDoc) throws IOException
BinaryDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents.
For every root document, the values of its inner documents will be aggregated.
If none of the inner documents has a value, then missingValue is returned.
Allowed Modes: MIN, MAX
NOTE: Calling the returned instance on docs that are not root docs is illegal
The returned instance can only be evaluate the current and upcoming docsIOExceptionprotected org.apache.lucene.util.BytesRef pick(org.apache.lucene.index.BinaryDocValues values,
org.apache.lucene.util.BytesRefBuilder builder,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc)
public org.apache.lucene.index.SortedDocValues select(org.apache.lucene.index.RandomAccessOrds values)
SortedDocValues instance that can be used to sort documents
with this mode and the provided values.
Allowed Modes: MIN, MAXprotected int pick(org.apache.lucene.index.RandomAccessOrds values,
int doc)
public org.apache.lucene.index.SortedDocValues select(org.apache.lucene.index.RandomAccessOrds values,
org.apache.lucene.util.BitSet rootDocs,
org.apache.lucene.search.DocIdSetIterator innerDocs)
throws IOException
SortedDocValues instance that can be used to sort root documents
with this mode, the provided values and filters for root/inner documents.
For every root document, the values of its inner documents will be aggregated.
Allowed Modes: MIN, MAX
NOTE: Calling the returned instance on docs that are not root docs is illegal
The returned instance can only be evaluate the current and upcoming docsIOExceptionprotected int pick(org.apache.lucene.index.SortedDocValues values,
org.apache.lucene.search.DocIdSetIterator docItr,
int startDoc,
int endDoc)
public NumericDoubleValues select(MultiValueMode.UnsortedNumericDoubleValues values, double missingValue)
NumericDoubleValues instance that can be used to sort documents
with this mode and the provided values. When a document has no value,
missingValue is returned.
Allowed Modes: SUM, AVG, MIN, MAXprotected double pick(MultiValueMode.UnsortedNumericDoubleValues values, double missingValue, int doc)
Copyright © 2009–2016. All rights reserved.