|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.sdx.utils.AbstractSdxObject fr.gouv.culture.sdx.search.lucene.query.TermInfo
public class TermInfo
Information regarding a term of a search index
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
---|
SdxObject.ConfigurationNode |
Field Summary | |
---|---|
static java.lang.String |
CLASS_NAME_SUFFIX
|
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable |
---|
DEFAULT_ENCODING |
Constructor Summary | |
---|---|
TermInfo()
Creates this object A super.getLog() must be set and then this TermInfo must be setUp. |
Method Summary | |
---|---|
java.lang.String |
getAppId()
Returns an application id. |
protected java.lang.String |
getClassNameSuffix()
Sub classes should element this method to return their class name suffix for SAX output |
java.lang.String |
getContent()
Returns the content of the term. |
java.lang.String |
getDbId()
Returns a document base id. |
int |
getDocFrequency()
Returns the number of documents in which the term is found. |
java.lang.String |
getDocId()
Returns a document id. |
java.lang.String |
getField()
Returns the field name for this term. |
org.apache.lucene.index.Term |
getTerm()
Returns the Lucene term. |
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML |
protected void |
initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML Some objects need to be refresh each time a toSAX is called |
void |
setAppId(java.lang.String appId)
|
void |
setDbId(java.lang.String dbId)
|
void |
setDocId(java.lang.String docId)
|
void |
setUp(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term)
Builds the TermInfo from an index reader and a term. |
void |
setUp(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.Term term,
int nb)
Builds an object from a filtered term. |
void |
setUp(java.lang.String field,
java.lang.String value)
Builds the TermInfo from an index reader and a term. |
void |
update(org.apache.lucene.index.IndexReader r,
org.apache.lucene.index.Term t)
Updates the information from a new occurrence of a term (in another document base usually). |
void |
update(java.lang.String field,
java.lang.String value)
Updates the information from a new occurrence of a term (in another document base usually). |
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_NAME_SUFFIX
Constructor Detail |
---|
public TermInfo()
A super.getLog() must be set and then this TermInfo must be setUp.
AbstractSdxObject.enableLogging(org.apache.avalon.framework.logger.Logger)
,
setUp(java.lang.String, java.lang.String)
Method Detail |
---|
public void setUp(java.lang.String field, java.lang.String value) throws SDXException
field
- The field name.value
- The value.
SDXException
public void setUp(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term) throws SDXException
reader
- The index reader.term
- The Lucene term.
SDXException
public void setUp(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term term, int nb) throws SDXException
reader
- The index reader.term
- The Lucene term.nb
- The number of documents.
SDXException
public void setDocId(java.lang.String docId)
public void setDbId(java.lang.String dbId)
public void setAppId(java.lang.String appId)
public int getDocFrequency()
public java.lang.String getField()
public java.lang.String getContent()
public org.apache.lucene.index.Term getTerm()
public java.lang.String getDocId()
public java.lang.String getDbId()
public java.lang.String getAppId()
public void update(org.apache.lucene.index.IndexReader r, org.apache.lucene.index.Term t)
r
- The index reader.t
- The Lucene term.public void update(java.lang.String field, java.lang.String value)
field
- The field name.value
- The value.protected java.lang.String getClassNameSuffix()
AbstractSdxObject
getClassNameSuffix
in class AbstractSdxObject
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractSdxObject
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractSdxObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |