|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectfleXplorer.util.DateTaxonomy
public class DateTaxonomy
| Constructor Summary | |
|---|---|
DateTaxonomy()
|
|
| Method Summary | |
|---|---|
java.util.HashMap<java.lang.Integer,java.lang.Long> |
createDateList(java.lang.String fileName)
Returns a HashMap that contains the pairs of id and date that exists into the specified file. |
Taxonomy<IntegerType> |
createDateTaxonomy(java.util.HashMap<java.lang.Integer,java.lang.Long> dates,
MFT mft,
java.lang.String facet)
Returns a Taxonomy object that have been created according the specified dates. |
Taxonomy<IntegerType> |
createDateTaxonomy(java.lang.String name,
int startYear,
int endYear)
Creates a new Taxonomy that includes all the dates between the specified years. |
java.util.HashSet<java.lang.Integer> |
createDateTaxonomy(Taxonomy<IntegerType> datesTaxonomy,
java.util.HashMap<java.lang.Integer,java.lang.Long> dates)
Returns a Taxonomy object that have been created according the specified dates. |
Taxonomy<IntegerType> |
createDateTaxonomy(Taxonomy<IntegerType> datesTaxonomy,
int startYear,
int endYear)
Creates the year, month, day relations for a taxonomy between two specific years. |
java.lang.String |
getMonthName(int month)
Returns the name of the specified month |
Taxonomy<IntegerType> |
indexDates(Taxonomy<IntegerType> tx,
java.util.HashMap<java.lang.Integer,java.lang.Long> dates)
Indexes each document's id from the HashMap to the appropriate term of the taxonomy according the date. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateTaxonomy()
| Method Detail |
|---|
public java.util.HashSet<java.lang.Integer> createDateTaxonomy(Taxonomy<IntegerType> datesTaxonomy,
java.util.HashMap<java.lang.Integer,java.lang.Long> dates)
datesTaxonomy - the taxonomy that will be added the dates.dates - a HashMap that has as key the id of a document and as value the last modified date of the document.
public Taxonomy<IntegerType> createDateTaxonomy(java.util.HashMap<java.lang.Integer,java.lang.Long> dates,
MFT mft,
java.lang.String facet)
dates - a HashMap that has as key the id of a document and as value the last modified date of the document.
public java.lang.String getMonthName(int month)
month - the number of month
public java.util.HashMap<java.lang.Integer,java.lang.Long> createDateList(java.lang.String fileName)
throws java.io.IOException
fileName - the path of the file
java.io.IOException
public Taxonomy<IntegerType> createDateTaxonomy(java.lang.String name,
int startYear,
int endYear)
startYear - the year that the taxonomy will begin.endYear - the year that the taxonomy will finish.
public Taxonomy<IntegerType> createDateTaxonomy(Taxonomy<IntegerType> datesTaxonomy,
int startYear,
int endYear)
datesTaxonomy - the taxonomy.startYear - the start year.endYear - the end year.
public Taxonomy<IntegerType> indexDates(Taxonomy<IntegerType> tx,
java.util.HashMap<java.lang.Integer,java.lang.Long> dates)
tx - the taxonomydates - a HashMap that has as key the id of a document and as value the last modified date of the document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||