当前位置: 首页>>代码示例>>C#>>正文


C# IndexInput.Clone方法代码示例

本文整理汇总了C#中Lucene.Net.Store.IndexInput.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# IndexInput.Clone方法的具体用法?C# IndexInput.Clone怎么用?C# IndexInput.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Lucene.Net.Store.IndexInput的用法示例。


在下文中一共展示了IndexInput.Clone方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetOrdIndexInstance

 protected override MonotonicBlockPackedReader GetOrdIndexInstance(IndexInput data, FieldInfo field,
     NumericEntry entry)
 {
     data.Seek(entry.Offset);
     return new MonotonicBlockPackedReader((IndexInput)data.Clone(), entry.PackedIntsVersion, entry.BlockSize, entry.Count,
         true);
 }
开发者ID:joyanta,项目名称:lucene.net,代码行数:7,代码来源:DiskDocValuesProducer.cs

示例2: GetAddressInstance

 protected override MonotonicBlockPackedReader GetAddressInstance(IndexInput data, FieldInfo field,
     BinaryEntry bytes)
 {
     data.Seek(bytes.AddressesOffset);
     return new MonotonicBlockPackedReader((IndexInput)data.Clone(), bytes.PackedIntsVersion, bytes.BlockSize, bytes.Count,
         true);
 }
开发者ID:joyanta,项目名称:lucene.net,代码行数:7,代码来源:DiskDocValuesProducer.cs

示例3: ChecksumEntireFile

 /// <summary>
 /// Clones the provided input, reads all bytes from the file, and calls <seealso cref="#checkFooter"/>
 /// <p>
 /// Note that this method may be slow, as it must process the entire file.
 /// If you just need to extract the checksum value, call <seealso cref="#retrieveChecksum"/>.
 /// </summary>
 public static long ChecksumEntireFile(IndexInput input)
 {
     IndexInput clone = (IndexInput)input.Clone();
     clone.Seek(0);
     ChecksumIndexInput @in = new BufferedChecksumIndexInput(clone);
     Debug.Assert(@in.FilePointer == 0);
     @in.Seek(@in.Length() - FooterLength());
     return CheckFooter(@in);
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:15,代码来源:CodecUtil.cs

示例4: SlicedIndexInput

 internal SlicedIndexInput(string sliceDescription, IndexInput @base, long fileOffset, long length, int readBufferSize)
     : base("SlicedIndexInput(" + sliceDescription + " in " + @base + " slice=" + fileOffset + ":" + (fileOffset + length) + ")", readBufferSize)
 {
     [email protected] = (IndexInput)@base.Clone();
     this.FileOffset = fileOffset;
     this.Length_Renamed = length;
 }
开发者ID:Cefa68000,项目名称:lucenenet,代码行数:7,代码来源:Directory.cs


注:本文中的Lucene.Net.Store.IndexInput.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。