textminer.ds
Class ReutersDataSet

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--textminer.ds.ReutersDataSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public final class ReutersDataSet
extends java.util.HashMap

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.

Since:
1.1
Version:
TextMiner 1.1
Author:
Young-Woo Seo (ywseo@cs.cmu.edu)
See Also:
Serialized Form

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

ReutersDataSet

public ReutersDataSet()
Constructor of ReutersDataSet

Method Detail

removeAll

public void removeAll()
Remove all elements from this instance


insert

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)
Insert the specified element to this data set

Parameters:
id - identifier
date - date
topic - topics assigned to
place - place
people - people
org - org
exchange - exchanges
title - title
body -

insert

public void insert(ReutersInstance instance)
Insert the specified instance to this data set

Parameters:
instance - copy of a ReutersInstance

find

public ReutersInstance find(java.lang.String id)
Search an instance associated with the specified id

Parameters:
id - identifier of the instance to be retured
Returns:
an instance of reuters data

printAll

public void printAll()
Print all elements belong to this ReutersDataSet