lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENENET-103) Need to implement ICloneable on RAMDirectory
Date Tue, 16 Oct 2007 19:41:50 GMT

    [ 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.


Mime
View raw message