|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.nutch.collection.CollectionManager
public class CollectionManager
| Field Summary | |
|---|---|
static String |
DEFAULT_FILE_NAME
|
| Constructor Summary | |
|---|---|
protected |
CollectionManager()
Used for testing |
|
CollectionManager(Configuration conf)
|
| Method Summary | |
|---|---|
Subcollection |
createSubCollection(String id,
String name)
Create a new subcollection. |
void |
deleteSubCollection(String id)
Delete named subcollection |
Collection |
getAll()
Returns all collections |
static CollectionManager |
getCollectionManager(Configuration conf)
|
Subcollection |
getSubColection(String id)
Returns named subcollection |
List<String> |
getSubCollections(String url)
Return names of collections url is part of |
protected void |
init()
|
protected void |
parse(InputStream input)
|
void |
save()
Save collections into file |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_FILE_NAME
| Constructor Detail |
|---|
public CollectionManager(Configuration conf)
protected CollectionManager()
| Method Detail |
|---|
protected void init()
protected void parse(InputStream input)
public static CollectionManager getCollectionManager(Configuration conf)
public Subcollection getSubColection(String id)
id -
public void deleteSubCollection(String id)
throws IOException
id - Id of SubCollection to delete
IOException
public Subcollection createSubCollection(String id,
String name)
name - Name of SubCollection to create
public List<String> getSubCollections(String url)
url - The url to test against Collections
public Collection getAll()
public void save()
throws IOException
Exception
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||