This project has retired. For details please refer to its Attic page.
WebPageDataCreator (Apache Gora 0.2 API)

org.apache.gora.examples
Class WebPageDataCreator

java.lang.Object
  extended by org.apache.gora.examples.WebPageDataCreator

public class WebPageDataCreator
extends Object

Creates and stores some data to be used in the tests.


Field Summary
static String[][] ANCHORS
           
static String[] CONTENTS
           
static int[][] LINKS
           
static String[] SORTED_URLS
           
static HashMap<String,Integer> URL_INDEXES
           
static String[] URLS
           
 
Constructor Summary
WebPageDataCreator()
           
 
Method Summary
static void createWebPageData(DataStore<String,WebPage> dataStore)
           
static void main(String[] args)
           
 int run(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URLS

public static final String[] URLS

URL_INDEXES

public static HashMap<String,Integer> URL_INDEXES

CONTENTS

public static final String[] CONTENTS

LINKS

public static final int[][] LINKS

ANCHORS

public static final String[][] ANCHORS

SORTED_URLS

public static final String[] SORTED_URLS
Constructor Detail

WebPageDataCreator

public WebPageDataCreator()
Method Detail

createWebPageData

public static void createWebPageData(DataStore<String,WebPage> dataStore)
                              throws IOException
Throws:
IOException

run

public int run(String[] args)
        throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.