You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/12/07 23:44:21 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request #567: Serializable support (closes #275, closes LUCENENET-574)

NightOwl888 opened a new pull request #567:
URL: https://github.com/apache/lucenenet/pull/567


   This removes serialization from analyzers, queries and filters. Following Microsoft's lead on [serializable types in .NET Core](https://docs.microsoft.com/en-us/dotnet/standard/serialization/binary-serialization#serializable-types), there are 4 basic types of classes that we are making serializable:
   
   1. Exceptions
   2. Collections
   3. Low-level holder types (such as `BytesRef`, `CharsRef`, etc.)
   4. Stateless `IComparer<T>` implementations that are publicly exposed directly or through collections
   
   ### Serializable Types in Lucene.NET 4.8.0
   
   - `Lucene.AlreadyClosedException` (internal)
   - `Lucene.ArrayIndexOutOfBoundsException` (internal)
   - `Lucene.AssertionError` (internal)
   - `Lucene.ClassNotFoundException` (internal)
   - `Lucene.EOFException` (internal)
   - `Lucene.Error` (internal)
   - `Lucene.IllegalArgumentException` (internal)
   - `Lucene.IllegalStateException` (internal)
   - `Lucene.IndexOutOfBoundsException` (internal)
   - `Lucene.Net.Analysis.Phonetic.Language.Bm.Phoneme+PhonemeComparer` (private)
   - `Lucene.Net.Benchmarks.ByTask.Feeds.NoMoreDataException`
   - `Lucene.Net.Diagnostics.AssertionException`
   - `Lucene.Net.Documents.Field+Byte` (protected)
   - `Lucene.Net.Documents.Field+Double` (protected)
   - `Lucene.Net.Documents.Field+Int16` (protected)
   - `Lucene.Net.Documents.Field+Int32` (protected)
   - `Lucene.Net.Documents.Field+Int64` (protected)
   - `Lucene.Net.Documents.Field+Number` (protected)
   - `Lucene.Net.Documents.Field+Single` (protected)
   - `Lucene.Net.Index.CorruptIndexException`
   - `Lucene.Net.Index.IndexFormatTooNewException`
   - `Lucene.Net.Index.IndexFormatTooOldException`
   - `Lucene.Net.Index.IndexNotFoundException`
   - `Lucene.Net.Index.IndexOptionsComparer`
   - `Lucene.Net.Index.MergePolicy+MergeAbortedException`
   - `Lucene.Net.Index.MergePolicy+MergeException`
   - `Lucene.Net.Index.TwoPhaseCommitTool+CommitFailException`
   - `Lucene.Net.Index.TwoPhaseCommitTool+PrepareCommitFailException`
   - `Lucene.Net.Queries.Function.DocValues.DocTermsIndexDocValues+DocTermsIndexException`
   - `Lucene.Net.QueryParsers.Classic.ParseException`
   - `Lucene.Net.QueryParsers.Classic.QueryParser+LookaheadSuccess` (private)
   - `Lucene.Net.QueryParsers.Classic.QueryParserBase+MethodRemovedUseAnother`
   - `Lucene.Net.QueryParsers.Classic.Token`
   - `Lucene.Net.QueryParsers.Classic.TokenMgrError`
   - `Lucene.Net.QueryParsers.Flexible.Core.QueryNodeError`
   - `Lucene.Net.QueryParsers.Flexible.Core.QueryNodeException`
   - `Lucene.Net.QueryParsers.Flexible.Core.QueryNodeParseException`
   - `Lucene.Net.QueryParsers.Flexible.Standard.Parser.ParseException`
   - `Lucene.Net.QueryParsers.Flexible.Standard.Parser.StandardSyntaxParser+LookaheadSuccess` (internal)
   - `Lucene.Net.QueryParsers.Flexible.Standard.Parser.Token`
   - `Lucene.Net.QueryParsers.Flexible.Standard.Parser.TokenMgrError`
   - `Lucene.Net.QueryParsers.Surround.Parser.ParseException`
   - `Lucene.Net.QueryParsers.Surround.Parser.QueryParser+LookaheadSuccess` (private)
   - `Lucene.Net.QueryParsers.Surround.Parser.Token`
   - `Lucene.Net.QueryParsers.Surround.Parser.TokenMgrError`
   - `Lucene.Net.QueryParsers.Surround.Query.TooManyBasicQueries`
   - `Lucene.Net.QueryParsers.Xml.ParserException`
   - `Lucene.Net.Replicator.SessionExpiredException`
   - `Lucene.Net.Search.BooleanQuery+TooManyClausesException`
   - `Lucene.Net.Search.CollectionTerminatedException`
   - `Lucene.Net.Search.Highlight.InvalidTokenOffsetsException`
   - `Lucene.Net.Search.SearcherExpiredException`
   - `Lucene.Net.Search.TimeLimitingCollector+TimeExceededException`
   - `Lucene.Net.Search.VectorHighlight.ScoreOrderFragmentsBuilder+ScoreComparer`
   - `Lucene.Net.Spatial.Queries.UnsupportedSpatialOperation`
   - `Lucene.Net.Store.FakeIOException`
   - `Lucene.Net.Store.LockObtainFailedException`
   - `Lucene.Net.Store.LockReleaseFailedException`
   - `Lucene.Net.Support.ConcurrentSet<T>` (internal)
   - `Lucene.Net.Support.WeakDictionary<TKey, TValue>` (internal)
   - `Lucene.Net.Util.AlreadySetException`
   - `Lucene.Net.Util.ArrayUtil+NaturalComparer<T>` (private)
   - `Lucene.Net.Util.BytesRef`
   - `Lucene.Net.Util.BytesRefHash+MaxBytesLengthExceededException`
   - `Lucene.Net.Util.CharsRef`
   - `Lucene.Net.Util.CharsRef+Utf16SortedAsUtf8Comparer` (private)
   - `Lucene.Net.Util.Int32sRef`
   - `Lucene.Net.Util.Int64BitSet`
   - `Lucene.Net.Util.Int64sRef`
   - `Lucene.Net.Util.LuceneSystemException` (internal)
   - `Lucene.Net.Util.PriorityQueue<T>`
   - `Lucene.Net.Util.ThreadInterruptedException`
   - `Lucene.Net.Util.Utf8SortedAsUnicodeComparer` (internal)
   - `Lucene.Net.Util.Utf8SortedAsUtf16Comparer` (internal)
   - `Lucene.NoClassDefFoundError` (internal)
   - `Lucene.NoSuchMethodException` (internal)
   - `Lucene.NullPointerException` (internal)
   - `Lucene.NumberFormatException` (internal)
   - `Lucene.OutOfMemoryError` (internal)
   - `Lucene.RuntimeException` (internal)
   - `Lucene.ServiceConfigurationError` (internal)
   - `Lucene.ServletException` (internal)
   - `Lucene.StackOverflowError` (internal)
   - `Lucene.StringIndexOutOfBoundsException` (internal)
   - `Lucene.UnsupportedOperationException` (internal)
   - `Sax.SAXException`
   - `Sax.SAXNotRecognizedException`
   - `Sax.SAXNotSupportedException`
   - `Sax.SAXParseException`
   
   > **NOTE:** The numbers types nested in `Lucene.Net.Documents.Field` will be replaced with similar types from `J2N.Numerics`, which are also serializable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 merged pull request #567: Serializable support (closes #275, closes LUCENENET-574)

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged pull request #567:
URL: https://github.com/apache/lucenenet/pull/567


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org