Пример #1
0
 public StringVector(StringVector other) : this(indri_csharpPINVOKE.new_StringVector__SWIG_1(StringVector.getCPtr(other)), true)
 {
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public StringVectorEnumerator(StringVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Пример #3
0
 public void setMetadataIndexedFields(StringVector forward, StringVector backward)
 {
     indri_csharpPINVOKE.IndexEnvironment_setMetadataIndexedFields(swigCPtr, StringVector.getCPtr(forward), StringVector.getCPtr(backward));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public void setStopwords(StringVector stopwords)
 {
     indri_csharpPINVOKE.QueryEnvironment_setStopwords(swigCPtr, StringVector.getCPtr(stopwords));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public void SetRange(int index, StringVector values)
 {
     indri_csharpPINVOKE.StringVector_SetRange(swigCPtr, index, StringVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
 public void setIndexedFields(StringVector fieldNames)
 {
     indri_csharpPINVOKE.IndexEnvironment_setIndexedFields(swigCPtr, StringVector.getCPtr(fieldNames));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #7
0
        public StringVector fieldList()
        {
            StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_fieldList(swigCPtr), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
        public StringVector documentMetadata(ScoredExtentResultVector documentIDs, string attributeName)
        {
            StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_documentMetadata__SWIG_1(swigCPtr, ScoredExtentResultVector.getCPtr(documentIDs), attributeName), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
        public ParsedDocumentVector documentsFromMetadata(string attributeName, StringVector attributeValue)
        {
            ParsedDocumentVector ret = new ParsedDocumentVector(indri_csharpPINVOKE.QueryEnvironment_documentsFromMetadata(swigCPtr, attributeName, StringVector.getCPtr(attributeValue)), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #10
0
        public StringVector GetRange(int index, int count)
        {
            IntPtr       cPtr = indri_csharpPINVOKE.StringVector_GetRange(swigCPtr, index, count);
            StringVector ret  = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #11
0
        public static StringVector Repeat(string value, int count)
        {
            IntPtr       cPtr = indri_csharpPINVOKE.StringVector_Repeat(value, count);
            StringVector ret  = (cPtr == IntPtr.Zero) ? null : new StringVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #12
0
 internal static HandleRef getCPtr(StringVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #13
0
        public StringVector stems()
        {
            StringVector ret = new StringVector(indri_csharpPINVOKE.DocumentVector_stems(swigCPtr), false);

            return(ret);
        }
 public void setMetadataIndexedFields(StringVector forward, StringVector backward) {
   indri_csharpPINVOKE.IndexEnvironment_setMetadataIndexedFields(swigCPtr, StringVector.getCPtr(forward), StringVector.getCPtr(backward));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #15
0
 public StringVector stems()
 {
     StringVector ret = new StringVector(indri_csharpPINVOKE.DocumentVector_stems(swigCPtr), false);
     return ret;
 }
Пример #16
0
 public void setStopwords(StringVector stopwords)
 {
     indri_csharpPINVOKE.QueryEnvironment_setStopwords(swigCPtr, StringVector.getCPtr(stopwords));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #17
0
 public StringVector fieldList()
 {
     StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_fieldList(swigCPtr), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #18
0
 public ParsedDocumentVector documentsFromMetadata(string attributeName, StringVector attributeValue)
 {
     ParsedDocumentVector ret = new ParsedDocumentVector(indri_csharpPINVOKE.QueryEnvironment_documentsFromMetadata(swigCPtr, attributeName, StringVector.getCPtr(attributeValue)), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public void addFileClass(string name, string iterator, string parser, string tokenizer, string startDocTag, string endDocTag, string endMetadataTag, StringVector include, StringVector exclude, StringVector index, StringVector metadata, ConfMap conflations) {
   indri_csharpPINVOKE.IndexEnvironment_addFileClass__SWIG_0(swigCPtr, name, iterator, parser, tokenizer, startDocTag, endDocTag, endMetadataTag, StringVector.getCPtr(include), StringVector.getCPtr(exclude), StringVector.getCPtr(index), StringVector.getCPtr(metadata), ConfMap.getCPtr(conflations));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #20
0
 internal static HandleRef getCPtr(StringVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public void setIndexedFields(StringVector fieldNames) {
   indri_csharpPINVOKE.IndexEnvironment_setIndexedFields(swigCPtr, StringVector.getCPtr(fieldNames));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #22
0
 public void SetRange(int index, StringVector values)
 {
     indri_csharpPINVOKE.StringVector_SetRange(swigCPtr, index, StringVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #23
0
 public StringVector documentMetadata(ScoredExtentResultVector documentIDs, string attributeName)
 {
     StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_documentMetadata__SWIG_1(swigCPtr, ScoredExtentResultVector.getCPtr(documentIDs), attributeName), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #24
0
 public StringVectorEnumerator(StringVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
Пример #25
0
 public void addFileClass(string name, string iterator, string parser, string tokenizer, string startDocTag, string endDocTag, string endMetadataTag, StringVector include, StringVector exclude, StringVector index, StringVector metadata, ConfMap conflations)
 {
     indri_csharpPINVOKE.IndexEnvironment_addFileClass__SWIG_0(swigCPtr, name, iterator, parser, tokenizer, startDocTag, endDocTag, endMetadataTag, StringVector.getCPtr(include), StringVector.getCPtr(exclude), StringVector.getCPtr(index), StringVector.getCPtr(metadata), ConfMap.getCPtr(conflations));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }