lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prescott Nasser <geobmx...@hotmail.com>
Subject Pulsing Codec Port help
Date Sun, 14 Sep 2014 23:30:00 GMT
 So, I've mostly ported the Pulsing Codecs and I'm running into a little trouble:
 
        private DocsEnum GetOther(DocsEnum de)
        {
            if (de == null)
                return null;
            
            var atts = de.Attributes();
            return atts.AddAttribute(PulsingEnumAttribute.class).Enums().get(this); //how
to convert this line.
        }
        
private DocsEnum SetOther(DocsEnum de, DocsEnum other)
        {
            var atts = de.Attributes();
            return atts.AddAttribute(PulsingEnumAttribute.class).Enums().put(this, other);
//how to convert this line.
        }
 
Java source here: https://github.com/apache/lucene-solr/blob/lucene_solr_4_8_0/lucene/codecs/src/java/org/apache/lucene/codecs/pulsing/PulsingPostingsReader.java
 
Any thoughts?
 
Thanks
~Prescott
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message