Lucene.Net.Store.IndexInput.Clone C# (CSharp) Method

Clone() public method

{@inheritDoc}

Warning: Lucene never closes cloned {@code IndexInput}s, it will only do this on the original one. The original instance must take care that cloned instances throw AlreadyClosedException when the original one is closed.

public Clone ( ) : object
return object
        public override object Clone()
        {
            return (IndexInput)base.Clone();
        }
    }

Usage Example

 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);
 }
All Usage Examples Of Lucene.Net.Store.IndexInput::Clone