gov.llnl.ontology.mapreduce.table
Interface GenericTable

All Known Subinterfaces:
CorpusTable, EvidenceTable
All Known Implementing Classes:
NYT03Table, TrinidadTable, WordNetEvidenceTable

public interface GenericTable

Author:
Keith Stevens

Method Summary
 void close()
          Closes the connection to the document reader.
 void createTable()
          Creates a new instance of the HTable represented by this GenericTable
 void createTable(org.apache.hadoop.hbase.client.HConnection connector)
          Creates a new instance of the HTable represented by this GenericTable
 Iterator<org.apache.hadoop.hbase.client.Result> iterator(org.apache.hadoop.hbase.client.Scan scan)
          Returns an iterator over all of the rows accessible from this GenericTable.
 void setupScan(org.apache.hadoop.hbase.client.Scan scan)
          Initializes a Scan such that it will request whatever columns and column families are neccesary for processing as determined by the table type.
 void setupScan(org.apache.hadoop.hbase.client.Scan scan, String corpusName)
          Initializes a Scan such that it will request columns and column families are neccesary for extracting the raw document text, dependency trees, and document source information from the specified corpusName.
 org.apache.hadoop.hbase.client.HTable table()
          Returns the HTable instance attached to this GenericTable.
 String tableName()
          Returns the name of the HBase Table that this GenericTable represents.
 

Method Detail

createTable

void createTable()
Creates a new instance of the HTable represented by this GenericTable


createTable

void createTable(org.apache.hadoop.hbase.client.HConnection connector)
Creates a new instance of the HTable represented by this GenericTable


iterator

Iterator<org.apache.hadoop.hbase.client.Result> iterator(org.apache.hadoop.hbase.client.Scan scan)
Returns an iterator over all of the rows accessible from this GenericTable.


tableName

String tableName()
Returns the name of the HBase Table that this GenericTable represents.


table

org.apache.hadoop.hbase.client.HTable table()
Returns the HTable instance attached to this GenericTable.


setupScan

void setupScan(org.apache.hadoop.hbase.client.Scan scan)
Initializes a Scan such that it will request whatever columns and column families are neccesary for processing as determined by the table type. This method will only be called once per job.


setupScan

void setupScan(org.apache.hadoop.hbase.client.Scan scan,
               String corpusName)
Initializes a Scan such that it will request columns and column families are neccesary for extracting the raw document text, dependency trees, and document source information from the specified corpusName.


close

void close()
Closes the connection to the document reader.



Copyright © 2010-2011. All Rights Reserved.