public class TermInfo extends AbstractSdxObject
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME_SUFFIX |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
DEFAULT_ENCODING
Constructor and Description |
---|
TermInfo()
Creates this object
A super.getLog() must be set and then this TermInfo must be setUp.
|
Modifier and Type | Method and Description |
---|---|
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).
|
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
public static final java.lang.String CLASS_NAME_SUFFIX
public TermInfo()
A super.getLog() must be set and then this TermInfo must be setUp.
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
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.