org.apache.lucene.analysis.tokenattributes
Interface PayloadAttribute

All Superinterfaces:
Attribute
All Known Implementing Classes:
PayloadAttributeImpl, Token

public interface PayloadAttribute
extends Attribute

The payload of a Token represented as BytesRef.


Method Summary
 BytesRef getPayload()
          Returns this Token's payload.
 void setPayload(BytesRef payload)
          Sets this Token's payload.
 

Method Detail

getPayload

BytesRef getPayload()
Returns this Token's payload.


setPayload

void setPayload(BytesRef payload)
Sets this Token's payload.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.