Lucene.Net.Codecs.Sep.SepSkipListWriter refactor: PosOutput (setter only) > SetPosOutput(IntIndexOutput), PayloadOutput (setter only) > SetPayloadOutput(IndexOutput)
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a1c6d3d6 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a1c6d3d6 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a1c6d3d6 Branch: refs/heads/api-work Commit: a1c6d3d67e8a331f13e05a603528b8051c091aac Parents: a5cffba Author: Shad Storhaug <[email protected]> Authored: Sun Jan 29 16:01:41 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Sun Jan 29 17:10:23 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a1c6d3d6/src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs b/src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs index d817d40..cbbd970 100644 --- a/src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs +++ b/src/Lucene.Net.Codecs/Sep/SepSkipListWriter.cs @@ -90,21 +90,18 @@ namespace Lucene.Net.Codecs.Sep _indexOptions = v; } - internal virtual IntIndexOutput PosOutput // LUCENENET TODO: Make SetPosOutput(IntIndexOutput posOutput) + internal virtual void SetPosOutput(IntIndexOutput posOutput) { - set + _posOutput = posOutput; + for (var i = 0; i < m_numberOfSkipLevels; i++) { - _posOutput = value; - for (var i = 0; i < m_numberOfSkipLevels; i++) - { - _posIndex[i] = value.GetIndex(); - } + _posIndex[i] = posOutput.GetIndex(); } } - internal virtual IndexOutput PayloadOutput // LUCENENET TODO: Make SetPayloadOutput(IndexOutput payloadOutput) + internal virtual void SetPayloadOutput(IndexOutput payloadOutput) { - set { _payloadOutput = value; } + _payloadOutput = payloadOutput; } /// <summary>
