lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [09/27] lucenenet git commit: Lucene.Net.Core.Analysis.TokenAttributes: Deleted unnecessary ITermAttribute interface (doesn't exist in Lucene 4.8.0)
Date Thu, 02 Mar 2017 01:10:52 GMT
Lucene.Net.Core.Analysis.TokenAttributes: Deleted unnecessary ITermAttribute interface (doesn't
exist in Lucene 4.8.0)


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/3ab9eaa6
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/3ab9eaa6
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/3ab9eaa6

Branch: refs/heads/api-work
Commit: 3ab9eaa62bc7b670a3fa97cf9d99c2c0a7e84875
Parents: 37c78c2
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 1 17:55:52 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 2 08:08:43 2017 +0700

----------------------------------------------------------------------
 .../Analysis/TokenAttributes/ITermAttribute.cs  | 99 --------------------
 src/Lucene.Net.Core/Lucene.Net.csproj           |  1 -
 2 files changed, 100 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3ab9eaa6/src/Lucene.Net.Core/Analysis/TokenAttributes/ITermAttribute.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Analysis/TokenAttributes/ITermAttribute.cs b/src/Lucene.Net.Core/Analysis/TokenAttributes/ITermAttribute.cs
deleted file mode 100644
index 940e6ba..0000000
--- a/src/Lucene.Net.Core/Analysis/TokenAttributes/ITermAttribute.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using Lucene.Net.Util;
-
-namespace Lucene.Net.Analysis.TokenAttributes
-{
-    /*
-     * Licensed to the Apache Software Foundation (ASF) under one or more
-     * contributor license agreements.  See the NOTICE file distributed with
-     * this work for additional information regarding copyright ownership.
-     * The ASF licenses this file to You under the Apache License, Version 2.0
-     * (the "License"); you may not use this file except in compliance with
-     * the License.  You may obtain a copy of the License at
-     *
-     *     http://www.apache.org/licenses/LICENSE-2.0
-     *
-     * Unless required by applicable law or agreed to in writing, software
-     * distributed under the License is distributed on an "AS IS" BASIS,
-     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     * See the License for the specific language governing permissions and
-     * limitations under the License.
-     */
-    
-    // LUCENENET TODO: Remove this type (it doesn't exist in Lucene 4.8.0)
-    /// <summary> The term text of a Token.</summary>
-    public interface ITermAttribute : IAttribute
-    {
-        /// <summary>Returns the Token's term text.
-        ///
-        /// This method has a performance penalty
-        /// because the text is stored internally in a char[].  If
-        /// possible, use <see cref="TermBuffer()" /> and <see cref="TermLength()"
/>
-        /// directly instead.  If you really need a
-        /// String, use this method, which is nothing more than
-        /// a convenience call to <b>new String(token.termBuffer(), 0, token.termLength())</b>
-        /// </summary>
-        string Term { get; }
-
-        /// <summary>Copies the contents of buffer, starting at offset for
-        /// length characters, into the termBuffer array.
-        /// </summary>
-        /// <param name="buffer">the buffer to copy
-        /// </param>
-        /// <param name="offset">the index in the buffer of the first character to
copy
-        /// </param>
-        /// <param name="length">the number of characters to copy
-        /// </param>
-        void SetTermBuffer(char[] buffer, int offset, int length);
-
-        /// <summary>Copies the contents of buffer into the termBuffer array.</summary>
-        /// <param name="buffer">the buffer to copy
-        /// </param>
-        void SetTermBuffer(string buffer);
-
-        /// <summary>Copies the contents of buffer, starting at offset and continuing
-        /// for length characters, into the termBuffer array.
-        /// </summary>
-        /// <param name="buffer">the buffer to copy
-        /// </param>
-        /// <param name="offset">the index in the buffer of the first character to
copy
-        /// </param>
-        /// <param name="length">the number of characters to copy
-        /// </param>
-        void SetTermBuffer(string buffer, int offset, int length);
-
-        /// <summary>Returns the internal termBuffer character array which
-        /// you can then directly alter.  If the array is too
-        /// small for your token, use <see cref="ResizeTermBuffer(int)" />
-        /// to increase it.  After
-        /// altering the buffer be sure to call <see cref="SetTermLength" />
-        /// to record the number of valid
-        /// characters that were placed into the termBuffer.
-        /// </summary>
-        char[] TermBuffer();
-
-        /// <summary>Grows the termBuffer to at least size newSize, preserving the
-        /// existing content. Note: If the next operation is to change
-        /// the contents of the term buffer use
-        /// <see cref="SetTermBuffer(char[], int, int)" />,
-        /// <see cref="SetTermBuffer(String)" />, or
-        /// <see cref="SetTermBuffer(String, int, int)" />
-        /// to optimally combine the resize with the setting of the termBuffer.
-        /// </summary>
-        /// <param name="newSize">minimum size of the new termBuffer
-        /// </param>
-        /// <returns> newly created termBuffer with length >= newSize
-        /// </returns>
-        char[] ResizeTermBuffer(int newSize);
-
-        /// <summary>
-        /// Gets or sets the number of valid characters (length of the term)
-        /// in the termBuffer array.
-        /// <para/>
-        /// Use this to truncate the termBuffer
-        /// or to synchronize with external manipulation of the termBuffer.
-        /// Note: to grow the size of the array,
-        /// use <see cref="ResizeTermBuffer(int)" /> first.
-        /// </summary>
-        int TermLength { get; set; }
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3ab9eaa6/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index 6cfb1e0..5375f9e 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -60,7 +60,6 @@
     <Compile Include="Analysis\TokenAttributes\CharTermAttribute.cs" />
     <Compile Include="Analysis\TokenAttributes\FlagsAttribute.cs" />
     <Compile Include="Analysis\TokenAttributes\IFlagsAttribute.cs" />
-    <Compile Include="Analysis\TokenAttributes\ITermAttribute.cs" />
     <Compile Include="Analysis\TokenAttributes\IKeywordAttribute.cs" />
     <Compile Include="Analysis\TokenAttributes\KeywordAttribute.cs" />
     <Compile Include="Analysis\TokenAttributes\IOffsetAttribute.cs" />


Mime
View raw message