메소드 | 설명 | |
---|---|---|
DoubleToSortableLong ( double val ) : long |
Converts a
|
|
FilterPrefixCodedInts ( TermsEnum termsEnum ) : TermsEnum |
Filters the given TermsEnum by accepting only prefix coded 32 bit terms with a shift value of 0.
|
|
FilterPrefixCodedLongs ( TermsEnum termsEnum ) : TermsEnum |
Filters the given TermsEnum by accepting only prefix coded 64 bit terms with a shift value of 0.
|
|
FloatToSortableInt ( float val ) : int |
Converts a
|
|
GetPrefixCodedIntShift ( BytesRef val ) : int |
Returns the shift value from a prefix encoded {@code int}.
|
|
GetPrefixCodedLongShift ( BytesRef val ) : int |
Returns the shift value from a prefix encoded {@code long}.
|
|
IntToPrefixCoded ( int val, int shift, BytesRef bytes ) : void |
Returns prefix coded bits after reducing the precision by
|
|
IntToPrefixCodedBytes ( int val, int shift, BytesRef bytes ) : void |
Returns prefix coded bits after reducing the precision by
|
|
LongToPrefixCoded ( long val, int shift, BytesRef bytes ) : void |
Returns prefix coded bits after reducing the precision by
|
|
LongToPrefixCodedBytes ( long val, int shift, BytesRef bytes ) : void |
Returns prefix coded bits after reducing the precision by
|
|
PrefixCodedToInt ( BytesRef val ) : int |
Returns an int from prefixCoded bytes. Rightmost bits will be zero for lower precision codes. this method can be used to decode a term's value.
|
|
PrefixCodedToLong ( BytesRef val ) : long |
Returns a long from prefixCoded bytes. Rightmost bits will be zero for lower precision codes. this method can be used to decode a term's value.
|
|
SortableIntToFloat ( int val ) : float |
Converts a sortable
|
|
SortableLongToDouble ( long val ) : double |
Converts a sortable
|
|
SplitIntRange ( IntRangeBuilder builder, int precisionStep, int minBound, int maxBound ) : void |
Splits an int range recursively. You may implement a builder that adds clauses to a Lucene.Net.Search.BooleanQuery for each call to its IntRangeBuilder#addRange(BytesRef,BytesRef) method. this method is used by NumericRangeQuery.
|
|
SplitLongRange ( LongRangeBuilder builder, int precisionStep, long minBound, long maxBound ) : void |
Splits a long range recursively. You may implement a builder that adds clauses to a Lucene.Net.Search.BooleanQuery for each call to its LongRangeBuilder#addRange(BytesRef,BytesRef) method. this method is used by NumericRangeQuery.
|
메소드 | 설명 | |
---|---|---|
AddRange ( object builder, int valSize, long minBound, long maxBound, int shift ) : void |
Helper that delegates to correct range builder
|
|
NumericUtils ( ) : Lucene.Net.Documents | ||
SplitRange ( object builder, int valSize, int precisionStep, long minBound, long maxBound ) : void |
this helper does the splitting for both 32 and 64 bit.
|
public static DoubleToSortableLong ( double val ) : long | ||
val | double | |
리턴 | long |
public static FilterPrefixCodedInts ( TermsEnum termsEnum ) : TermsEnum | ||
termsEnum | TermsEnum | /// the terms enum to filter |
리턴 | TermsEnum |
public static FilterPrefixCodedLongs ( TermsEnum termsEnum ) : TermsEnum | ||
termsEnum | TermsEnum | /// the terms enum to filter |
리턴 | TermsEnum |
public static FloatToSortableInt ( float val ) : int | ||
val | float | |
리턴 | int |
public static GetPrefixCodedIntShift ( BytesRef val ) : int | ||
val | BytesRef | |
리턴 | int |
public static GetPrefixCodedLongShift ( BytesRef val ) : int | ||
val | BytesRef | |
리턴 | int |
public static IntToPrefixCoded ( int val, int shift, BytesRef bytes ) : void | ||
val | int | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
리턴 | void |
public static IntToPrefixCodedBytes ( int val, int shift, BytesRef bytes ) : void | ||
val | int | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
리턴 | void |
public static LongToPrefixCoded ( long val, int shift, BytesRef bytes ) : void | ||
val | long | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
리턴 | void |
public static LongToPrefixCodedBytes ( long val, int shift, BytesRef bytes ) : void | ||
val | long | the numeric value |
shift | int | how many bits to strip from the right |
bytes | BytesRef | will contain the encoded value |
리턴 | void |
public static PrefixCodedToInt ( BytesRef val ) : int | ||
val | BytesRef | |
리턴 | int |
public static PrefixCodedToLong ( BytesRef val ) : long | ||
val | BytesRef | |
리턴 | long |
public static SortableIntToFloat ( int val ) : float | ||
val | int | |
리턴 | float |
public static SortableLongToDouble ( long val ) : double | ||
val | long | |
리턴 | double |
public static SplitIntRange ( IntRangeBuilder builder, int precisionStep, int minBound, int maxBound ) : void | ||
builder | IntRangeBuilder | |
precisionStep | int | |
minBound | int | |
maxBound | int | |
리턴 | void |
public static SplitLongRange ( LongRangeBuilder builder, int precisionStep, long minBound, long maxBound ) : void | ||
builder | LongRangeBuilder | |
precisionStep | int | |
minBound | long | |
maxBound | long | |
리턴 | void |