|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--textminer.ds.ReutersDataSet
The ReutersDataSet is an encapsulation of a collection of Reuters-21578 data.
It is mainly responsible for maintaining a set of Reuters data which belong to the same physical file.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
ReutersDataSet()
Constructor of ReutersDataSet |
|
| Method Summary | |
ReutersInstance |
find(java.lang.String id)
Search an instance associated with the specified id |
void |
insert(ReutersInstance instance)
Insert the specified instance to this data set |
void |
insert(java.lang.String id,
java.lang.String date,
java.lang.String topic,
java.lang.String place,
java.lang.String people,
java.lang.String org,
java.lang.String exchange,
java.lang.String title,
java.lang.String body)
Insert the specified element to this data set |
void |
printAll()
Print all elements belong to this ReutersDataSet |
void |
removeAll()
Remove all elements from this instance |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public ReutersDataSet()
| Method Detail |
public void removeAll()
public void insert(java.lang.String id,
java.lang.String date,
java.lang.String topic,
java.lang.String place,
java.lang.String people,
java.lang.String org,
java.lang.String exchange,
java.lang.String title,
java.lang.String body)
id - identifierdate - datetopic - topics assigned toplace - placepeople - peopleorg - orgexchange - exchangestitle - titlebody - public void insert(ReutersInstance instance)
instance - copy of a ReutersInstancepublic ReutersInstance find(java.lang.String id)
id - identifier of the instance to be retured
public void printAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||