Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: Changed Cardinality() methods into Cardinality properties #480

Merged
merged 2 commits into from
May 2, 2021

Conversation

NightOwl888
Copy link
Contributor

@NightOwl888 NightOwl888 commented May 2, 2021

This changes Cardinality() across the API to Cardinality (a property rather than a method). Affected types:

  • Lucene.Net.Index.RandomAccessOrds
  • Lucene.Net.Util.FixedBitSet
  • Lucene.Net.Util.Int64BitSet
  • Lucene.Net.Util.OpenBitSet
  • Lucene.Net.Util.PForDeltaDocIdSet
  • Lucene.Net.Util.WAH8DocIdSet

Extension methods were also added in the same namespace for backward compatibility. These extension methods are hidden from Intellisense and marked obsolete. They will be removed in the first 4.8.0 release candidate.

NOTE: These are meant to be a best effort to reduce breaking changes, but of course the appropriate namespace may not be imported in your code. It is recommended to utilize the property rather than importing the namespace.

This also factored out the Lucene.Net.Support.BitArrayExtensions class (which was internal and had no tests) and removes all usage of System.Collections.BitArray in Lucene.NET which have been replaced with J2N.Collections.BitSet. FEATURE_BITARRAY_COPYTO was also removed.

…dinality. Types affected: FixedBitSet, Int64BitSet, OpenBitSet, PForDeltaDocIdSet, RandomAccessOrds, WAH8DocIdSet. Added obsolete extension methods for each type in the same namespace as each type, but do note this only works if the namespace is imported at the top of the file.
…occurrences of BitArray with BitSet. Removed FEATURE_BITARRAY_COPYTO.
@NightOwl888 NightOwl888 merged commit 807ce0b into apache:master May 2, 2021
@NightOwl888 NightOwl888 added this to the 4.8.0-beta00015 milestone May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant