Changeset 2761


Ignore:
Timestamp:
03/28/13 11:17:03 (11 years ago)
Author:
akislev
Message:

one-off bug is fixed

Location:
CQIClient
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CQIClient/pom.xml

    r2478 r2761  
    1919
    2020    <groupId>eu.clarin.cqi</groupId>
    21     <version>1.0</version>
     21    <version>1.1</version>
    2222    <packaging>jar</packaging>
    2323
     
    5151        </license>
    5252    </licenses>
     53    <build>
     54        <plugins>
     55            <plugin>
     56                <groupId>org.apache.maven.plugins</groupId>
     57                <artifactId>maven-deploy-plugin</artifactId>
     58                <version>2.7</version>
     59            </plugin>
     60            <plugin>
     61                <groupId>org.apache.maven.plugins</groupId>
     62                <artifactId>maven-javadoc-plugin</artifactId>
     63                <version>2.9</version>
     64                <executions>
     65                    <execution>
     66                        <id>attach-javadocs</id>
     67                        <goals>
     68                            <goal>jar</goal>
     69                        </goals>
     70                    </execution>
     71                </executions>
     72            </plugin>
     73            <plugin>
     74                <groupId>org.apache.maven.plugins</groupId>
     75                <artifactId>maven-source-plugin</artifactId>
     76                <version>2.2.1</version>
     77            </plugin>
     78        </plugins>
     79    </build>
    5380</project>
  • CQIClient/src/main/java/eu/clarin/cqi/client/CqiClient.java

    r2178 r2761  
    174174     * Gives the corpus positional attributes.
    175175     *
    176      * @param corpusID the corpus id
     176     * @param corpus the corpus id
    177177     * @return the name of the attributes
    178178     * @throws CqiClientException
     
    790790     *
    791791     * @param corpus the corpus
    792      * @param subcorpus the subcorpus
    793792     * @param query the query
    794      * @param charset the charset
     793     * @param contextStructuralAttribute context structural attribute
     794     * @param metadataStructuralAttributes metadata structural attributes
    795795     * @throws CqiClientException
    796796     */
  • CQIClient/src/main/java/eu/clarin/cqi/client/CqiResult.java

    r2178 r2761  
    7676     *
    7777     * @return {@code true} if the cursor is moved to a position in this
    78      * {@code MatchSet} object;
    79      * {@code false} if the cursor is before the first match or after the last
    80      * match
     78     * {@code MatchSet} object; {@code false} if the cursor is before the first
     79     * match or after the last match
    8180     * @exception CqiClientException
    8281     */
     
    9089
    9190    /**
    92      * Moves the cursor froward one row from its current position. A {@code CqiResult}
    93      * cursor is initially positioned before the first match; the first call to
    94      * the method
    95      * {@code next} makes the first match the current match.
    96      *
    97      * @return {@code true} if the new current row is valid;
    98      * {@code false} if there are no more matches
     91     * Moves the cursor froward one row from its current position. A
     92     * {@code CqiResult} cursor is initially positioned before the first match;
     93     * the first call to the method {@code next} makes the first match the
     94     * current match.
     95     *
     96     * @return {@code true} if the new current row is valid; {@code false} if
     97     * there are no more matches
    9998     * @exception CqiClientException
    10099     */
     
    112111            final int bufferedEnd = (bufferedStart + BUFFER_SIZE > resultSize) ? resultSize - 1 : bufferedStart + BUFFER_SIZE - 1;
    113112            bufferedSize = bufferedEnd - bufferedStart + 1;
    114             bufferIndex = 0;
     113            bufferIndex = -1;
    115114            client.dumpSubCorpus(subCorpusName, CqiClient.CQI_CONST_FIELD_MATCH, bufferedStart, bufferedEnd, results[MATCH_START]);
    116115            client.dumpSubCorpus(subCorpusName, CqiClient.CQI_CONST_FIELD_MATCHEND, bufferedStart, bufferedEnd, results[MATCH_END]);
Note: See TracChangeset for help on using the changeset viewer.