mirror of https://github.com/apache/lucene.git
LUCENE-910: added or changed warning comments for APIs related to Payloads
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@544713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db99e27deb
commit
35b5ace0ab
|
@ -39,12 +39,10 @@ import org.apache.lucene.index.TermPositions;
|
||||||
{@link TermPositions#getPayload(byte[], int)} to retrieve the payloads from the index.
|
{@link TermPositions#getPayload(byte[], int)} to retrieve the payloads from the index.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<b>
|
<p><font color="#FF0000">
|
||||||
Warning: The status of the Payloads feature is experimental. The APIs
|
WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
introduced here might change in the future and will not be supported anymore
|
The APIs introduced here might change in the future and will not be
|
||||||
in such a case. If you want to use this feature in a production environment
|
supported anymore in such a case.</font>
|
||||||
you should wait for an official release.
|
|
||||||
</b>
|
|
||||||
|
|
||||||
@see org.apache.lucene.index.Payload
|
@see org.apache.lucene.index.Payload
|
||||||
*/
|
*/
|
||||||
|
@ -137,13 +135,10 @@ public class Token implements Cloneable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets this Token's payload.
|
* Sets this Token's payload.
|
||||||
* <p>
|
* <p><font color="#FF0000">
|
||||||
* <b>
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
* The APIs introduced here might change in the future and will not be
|
||||||
* introduced here might change in the future and will not be supported anymore
|
* supported anymore in such a case.</font>
|
||||||
* in such a case. If you want to use this feature in a production environment
|
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
*/
|
*/
|
||||||
// TODO: Remove warning after API has been finalized
|
// TODO: Remove warning after API has been finalized
|
||||||
public void setPayload(Payload payload) {
|
public void setPayload(Payload payload) {
|
||||||
|
@ -152,13 +147,10 @@ public class Token implements Cloneable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns this Token's payload.
|
* Returns this Token's payload.
|
||||||
* <p>
|
* <p><font color="#FF0000">
|
||||||
* <b>
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
* The APIs introduced here might change in the future and will not be
|
||||||
* introduced here might change in the future and will not be supported anymore
|
* supported anymore in such a case.</font>
|
||||||
* in such a case. If you want to use this feature in a production environment
|
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
*/
|
*/
|
||||||
// TODO: Remove warning after API has been finalized
|
// TODO: Remove warning after API has been finalized
|
||||||
public Payload getPayload() {
|
public Payload getPayload() {
|
||||||
|
|
|
@ -34,12 +34,10 @@ import org.apache.lucene.analysis.TokenStream;
|
||||||
* to retrieve the payloads from the index.<br>
|
* to retrieve the payloads from the index.<br>
|
||||||
* <br>
|
* <br>
|
||||||
*
|
*
|
||||||
* <b>
|
* <p><font color="#FF0000">
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
* introduced here might change in the future and will not be supported anymore
|
* The APIs introduced here might change in the future and will not be
|
||||||
* in such a case. If you want to use this feature in a production environment
|
* supported anymore in such a case.</font>
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
*/
|
*/
|
||||||
// TODO: Remove warning after API has been finalized
|
// TODO: Remove warning after API has been finalized
|
||||||
public class Payload implements Serializable {
|
public class Payload implements Serializable {
|
||||||
|
|
|
@ -44,12 +44,10 @@ public interface TermPositions
|
||||||
* This is invalid until {@link #nextPosition()} is called for
|
* This is invalid until {@link #nextPosition()} is called for
|
||||||
* the first time.<br>
|
* the first time.<br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b>
|
* <p><font color="#FF0000">
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
* introduced here might change in the future and will not be supported anymore
|
* The APIs introduced here might change in the future and will not be
|
||||||
* in such a case. If you want to use this feature in a production environment
|
* supported anymore in such a case.</font>
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
* @return length of the current payload in number of bytes
|
* @return length of the current payload in number of bytes
|
||||||
*/
|
*/
|
||||||
// TODO: Remove warning after API has been finalized
|
// TODO: Remove warning after API has been finalized
|
||||||
|
@ -64,12 +62,10 @@ public interface TermPositions
|
||||||
* so if the payload data for the current position is not needed,
|
* so if the payload data for the current position is not needed,
|
||||||
* this method may not be called at all for performance reasons.<br>
|
* this method may not be called at all for performance reasons.<br>
|
||||||
* <br>
|
* <br>
|
||||||
* <b>
|
* <p><font color="#FF0000">
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
* introduced here might change in the future and will not be supported anymore
|
* The APIs introduced here might change in the future and will not be
|
||||||
* in such a case. If you want to use this feature in a production environment
|
* supported anymore in such a case.</font>
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
*
|
*
|
||||||
* @param data the array into which the data of this payload is to be
|
* @param data the array into which the data of this payload is to be
|
||||||
* stored, if it is big enough; otherwise, a new byte[] array
|
* stored, if it is big enough; otherwise, a new byte[] array
|
||||||
|
@ -88,14 +84,12 @@ public interface TermPositions
|
||||||
* Payloads can only be loaded once per call to
|
* Payloads can only be loaded once per call to
|
||||||
* {@link #nextPosition()}.
|
* {@link #nextPosition()}.
|
||||||
*
|
*
|
||||||
* @return true if there is a payload available at this position that can be loaded
|
* <p><font color="#FF0000">
|
||||||
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
|
* The APIs introduced here might change in the future and will not be
|
||||||
|
* supported anymore in such a case.</font>
|
||||||
*
|
*
|
||||||
* * <b>
|
* @return true if there is a payload available at this position that can be loaded
|
||||||
* Warning: The status of the Payloads feature is experimental. The APIs
|
|
||||||
* introduced here might change in the future and will not be supported anymore
|
|
||||||
* in such a case. If you want to use this feature in a production environment
|
|
||||||
* you should wait for an official release.
|
|
||||||
* </b>
|
|
||||||
*/
|
*/
|
||||||
// TODO: Remove warning after API has been finalized
|
// TODO: Remove warning after API has been finalized
|
||||||
public boolean isPayloadAvailable();
|
public boolean isPayloadAvailable();
|
||||||
|
|
|
@ -37,6 +37,10 @@ import java.io.IOException;
|
||||||
* <p>
|
* <p>
|
||||||
* Payload scores are averaged across term occurrences in the document.
|
* Payload scores are averaged across term occurrences in the document.
|
||||||
*
|
*
|
||||||
|
* <p><font color="#FF0000">
|
||||||
|
* WARNING: The status of the <b>Payloads</b> feature is experimental.
|
||||||
|
* The APIs introduced here might change in the future and will not be
|
||||||
|
* supported anymore in such a case.</font>
|
||||||
*
|
*
|
||||||
* @see org.apache.lucene.search.Similarity#scorePayload(byte[], int, int)
|
* @see org.apache.lucene.search.Similarity#scorePayload(byte[], int, int)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,6 +29,13 @@
|
||||||
<li><a href="./BoostingTermQuery.html">BoostingTermQuery</a> -- Boost a term's score based on the value of the payload located at that term</li>
|
<li><a href="./BoostingTermQuery.html">BoostingTermQuery</a> -- Boost a term's score based on the value of the payload located at that term</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
<DIV>
|
||||||
|
<font color="#FF0000">
|
||||||
|
WARNING: The status of the <b>Payloads</b> feature is experimental. The APIs
|
||||||
|
introduced here might change in the future and will not be supported anymore
|
||||||
|
in such a case.
|
||||||
|
</font>
|
||||||
|
</DIV>
|
||||||
<DIV> </DIV>
|
<DIV> </DIV>
|
||||||
<DIV align="center">
|
<DIV align="center">
|
||||||
</DIV>
|
</DIV>
|
||||||
|
|
Loading…
Reference in New Issue