You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2021/12/11 06:13:38 UTC
[lucenenet] branch master updated (f0ec411 -> be977b8)
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git.
from f0ec411 Lucene.Net.Support: Factored out ICallable<V> and ICompletionService<V> interfaces, as they are not needed
add 142035c Lucene.Net.Field: Factored out protected number classes in favor of J2N's numbers classes. Changed the formatting of GetTokenStream() for numeric types to "J" format, which is faster to generate than "R" format, but will still round-trip.
add 0f44778 BREAKING: Lucene.Net.Search.FieldComparer: Redesigned implementation to use reference types for numerics (from J2N) to avoid boxing (fixes #429)
add 44196db PERFORMANCE: Lucene.Net.Search.NumericRangeQuery: Eliminated boxing when converting from T to the numeric type and when comparing equality
add e5435e7 Lucene.Net.QueryParsers.Xml.Builders: Use J2N parsers for numeric types
add ad64c0b Lucene.Net.Codecs.SimpleText.SimpleTextStoredFieldsReader: Use J2N numeric parsers
add 2b4e8d1 Lucene.Net.Suggest.Jaspell.JaspellTernarySearchTrie: Use J2N numeric parser
add eee32d0 PERFORMANCE: Lucene.Net.Suggest.Jaspell: Use J2N numeric types to eliminate boxing
add c21786a PERFORMANCE: Lucene.Net.Search.FieldCache: Use J2N parsers and formatters
add 5319120 PERFORMANCE: Lucene.Net.Classification.Utils.DatasetSplitter: Removed duplicate calls to field methods and stored values in local variables. Use default round-trip format from J2N.
add b3fbb67 Lucene.Net.Codecs.SimpleText.SimpleTextStoredFieldsWriter: Use default round-trip format from J2N
add b4942c8 Lucene.Net.Queries: Changed all ObjectVal() methods to return J2N numeric types (fixes #428). Use J2N parsers and formatters.
add 22eb29d Lucene.Net.Queries.Function: Compare floating point numbers for equality using raw bits.
add 5c1310a BREAKING: Lucene.Net.Search.FieldCache.IParser: Renamed method from TermsEnum() to GetTermsEnum() to match other APIs
add b42a9a6 Lucene.Net.Search.FieldCacheRangeFilter: Renamed anonymous class implementations to use the "AnonymousClass" suffix
add be977b8 PERFORMANCE: Lucene.Net.Search.FieldCacheRangeFilter: Use HasValue and Value for nullable types rather casting and comparing to null
No new revisions were added by this update.
Summary of changes:
.../Utils/DatasetSplitter.cs | 30 +-
.../SimpleText/SimpleTextStoredFieldsReader.cs | 13 +-
.../SimpleText/SimpleTextStoredFieldsWriter.cs | 6 +-
src/Lucene.Net.Expressions/ExpressionComparator.cs | 10 +-
.../AbstractFirstPassGroupingCollector.cs | 2 +-
src/Lucene.Net.Grouping/BlockGroupingCollector.cs | 4 +-
.../Support/ToParentBlockJoinCollector.cs | 2 +-
.../Support/ToParentBlockJoinFieldComparator.cs | 2 +-
src/Lucene.Net.Join/ToParentBlockJoinCollector.cs | 2 +-
.../ToParentBlockJoinFieldComparator.cs | 2 +-
.../Index/Sorter/BlockJoinComparatorSource.cs | 6 +-
.../Function/DocValues/BoolDocValues.cs | 2 +-
.../Function/DocValues/DoubleDocValues.cs | 9 +-
.../Function/DocValues/FloatDocValues.cs | 4 +-
.../Function/DocValues/IntDocValues.cs | 4 +-
.../Function/DocValues/LongDocValues.cs | 2 +-
src/Lucene.Net.Queries/Function/FunctionValues.cs | 7 +-
src/Lucene.Net.Queries/Function/ValueSource.cs | 18 +-
.../Function/ValueSources/ByteFieldSource.cs | 5 +-
.../Function/ValueSources/ConstValueSource.cs | 2 +-
.../Function/ValueSources/DocFreqValueSource.cs | 4 +-
.../ValueSources/DoubleConstValueSource.cs | 4 +-
.../Function/ValueSources/EnumFieldSource.cs | 2 +-
.../Function/ValueSources/FloatFieldSource.cs | 2 +-
.../Function/ValueSources/IntFieldSource.cs | 2 +-
.../Function/ValueSources/LongFieldSource.cs | 10 +-
.../Function/ValueSources/QueryValueSource.cs | 2 +-
.../Function/ValueSources/RangeMapFloatFunction.cs | 13 +-
.../ValueSources/ReciprocalFloatFunction.cs | 13 +-
.../Function/ValueSources/ScaleFloatFunction.cs | 4 +-
.../Xml/Builders/NumericRangeFilterBuilder.cs | 24 +-
.../Xml/Builders/NumericRangeQueryBuilder.cs | 24 +-
.../Queries/SortedSetSortField.cs | 14 +-
.../Suggest/Analyzing/AnalyzingInfixSuggester.cs | 2 +-
.../Suggest/Analyzing/BlendedInfixSuggester.cs | 2 +-
.../Suggest/Jaspell/JaspellLookup.cs | 7 +-
.../Suggest/Jaspell/JaspellTernarySearchTrie.cs | 15 +-
.../Index/BaseStoredFieldsFormatTestCase.cs | 17 +-
.../TestDemoExpressions.cs | 14 +-
.../TestExpressionValueSource.cs | 14 +-
src/Lucene.Net.Tests.Grouping/TestGrouping.cs | 12 +-
.../Function/TestDocValuesFieldSources.cs | 2 +-
.../Function/TestFunctionQuerySort.cs | 2 +-
.../Queries/TestSortedSetSortField.cs | 4 +-
.../Queries/TestSortedSetSortFieldDocValues.cs | 4 +-
.../Queries/TestSortedSetSortFieldSelectors.cs | 12 +-
src/Lucene.Net.Tests/Search/JustCompileSearch.cs | 8 +-
.../Search/TestElevationComparator.cs | 23 +-
src/Lucene.Net.Tests/Search/TestFieldCache.cs | 14 +-
src/Lucene.Net.Tests/Search/TestSearchAfter.cs | 16 +-
src/Lucene.Net.Tests/Search/TestSort.cs | 28 +-
src/Lucene.Net.Tests/Search/TestSortDocValues.cs | 10 +-
src/Lucene.Net.Tests/Search/TestSortRandom.cs | 2 +-
src/Lucene.Net.Tests/Support/TestApiConsistency.cs | 2 +-
.../Util/TestFieldCacheSanityChecker.cs | 13 +-
src/Lucene.Net/Document/DoubleField.cs | 5 +-
src/Lucene.Net/Document/Field.cs | 118 ++-----
src/Lucene.Net/Document/FloatField.cs | 5 +-
src/Lucene.Net/Document/IntField.cs | 5 +-
src/Lucene.Net/Document/LongField.cs | 5 +-
src/Lucene.Net/Document/NumericDocValuesField.cs | 3 +-
src/Lucene.Net/Document/StoredField.cs | 12 +-
src/Lucene.Net/Search/FieldCache.cs | 46 +--
src/Lucene.Net/Search/FieldCacheImpl.cs | 12 +-
src/Lucene.Net/Search/FieldCacheRangeFilter.cs | 96 +++---
src/Lucene.Net/Search/FieldComparator.cs | 288 +++++++++-------
src/Lucene.Net/Search/FieldDoc.cs | 21 +-
src/Lucene.Net/Search/FieldValueHitQueue.cs | 6 +-
src/Lucene.Net/Search/NumericRangeQuery.cs | 32 +-
src/Lucene.Net/Search/SortField.cs | 111 ++++---
src/Lucene.Net/Support/Document/Field.cs | 363 ---------------------
.../Support/Util/CastTo.cs} | 37 ++-
72 files changed, 658 insertions(+), 980 deletions(-)
delete mode 100644 src/Lucene.Net/Support/Document/Field.cs
copy src/{Lucene.Net.Analysis.Stempel/Stempel/StempelPolishStemFilterFactory.cs => Lucene.Net/Support/Util/CastTo.cs} (52%)