|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler uk.ac.leeds.ccg.andyt.projects.moses.io.CASDataHandler
public class CASDataHandler
A class
for holding the following collection of
AbstractCASDataHandlers
so as to access respective
AbstractCASDataRecords
:
CASDataRecord
,
Serialized FormFields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler |
---|
_CAS001DataHandler, _CAS003DataHandler, _LookUpMSOAfromOAHashMap, _RecordIDZoneCodeHashMap |
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler |
---|
_Directory, _File, _RandomAccessFile, _RecordLength |
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog |
---|
_Logger, _Logger_FileHandler |
Constructor Summary | |
---|---|
CASDataHandler()
Creates a new CASDataHandler |
|
CASDataHandler(java.io.File _Directory)
Creates a new CASDataHandler |
|
CASDataHandler(java.io.File _Directory,
java.lang.String aggregation)
Creates a new CASDataHandler using Files in _Directory |
Method Summary | |
---|---|
void |
aggregateOAToMSOAForLeeds()
Aggregate From OA To MSOA For Leeds |
void |
aggregateOAToWardForLeeds()
Aggregate From OA To Ward For Leeds |
void |
formatSourceData()
Load Source Data |
CAS002DataHandler |
getCAS002DataHandler()
Returns this._CAS002DataHandler |
CASKS002DataHandler |
getCASKS002DataHandler()
Returns this._CASKS002DataHandler |
CASKS008DataHandler |
getCASKS008DataHandler()
Returns this._CASKS008DataHandler |
CASKS010DataHandler |
getCASKS010DataHandler()
Returns this._CASKS010DataHandler |
CASKS015DataHandler |
getCASKS015DataHandler()
Returns this._CASKS015DataHandler |
CASKS017DataHandler |
getCASKS017DataHandler()
Returns this._CASKS017DataHandler |
CASKS020DataHandler |
getCASKS020DataHandler()
Returns this._CASKS020DataHandler |
CASKS023DataHandler |
getCASKS023DataHandler()
Returns this._CASKS023DataHandler |
CASKS09bDataHandler |
getCASKS09bDataHandler()
Returns this._CASKS09bDataHandler |
CASKS09cDataHandler |
getCASKS09cDataHandler()
Returns this._CASKS09cDataHandler |
CASKS12bDataHandler |
getCASKS12bDataHandler()
Returns this._CASKS12bDataHandler |
CASKS12cDataHandler |
getCASKS12cDataHandler()
Returns this._CASKS12cDataHandler |
CASKS14bDataHandler |
getCASKS14bDataHandler()
Returns this._CASKS14bDataHandler |
CASKS14cDataHandler |
getCASKS14cDataHandler()
Returns this._CASKS14cDataHandler |
CASUV003DataHandler |
getCASUV003DataHandler()
Returns this._CASUV003DataHandler |
AbstractCASDataRecord |
getDataRecord(long aRecordID)
|
long |
getNDataRecords()
|
protected void |
init()
Initialises all fields. |
static void |
main(java.lang.String[] args)
|
void |
run()
Top level run method |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler |
---|
get_LookUpMSOAfromOAHashMap, getCAS001DataHandler, getCAS003DataHandler, getDataRecord, getDataRecord, getLADCodes_TreeSet, getMSOACodes_HashSet, getMSOACodes_HashSet, getOACodes_HashSet, getOACodes_HashSet, getOACodes_TreeSet, getRecordIDZoneCode_HashMap, getRecordIDZoneCodeHashMap, getZoneCodeRecordID_HashMap, parseLine, printOAMSOACodes, write |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler |
---|
get_Directory, get_RecordLength, init, init, load, print |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog |
---|
init_Logger, init_Logger, init_Logger, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CAS002DataHandler _CAS002DataHandler
protected CASKS002DataHandler _CASKS002DataHandler
protected CASKS008DataHandler _CASKS008DataHandler
protected CASKS010DataHandler _CASKS010DataHandler
protected CASKS015DataHandler _CASKS015DataHandler
protected CASKS017DataHandler _CASKS017DataHandler
protected CASKS020DataHandler _CASKS020DataHandler
protected CASKS023DataHandler _CASKS023DataHandler
protected CASKS09bDataHandler _CASKS09bDataHandler
protected CASKS09cDataHandler _CASKS09cDataHandler
protected CASKS12bDataHandler _CASKS12bDataHandler
protected CASKS12cDataHandler _CASKS12cDataHandler
protected CASKS14bDataHandler _CASKS14bDataHandler
protected CASKS14cDataHandler _CASKS14cDataHandler
protected CASUV003DataHandler _CASUV003DataHandler
Constructor Detail |
---|
public CASDataHandler() throws java.io.IOException
java.io.IOException
public CASDataHandler(java.io.File _Directory) throws java.io.IOException
java.io.IOException
public CASDataHandler(java.io.File _Directory, java.lang.String aggregation)
Files
in _Directory
_Directory
- The _Directory containing Files
aggregation
- A String
part of the filename indicating the
aggregation (e.g. OA, MSOA, WARD, etc... )Method Detail |
---|
protected void init() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
args
- the command line arguments
java.io.IOException
public void run() throws java.io.IOException
java.io.IOException
public CAS002DataHandler getCAS002DataHandler()
public CASKS002DataHandler getCASKS002DataHandler()
public CASKS008DataHandler getCASKS008DataHandler()
public CASKS010DataHandler getCASKS010DataHandler()
public CASKS015DataHandler getCASKS015DataHandler()
public CASKS017DataHandler getCASKS017DataHandler()
public CASKS020DataHandler getCASKS020DataHandler()
public CASKS023DataHandler getCASKS023DataHandler()
public CASKS09bDataHandler getCASKS09bDataHandler()
public CASKS09cDataHandler getCASKS09cDataHandler()
public CASKS12bDataHandler getCASKS12bDataHandler()
public CASKS12cDataHandler getCASKS12cDataHandler()
public CASKS14bDataHandler getCASKS14bDataHandler()
public CASKS14cDataHandler getCASKS14cDataHandler()
public CASUV003DataHandler getCASUV003DataHandler()
public AbstractCASDataRecord getDataRecord(long aRecordID)
getDataRecord
in class AbstractCASDataHandler
aRecordID
- The RecordID of the AbstractCASDataRecord to be returned.
AbstractCASDataRecord
for the given RecordIDpublic void formatSourceData() throws java.io.IOException
java.io.IOException
public void aggregateOAToWardForLeeds() throws java.io.IOException
java.io.IOException
public void aggregateOAToMSOAForLeeds() throws java.io.IOException
java.io.IOException
public long getNDataRecords()
getNDataRecords
in class AbstractDataHandler
AbstractDataRecords
in
this.tRandomAccessFile
For full UK file this should
be 18435255
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |