Class FieldComparer.Int64Comparer
Parses field's values as System.Int64 (using GetInt64s(AtomicReader, String, FieldCache.IInt64Parser, Boolean) and sorts by ascending value
NOTE: This was LongComparator in Lucene
Inheritance
System.Object
FieldComparer<J2N.Numerics.Int64>
FieldComparer.NumericComparer<J2N.Numerics.Int64>
FieldComparer.Int64Comparer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class Int64Comparer : FieldComparer.NumericComparer<Int64>
Properties
| Improve this Doc View SourceItem[Int32]
Declaration
public override Int64 this[int slot] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot |
Property Value
Type | Description |
---|---|
J2N.Numerics.Int64 |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.Item[System.Int32]
Methods
| Improve this Doc View SourceCompare(Int32, Int32)
Declaration
public override int Compare(int slot1, int slot2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot1 | |
System.Int32 | slot2 |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.Compare(System.Int32, System.Int32)
|
Improve this Doc
View Source
CompareBottom(Int32)
Declaration
public override int CompareBottom(int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.CompareBottom(System.Int32)
|
Improve this Doc
View Source
CompareTop(Int32)
Declaration
public override int CompareTop(int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.CompareTop(System.Int32)
|
Improve this Doc
View Source
Copy(Int32, Int32)
Declaration
public override void Copy(int slot, int doc)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot | |
System.Int32 | doc |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.Copy(System.Int32, System.Int32)
|
Improve this Doc
View Source
SetBottom(Int32)
Declaration
public override void SetBottom(int slot)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slot |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.SetBottom(System.Int32)
|
Improve this Doc
View Source
SetNextReader(AtomicReaderContext)
Declaration
public override FieldComparer SetNextReader(AtomicReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context |
Returns
Type | Description |
---|---|
FieldComparer |
Overrides
Lucene.Net.Search.FieldComparer.NumericComparer<J2N.Numerics.Int64>.SetNextReader(Lucene.Net.Index.AtomicReaderContext)
|
Improve this Doc
View Source
SetTopValue(Int64)
Declaration
public override void SetTopValue(Int64 value)
Parameters
Type | Name | Description |
---|---|---|
J2N.Numerics.Int64 | value |
Overrides
Lucene.Net.Search.FieldComparer<J2N.Numerics.Int64>.SetTopValue(J2N.Numerics.Int64)