Changeset 2232 for trunk/java-client


Ignore:
Timestamp:
2001-03-31T22:44:29+12:00 (23 years ago)
Author:
say1
Message:

changed corbaiface.idl "long"->"long long" and propogated the chnages ... also added comments to the idl file.

Location:
trunk/java-client
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/corbaiface.idl

    r2186 r2232  
    1717  usString text;
    1818  unsigned short encoding;
    19   unsigned long length;
     19  unsigned long long length;
    2020};
    2121
     
    6464  corbatext_t host;
    6565  // ???
    66   long        response;
     66  long long   response;
    6767};
    6868
    6969struct corbaColInfoResponse
    7070{
    71   corbaShortColInfo shoftInfo;
     71  corbaShortColInfo   shoftInfo;
    7272  // the collection is public
    73   boolean           isPublic;
     73  boolean             isPublic;
    7474  // the collection is reliable
    75   boolean           isBeta;
     75  boolean             isBeta;
    7676  // the timestamp of the collection building
    77   unsigned long     buildDate;
    78   // ???
    79   corbatext_tarray  ccsCols;        // Added 05/04/2000
    80   // ???
    81   corbatext_tarray  languages;
     77  unsigned long long       buildDate;
     78  // ???
     79  corbatext_tarray    ccsCols;        // Added 05/04/2000
     80  // ???
     81  corbatext_tarray    languages;
    8282  // the number of documents in the collection
    83   unsigned long     numDocs;
     83  unsigned long long  numDocs;
    8484  // the number of words in the collection
    85   unsigned long     numWords;
     85  unsigned long long  numWords;
    8686  // the number of bytes in the collection
    87   unsigned long     numBytes;
     87  unsigned long long  numBytes;
    8888  // the collection level metadata
    8989  corbatext_tmap    collectionMeta;
     
    173173  corbaOptionValue_array filterOptions;
    174174  corbatext_tarray       docSet;
    175   long                   filterResultOptions;
     175  long long                   filterResultOptions;
    176176  corbatext_t            requestParams;
    177177  corbatext_t            refParams;
     
    183183{
    184184  corbatext_t      term;
    185   long             frequency;
     185  long long        frequency;
    186186  corbatext_tarray matchTerms;
    187187};
     
    194194  boolean          isRef;
    195195  corbatext_tarray values;
    196   long             id;
    197   long             parentid; // dodge for avoiding pointers for the moment
     196  long long             id;
     197  long long             parentid; // dodge for avoiding pointers for the moment
    198198};
    199199
     
    206206};
    207207
    208 typedef sequence<long> corbaDocFreq_array;
     208typedef sequence<long long> corbaDocFreq_array;
    209209
    210210struct corbaResultDocInfo
    211211{
    212212  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;
    217217  corbaDocFreq_array      docFreq;
    218218  corbaMetadataInfo_map   metadata;
    219219  corbatext_t             classifierMetadataType;    // Added 05/04/2000
    220   long                    classifierMetadataOffset;  // Added 05/04/2000
     220  long long                    classifierMetadataOffset;  // Added 05/04/2000
    221221  corbaMetadataInfo_array metaparents;
    222222};
     
    233233struct corbaFilterResponse
    234234{
    235   long                     numDocs;
     235  long long                     numDocs;
    236236  corbaIsApprox            isApprox;
    237237  corbaTermInfo_array      termInfo;
  • trunk/java-client/org/nzdl/gsdl/SearchAllCollections.java

    r2215 r2232  
    273273    nzdl.service( collectionName, request, response );
    274274   
    275     int frequency = response.getResultSet().getNumOfDocs();
     275    long frequency = response.getResultSet().getNumOfDocs();
    276276    if (frequency > 0) {
    277277        System.out.println("\n------------------------------");
  • trunk/java-client/org/nzdl/gsdl/service/NzdlQueryHit.java

    r2163 r2232  
    3838
    3939  private String m_docID = null;
    40   private int    m_resultNum = -1;   // I don't actually know what it means !!!
    41   private int    m_ranking = -1;
    42   private int    m_numTermsMatched = -1;
    43   private int    m_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 !!!
    4545  /*
    4646   * The key in the map will be the metaData Tag
     
    6060  /**
    6161   * 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.
    6363   */
    64   public void setRanking( int _ranking ) {
     64  public void setRanking( long _ranking ) {
    6565    m_ranking = _ranking;
    6666  }
     
    6868  /**
    6969   * 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.
    7171   */
    72   public void setResultNumber( int _resultNum ) {
     72  public void setResultNumber( long _resultNum ) {
    7373    m_resultNum = _resultNum;
    7474  }
     
    7878   * @param numTermsMatched the number of terms matched.
    7979   */
    80   public void setNumOfTermsMatched( int _numTermsMatched ) {
     80  public void setNumOfTermsMatched( long _numTermsMatched ) {
    8181    m_numTermsMatched = _numTermsMatched;
    8282  }
     
    8686   * @param numPhrasesMatched the number of phrases matched.
    8787   */
    88   public void setNumOfPhrasesMatched( int _numPhrasesMatched ) {
     88  public void setNumOfPhrasesMatched( long _numPhrasesMatched ) {
    8989    m_numPhrasesMatched = _numPhrasesMatched;
    9090  }
     
    110110  /**
    111111   * Gets the ranking of the query hit.
    112    * @return integer representing the hits ranking.
     112   * @return longeger representing the hits ranking.
    113113   */
    114   public int getRanking() {
     114  public long getRanking() {
    115115    return m_ranking;
    116116  }
     
    118118  /**
    119119   * Gets the result number of the query hit.
    120    * @return integer representing the result number.
     120   * @return longeger representing the result number.
    121121   */
    122   public int getResultNumber() {
     122  public long getResultNumber() {
    123123    return m_resultNum;
    124124  }
     
    127127   * Gets the number of terms matched in the hit. A term is an individual word
    128128   * in a query phrase.
    129    * @return integer representing the number of terms matched.
     129   * @return longeger representing the number of terms matched.
    130130   */
    131   public int getNumOfTermsMatched() {
     131  public long getNumOfTermsMatched() {
    132132    return m_numTermsMatched;
    133133  }
     
    135135  /**
    136136   * 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.
    138138   */
    139   public int getNumOfPhrasesMatched() {
     139  public long getNumOfPhrasesMatched() {
    140140    return m_numPhrasesMatched;
    141141  }
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResponse.java

    r2176 r2232  
    6161
    6262  /**
    63    * Create an empty instance of a NzdlResponse object.
     63   *
    6464   */
    6565  public void copyData(NzdlResponse old) {
     
    178178      term = NzdlCorbaFactory.toString(_termsInfo[i].term);
    179179      m_queryTerms.add( term );
    180       m_frequencies.put( term, new Integer(_termsInfo[i].frequency) );
     180      m_frequencies.put( term, new Long(_termsInfo[i].frequency) );
    181181    }
    182182    m_resultSet.setQueryTerms( m_queryTerms );
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java

    r2163 r2232  
    4141
    4242  private List m_resultSet   = null;
    43   private int m_numDocs     = -1;
    44   private int m_resultType  = -1;
     43  private long m_numDocs     = -1;
     44  private long m_resultType  = -1;
    4545  private List m_queryTerms  = null;
    4646  private List m_docIDs = null;
     
    8080   * @param num the number of documents in the result set
    8181   */
    82   public void setNumOfDocs( int _num ) {
     82  public void setNumOfDocs( long _num ) {
    8383    m_numDocs = _num;
    8484  }
     
    8989   * @param type an integer representing the result type.
    9090   */
    91   public void setResultType( int _type ) {
     91  public void setResultType( long _type ) {
    9292    m_resultType = _type;
    9393  }
     
    121121   * by the maxDocs set in {@link NzdlQuery NzdlQuery}
    122122   */
    123   public int getNumOfDocs() {
     123  public long getNumOfDocs() {
    124124    return m_numDocs;
    125125  }
     
    132132   * @return result type as an integer.
    133133   */
    134   public int getResultType() {
     134  public long getResultType() {
    135135    return m_resultType;
    136136  }
Note: See TracChangeset for help on using the changeset viewer.