You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2007/10/16 21:41:50 UTC

[jira] Commented: (LUCENENET-103) Need to implement ICloneable on RAMDirectory

    [ https://issues.apache.org/jira/browse/LUCENENET-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535326 ] 

Digy commented on LUCENENET-103:
--------------------------------

Hi Jon,

To create an  <B>independent </B> copy from the source,  both Lucene and Lucene.Net use
"Lucene.Net.Store.Directory.Copy" static-method.  

Java(from SVN):
public RAMDirectory(Directory dir) throws IOException {
    this(dir, false);
  }
  
  private RAMDirectory(Directory dir, boolean closeDir) throws IOException {
    this();
    Directory.copy(dir, this, closeDir);
  }

.NET(from SVN):
public RAMDirectory(Directory dir):this(dir, false)
{
}
		
private RAMDirectory(Directory dir, bool closeDir):this()
{
	Directory.Copy(dir, this, closeDir);
}


No Diff between Java and .NET code. (I haven't also found a "clone" method in java version too)


DIGY


> Need to implement ICloneable on RAMDirectory
> --------------------------------------------
>
>                 Key: LUCENENET-103
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-103
>             Project: Lucene.Net
>          Issue Type: Improvement
>         Environment: C# 2.0
>            Reporter: Jon Davis
>            Priority: Minor
>
> IClonable needs to be added to Lucene.net's RAMDirectory.
> See Lucene (Java) item resolution at: 
> http://www.mail-archive.com/lucene-dev@jakarta.apache.org/msg03725.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.