|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Property
The basic Compass meta data holder. A property is a name value pair representing the mapped object attribute and value. Can be used to fetch meta data values from a resource in an abstract way.
As an example:
resource.getProperty("authorName").getStringValue();
Note that there are internal properties (that compass uses for the marshlling of objects) and meta data properties.
| Nested Class Summary | |
|---|---|
static class |
Property.Index
Specifies whether and how a meta-data property should be indexed. |
static class |
Property.Store
Specifies whether and how a meta-data property will be stored. |
static class |
Property.TermVector
Specifies whether and how a meta-data property should have term vectors. |
| Method Summary | |
|---|---|
byte[] |
getBinaryValue()
Returns the binary values of the property. |
float |
getBoost()
Returns the boost for the property. |
String |
getName()
Returns the name of the property. |
Object |
getObjectValue()
Returns the object value of the property. |
String |
getStringValue()
Returns the string value of the proerty. |
boolean |
isBinary()
True iff the value of the filed is stored as binary |
boolean |
isCompressed()
True if the value of the field is stored and compressed within the index |
boolean |
isIndexed()
True iff the value of the field is to be indexed, so that it may be searched on. |
boolean |
isOmitNorms()
Expert: If set, omit normalization factors associated with this indexed field. |
boolean |
isOmitTf()
True if tf is omitted for this indexed field |
boolean |
isStored()
True iff the value of the field is to be stored in the index for return with search hits. |
boolean |
isTermVectorStored()
True iff the term or terms used to index this field are stored as a term vector, available from TODO. |
boolean |
isTokenized()
True iff the value of the field should be tokenized as text prior to indexing. |
void |
setBoost(float boost)
Sets the boost level for the property. |
void |
setOmitNorms(boolean omitNorms)
Expert: If set, omit normalization factors associated with this indexed field. |
void |
setOmitTf(boolean omitTf)
Expert: If set, omit tf from postings of this indexed field. |
| Method Detail |
|---|
String getName()
String getStringValue()
Object getObjectValue()
byte[] getBinaryValue()
isBinary is true.
float getBoost()
void setBoost(float boost)
boolean isIndexed()
boolean isStored()
boolean isCompressed()
boolean isTokenized()
boolean isTermVectorStored()
stored attribute instead.
boolean isBinary()
boolean isOmitNorms()
void setOmitNorms(boolean omitNorms)
boolean isOmitTf()
void setOmitTf(boolean omitTf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||