Changeset 2232 for trunk/java-client
- Timestamp:
- 2001-03-31T22:44:29+12:00 (23 years ago)
- Location:
- trunk/java-client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/corbaiface.idl
r2186 r2232 17 17 usString text; 18 18 unsigned short encoding; 19 unsigned long length;19 unsigned long long length; 20 20 }; 21 21 … … 64 64 corbatext_t host; 65 65 // ??? 66 long 66 long long response; 67 67 }; 68 68 69 69 struct corbaColInfoResponse 70 70 { 71 corbaShortColInfo shoftInfo;71 corbaShortColInfo shoftInfo; 72 72 // the collection is public 73 boolean isPublic;73 boolean isPublic; 74 74 // the collection is reliable 75 boolean isBeta;75 boolean isBeta; 76 76 // the timestamp of the collection building 77 unsigned long buildDate;78 // ??? 79 corbatext_tarray ccsCols; // Added 05/04/200080 // ??? 81 corbatext_tarray languages;77 unsigned long long buildDate; 78 // ??? 79 corbatext_tarray ccsCols; // Added 05/04/2000 80 // ??? 81 corbatext_tarray languages; 82 82 // the number of documents in the collection 83 unsigned long 83 unsigned long long numDocs; 84 84 // the number of words in the collection 85 unsigned long 85 unsigned long long numWords; 86 86 // the number of bytes in the collection 87 unsigned long 87 unsigned long long numBytes; 88 88 // the collection level metadata 89 89 corbatext_tmap collectionMeta; … … 173 173 corbaOptionValue_array filterOptions; 174 174 corbatext_tarray docSet; 175 long filterResultOptions;175 long long filterResultOptions; 176 176 corbatext_t requestParams; 177 177 corbatext_t refParams; … … 183 183 { 184 184 corbatext_t term; 185 long 185 long long frequency; 186 186 corbatext_tarray matchTerms; 187 187 }; … … 194 194 boolean isRef; 195 195 corbatext_tarray values; 196 long id;197 long parentid; // dodge for avoiding pointers for the moment196 long long id; 197 long long parentid; // dodge for avoiding pointers for the moment 198 198 }; 199 199 … … 206 206 }; 207 207 208 typedef sequence<long > corbaDocFreq_array;208 typedef sequence<long long> corbaDocFreq_array; 209 209 210 210 struct corbaResultDocInfo 211 211 { 212 212 corbatext_t OID; 213 long resultNum;214 long ranking;215 long termsMatched;216 long phraseMatched;213 long long resultNum; 214 long long ranking; 215 long long termsMatched; 216 long long phraseMatched; 217 217 corbaDocFreq_array docFreq; 218 218 corbaMetadataInfo_map metadata; 219 219 corbatext_t classifierMetadataType; // Added 05/04/2000 220 long classifierMetadataOffset; // Added 05/04/2000220 long long classifierMetadataOffset; // Added 05/04/2000 221 221 corbaMetadataInfo_array metaparents; 222 222 }; … … 233 233 struct corbaFilterResponse 234 234 { 235 long numDocs;235 long long numDocs; 236 236 corbaIsApprox isApprox; 237 237 corbaTermInfo_array termInfo; -
trunk/java-client/org/nzdl/gsdl/SearchAllCollections.java
r2215 r2232 273 273 nzdl.service( collectionName, request, response ); 274 274 275 intfrequency = response.getResultSet().getNumOfDocs();275 long frequency = response.getResultSet().getNumOfDocs(); 276 276 if (frequency > 0) { 277 277 System.out.println("\n------------------------------"); -
trunk/java-client/org/nzdl/gsdl/service/NzdlQueryHit.java
r2163 r2232 38 38 39 39 private String m_docID = null; 40 private intm_resultNum = -1; // I don't actually know what it means !!!41 private intm_ranking = -1;42 private intm_numTermsMatched = -1;43 private intm_numPhrasesMatched = -1;44 private int[] m_docFreqs = null; // I don't actually know what it means !!!40 private long m_resultNum = -1; // I don't actually know what it means !!! 41 private long m_ranking = -1; 42 private long m_numTermsMatched = -1; 43 private long m_numPhrasesMatched = -1; 44 private long [] m_docFreqs = null; // I don't actually know what it means !!! 45 45 /* 46 46 * The key in the map will be the metaData Tag … … 60 60 /** 61 61 * Sets the ranking. 62 * @param the ranking an integer representaion of the the hit's ranking.62 * @param the ranking an longeger representaion of the the hit's ranking. 63 63 */ 64 public void setRanking( int_ranking ) {64 public void setRanking( long _ranking ) { 65 65 m_ranking = _ranking; 66 66 } … … 68 68 /** 69 69 * Sets the result number. 70 * @param resultNum is the integer representation of the result number.70 * @param resultNum is the longeger representation of the result number. 71 71 */ 72 public void setResultNumber( int_resultNum ) {72 public void setResultNumber( long _resultNum ) { 73 73 m_resultNum = _resultNum; 74 74 } … … 78 78 * @param numTermsMatched the number of terms matched. 79 79 */ 80 public void setNumOfTermsMatched( int_numTermsMatched ) {80 public void setNumOfTermsMatched( long _numTermsMatched ) { 81 81 m_numTermsMatched = _numTermsMatched; 82 82 } … … 86 86 * @param numPhrasesMatched the number of phrases matched. 87 87 */ 88 public void setNumOfPhrasesMatched( int_numPhrasesMatched ) {88 public void setNumOfPhrasesMatched( long _numPhrasesMatched ) { 89 89 m_numPhrasesMatched = _numPhrasesMatched; 90 90 } … … 110 110 /** 111 111 * Gets the ranking of the query hit. 112 * @return integer representing the hits ranking.112 * @return longeger representing the hits ranking. 113 113 */ 114 public intgetRanking() {114 public long getRanking() { 115 115 return m_ranking; 116 116 } … … 118 118 /** 119 119 * Gets the result number of the query hit. 120 * @return integer representing the result number.120 * @return longeger representing the result number. 121 121 */ 122 public intgetResultNumber() {122 public long getResultNumber() { 123 123 return m_resultNum; 124 124 } … … 127 127 * Gets the number of terms matched in the hit. A term is an individual word 128 128 * in a query phrase. 129 * @return integer representing the number of terms matched.129 * @return longeger representing the number of terms matched. 130 130 */ 131 public intgetNumOfTermsMatched() {131 public long getNumOfTermsMatched() { 132 132 return m_numTermsMatched; 133 133 } … … 135 135 /** 136 136 * Gets the number of phrases matched in the hit. 137 * @return integer representing the number of phrases matched.137 * @return longeger representing the number of phrases matched. 138 138 */ 139 public intgetNumOfPhrasesMatched() {139 public long getNumOfPhrasesMatched() { 140 140 return m_numPhrasesMatched; 141 141 } -
trunk/java-client/org/nzdl/gsdl/service/NzdlResponse.java
r2176 r2232 61 61 62 62 /** 63 * Create an empty instance of a NzdlResponse object.63 * 64 64 */ 65 65 public void copyData(NzdlResponse old) { … … 178 178 term = NzdlCorbaFactory.toString(_termsInfo[i].term); 179 179 m_queryTerms.add( term ); 180 m_frequencies.put( term, new Integer(_termsInfo[i].frequency) );180 m_frequencies.put( term, new Long(_termsInfo[i].frequency) ); 181 181 } 182 182 m_resultSet.setQueryTerms( m_queryTerms ); -
trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java
r2163 r2232 41 41 42 42 private List m_resultSet = null; 43 private intm_numDocs = -1;44 private intm_resultType = -1;43 private long m_numDocs = -1; 44 private long m_resultType = -1; 45 45 private List m_queryTerms = null; 46 46 private List m_docIDs = null; … … 80 80 * @param num the number of documents in the result set 81 81 */ 82 public void setNumOfDocs( int_num ) {82 public void setNumOfDocs( long _num ) { 83 83 m_numDocs = _num; 84 84 } … … 89 89 * @param type an integer representing the result type. 90 90 */ 91 public void setResultType( int_type ) {91 public void setResultType( long _type ) { 92 92 m_resultType = _type; 93 93 } … … 121 121 * by the maxDocs set in {@link NzdlQuery NzdlQuery} 122 122 */ 123 public intgetNumOfDocs() {123 public long getNumOfDocs() { 124 124 return m_numDocs; 125 125 } … … 132 132 * @return result type as an integer. 133 133 */ 134 public intgetResultType() {134 public long getResultType() { 135 135 return m_resultType; 136 136 }
Note:
See TracChangeset
for help on using the changeset viewer.