Beispiel #1
0
 public ScoredExtentResultVector(ScoredExtentResultVector other) : this(indri_csharpPINVOKE.new_ScoredExtentResultVector__SWIG_1(ScoredExtentResultVector.getCPtr(other)), true)
 {
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
 public ScoredExtentResultVectorEnumerator(ScoredExtentResultVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void set(string key, ScoredExtentResultVector x)
 {
     indri_csharpPINVOKE.MResults_set(swigCPtr, key, ScoredExtentResultVector.getCPtr(x));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void SetRange(int index, ScoredExtentResultVector values)
 {
     indri_csharpPINVOKE.ScoredExtentResultVector_SetRange(swigCPtr, index, ScoredExtentResultVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public ScoredExtentResultVector getResults()
        {
            ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryAnnotation_getResults(swigCPtr), false);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #6
0
        public override string expand(string originalQuery, ScoredExtentResultVector results)
        {
            string ret = indri_csharpPINVOKE.RMExpander_expand(swigCPtr, originalQuery, ScoredExtentResultVector.getCPtr(results));

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public ScoredExtentResultVector expressionList(string expression)
        {
            ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryEnvironment_expressionList__SWIG_1(swigCPtr, expression), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public ScoredExtentResultVector get(string key)
        {
            ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.MResults_get(swigCPtr, key), false);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public ScoredExtentResultVector runQuery(string query, IntVector documentSet, int resultsRequested)
        {
            ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryEnvironment_runQuery__SWIG_1(swigCPtr, query, IntVector.getCPtr(documentSet), resultsRequested), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public ParsedDocumentVector documents(ScoredExtentResultVector results)
        {
            ParsedDocumentVector ret = new ParsedDocumentVector(indri_csharpPINVOKE.QueryEnvironment_documents__SWIG_1(swigCPtr, ScoredExtentResultVector.getCPtr(results)), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #11
0
        public ScoredExtentResultVector runExpandedQuery(string originalQuery, int resultsRequested)
        {
            ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryExpander_runExpandedQuery__SWIG_1(swigCPtr, originalQuery, resultsRequested), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        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);
        }
Beispiel #13
0
        public static ScoredExtentResultVector Repeat(ScoredExtentResult value, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.ScoredExtentResultVector_Repeat(ScoredExtentResult.getCPtr(value), count);
            ScoredExtentResultVector ret = (cPtr == IntPtr.Zero) ? null : new ScoredExtentResultVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #14
0
        public ScoredExtentResultVector GetRange(int index, int count)
        {
            IntPtr cPtr = indri_csharpPINVOKE.ScoredExtentResultVector_GetRange(swigCPtr, index, count);
            ScoredExtentResultVector ret = (cPtr == IntPtr.Zero) ? null : new ScoredExtentResultVector(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public ScoredExtentResultVector runQuery(string query, IntVector documentSet, int resultsRequested)
 {
     ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryEnvironment_runQuery__SWIG_1(swigCPtr, query, IntVector.getCPtr(documentSet), resultsRequested), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public ScoredExtentResultVector expressionList(string expression)
 {
     ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryEnvironment_expressionList__SWIG_1(swigCPtr, expression), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public ParsedDocumentVector documents(ScoredExtentResultVector results)
 {
     ParsedDocumentVector ret = new ParsedDocumentVector(indri_csharpPINVOKE.QueryEnvironment_documents__SWIG_1(swigCPtr, ScoredExtentResultVector.getCPtr(results)), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 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;
 }
Beispiel #19
0
 internal static HandleRef getCPtr(ScoredExtentResultVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #20
0
 public ScoredExtentResultVector get(string key)
 {
     ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.MResults_get(swigCPtr, key), false);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Beispiel #21
0
 public ScoredExtentResultVector runExpandedQuery(string originalQuery, int resultsRequested) {
   ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryExpander_runExpandedQuery__SWIG_1(swigCPtr, originalQuery, resultsRequested), true);
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void SetRange(int index, ScoredExtentResultVector values)
 {
     indri_csharpPINVOKE.ScoredExtentResultVector_SetRange(swigCPtr, index, ScoredExtentResultVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #23
0
 public ScoredExtentResultVector getResults() {
   ScoredExtentResultVector ret = new ScoredExtentResultVector(indri_csharpPINVOKE.QueryAnnotation_getResults(swigCPtr), false);
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Beispiel #24
0
 public void set(string key, ScoredExtentResultVector x)
 {
     indri_csharpPINVOKE.MResults_set(swigCPtr, key, ScoredExtentResultVector.getCPtr(x));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(ScoredExtentResultVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #26
0
 public override string expand(string originalQuery, ScoredExtentResultVector results) {
   string ret = indri_csharpPINVOKE.RMExpander_expand(swigCPtr, originalQuery, ScoredExtentResultVector.getCPtr(results));
   if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public ScoredExtentResultVectorEnumerator(ScoredExtentResultVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }