Beispiel #1
0
 public override Fields Get(int docID)
 {
     if (tvx != null)
     {
         Fields fields = new TVFields(this, docID);
         if (fields.Count == 0)
         {
             // TODO: we can improve writer here, eg write 0 into
             // tvx file, so we know on first read from tvx that
             // this doc has no TVs
             return(null);
         }
         else
         {
             return(fields);
         }
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 public IteratorAnonymousInnerClassHelper(TVFields outerInstance)
 {
     this.outerInstance = outerInstance;
     upTo = this.outerInstance.fieldNumbers.Length;
     i    = 0;
 }
 public override Fields Get(int docID)
 {
     if (Tvx != null)
     {
         Fields fields = new TVFields(this, docID);
         if (fields.Size == 0)
         {
             // TODO: we can improve writer here, eg write 0 into
             // tvx file, so we know on first read from tvx that
             // this doc has no TVs
             return null;
         }
         else
         {
             return fields;
         }
     }
     else
     {
         return null;
     }
 }