예제 #1
0
 public IntVector(IntVector other) : this(indri_csharpPINVOKE.new_IntVector__SWIG_1(IntVector.getCPtr(other)), true)
 {
     if (indri_csharpPINVOKE.SWIGPendingException.Pending)
     {
         throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
        public DocumentVectorVector documentVectors(IntVector documentIDs)
        {
            DocumentVectorVector ret = new DocumentVectorVector(indri_csharpPINVOKE.QueryEnvironment_documentVectors(swigCPtr, IntVector.getCPtr(documentIDs)), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #3
0
 internal static HandleRef getCPtr(IntVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
예제 #4
0
        public QueryAnnotation runAnnotatedQuery(string query, IntVector documentSet, int resultsRequested)
        {
            IntPtr          cPtr = indri_csharpPINVOKE.QueryEnvironment_runAnnotatedQuery__SWIG_1(swigCPtr, query, IntVector.getCPtr(documentSet), resultsRequested);
            QueryAnnotation ret  = (cPtr == IntPtr.Zero) ? null : new QueryAnnotation(cPtr, true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #5
0
        public StringVector documentMetadata(IntVector documentIDs, string attributeName)
        {
            StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_documentMetadata__SWIG_0(swigCPtr, IntVector.getCPtr(documentIDs), attributeName), true);

            if (indri_csharpPINVOKE.SWIGPendingException.Pending)
            {
                throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #6
0
 public IntVector positions()
 {
     IntVector ret = new IntVector(indri_csharpPINVOKE.DocumentVector_positions(swigCPtr), false);
     return ret;
 }
예제 #7
0
        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);
        }
예제 #8
0
 public QueryAnnotation runAnnotatedQuery(string query, IntVector documentSet, int resultsRequested)
 {
     IntPtr cPtr = indri_csharpPINVOKE.QueryEnvironment_runAnnotatedQuery__SWIG_1(swigCPtr, query, IntVector.getCPtr(documentSet), resultsRequested);
     QueryAnnotation ret = (cPtr == IntPtr.Zero) ? null : new QueryAnnotation(cPtr, true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #9
0
 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;
 }
예제 #10
0
 public StringVector documentMetadata(IntVector documentIDs, string attributeName)
 {
     StringVector ret = new StringVector(indri_csharpPINVOKE.QueryEnvironment_documentMetadata__SWIG_0(swigCPtr, IntVector.getCPtr(documentIDs), attributeName), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #11
0
 public DocumentVectorVector documentVectors(IntVector documentIDs)
 {
     DocumentVectorVector ret = new DocumentVectorVector(indri_csharpPINVOKE.QueryEnvironment_documentVectors(swigCPtr, IntVector.getCPtr(documentIDs)), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #12
0
 public IntVector documentIDsFromMetadata(string attributeName, StringVector attributeValue)
 {
     IntVector ret = new IntVector(indri_csharpPINVOKE.QueryEnvironment_documentIDsFromMetadata(swigCPtr, attributeName, StringVector.getCPtr(attributeValue)), true);
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #13
0
파일: IntVector.cs 프로젝트: oroszgy/sefh
 public IntVectorEnumerator(IntVector collection)
 {
     collectionRef = collection;
       currentIndex = -1;
       currentObject = null;
       currentSize = collectionRef.Count;
 }
예제 #14
0
파일: IntVector.cs 프로젝트: oroszgy/sefh
 internal static HandleRef getCPtr(IntVector obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #15
0
파일: IntVector.cs 프로젝트: oroszgy/sefh
 public void SetRange(int index, IntVector values)
 {
     indri_csharpPINVOKE.IntVector_SetRange(swigCPtr, index, IntVector.getCPtr(values));
     if (indri_csharpPINVOKE.SWIGPendingException.Pending) throw indri_csharpPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #16
0
        public IntVector positions()
        {
            IntVector ret = new IntVector(indri_csharpPINVOKE.DocumentVector_positions(swigCPtr), false);

            return(ret);
        }