Class DocData
- java.lang.Object
-
- org.apache.lucene.benchmark.byTask.feeds.DocData
-
public class DocData extends Object
Output of parsing (e.g. HTML parsing) of an input document.
-
-
Constructor Summary
Constructors Constructor Description DocData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()StringgetBody()StringgetDate()intgetID()StringgetName()PropertiesgetProps()StringgetTitle()voidsetBody(String body)voidsetDate(String date)voidsetDate(Date date)voidsetID(int id)voidsetName(String name)voidsetProps(Properties props)voidsetTitle(String title)
-
-
-
Method Detail
-
clear
public void clear()
-
getBody
public String getBody()
-
getDate
public String getDate()
- Returns:
- the date. If the ctor with Date was called, then the String returned is the output of
DateTools.dateToString(Date, org.apache.lucene.document.DateTools.Resolution). Otherwise it's the String passed to the other ctor.
-
getName
public String getName()
-
getID
public int getID()
-
getProps
public Properties getProps()
-
getTitle
public String getTitle()
-
setBody
public void setBody(String body)
-
setDate
public void setDate(Date date)
-
setDate
public void setDate(String date)
-
setName
public void setName(String name)
-
setID
public void setID(int id)
-
setProps
public void setProps(Properties props)
-
setTitle
public void setTitle(String title)
-
-