|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.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
public abstract class AbstractCASDataHandler
For handling
AbstractCASDataRecords
.
AbstractCASDataRecord
,
Serialized FormField Summary | |
---|---|
protected CAS001DataHandler |
_CAS001DataHandler
CAS001DataHandler |
protected CAS003DataHandler |
_CAS003DataHandler
CAS003DataHandler |
protected java.util.HashMap |
_LookUpMSOAfromOAHashMap
For storing a look up table for converting from OA to MSOA Zone Code |
protected java.util.HashMap |
_RecordIDZoneCodeHashMap
For storing a one to one mapping of: long AbstractCASDataRecord.RecordID as keys and
String Zone Code as values. |
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 | |
---|---|
AbstractCASDataHandler()
|
Method Summary | |
---|---|
java.util.HashMap<java.lang.String,java.lang.String> |
get_LookUpMSOAfromOAHashMap()
TODO docs |
CAS001DataHandler |
getCAS001DataHandler()
Returns this._CAS001DataHandler |
CAS003DataHandler |
getCAS003DataHandler()
Returns this._CAS003DataHandler |
protected AbstractCASDataRecord |
getDataRecord(char[] Zone_Code)
|
abstract AbstractCASDataRecord |
getDataRecord(long RecordID)
|
AbstractCASDataRecord |
getDataRecord(java.lang.String aZoneCode)
|
java.util.TreeSet<java.lang.String> |
getLADCodes_TreeSet()
|
java.util.HashSet<java.lang.String> |
getMSOACodes_HashSet()
|
java.util.HashSet |
getMSOACodes_HashSet(java.lang.String startOfMSOACodes_String)
|
java.util.HashSet<java.lang.String> |
getOACodes_HashSet()
|
java.util.HashSet |
getOACodes_HashSet(java.lang.String startOfOACodes_String)
|
java.util.TreeSet<java.lang.String> |
getOACodes_TreeSet()
|
java.util.HashMap |
getRecordIDZoneCode_HashMap()
|
protected java.util.HashMap |
getRecordIDZoneCodeHashMap()
|
java.util.HashMap |
getZoneCodeRecordID_HashMap()
|
protected static java.lang.Object[] |
parseLine(java.lang.String line)
TODO docs |
void |
printOAMSOACodes(long startRecordID,
long endRecordID)
For checking OA MSOA Codes |
void |
write(java.io.RandomAccessFile aRandomAccessFile,
java.util.TreeMap aggregateOAToMSOA)
Writes aggregateOAToMSOA to aRandomAccessFile |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler |
---|
get_Directory, get_RecordLength, getNDataRecords, 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 CAS001DataHandler _CAS001DataHandler
protected CAS003DataHandler _CAS003DataHandler
protected java.util.HashMap _RecordIDZoneCodeHashMap
long AbstractCASDataRecord.RecordID
as keys and
String Zone Code
as values.
protected java.util.HashMap _LookUpMSOAfromOAHashMap
Constructor Detail |
---|
public AbstractCASDataHandler()
Method Detail |
---|
public CAS001DataHandler getCAS001DataHandler()
public CAS003DataHandler getCAS003DataHandler()
public abstract AbstractCASDataRecord getDataRecord(long RecordID)
getDataRecord
in class AbstractDataHandler
RecordID
- The RecordID of the AbstractCASDataRecord
to
be returned.
AbstractCASDataRecord
for the given RecordIDpublic AbstractCASDataRecord getDataRecord(java.lang.String aZoneCode)
aZoneCode
- A String
representation of an
AbstractCASDataRecord.Zone_Code
for the
AbstractCASDataRecord
to be returned.
AbstractCASDataRecord
for the given zoneCode if
it exists or null otherwise.protected AbstractCASDataRecord getDataRecord(char[] Zone_Code) throws java.io.IOException
Zone_Code
- A AbstractCASDataRecord.Zone_Code
for the
AbstractCASDataRecord
to be returned.
AbstractCASDataRecord
for the given Zone_Code if
it exists or null otherwise.
java.io.IOException
protected java.util.HashMap getRecordIDZoneCodeHashMap()
this.tRecordIDZoneCodeHashMap
public java.util.HashMap getRecordIDZoneCode_HashMap()
this.tRecordIDZoneCodeHashMap
public java.util.HashMap getZoneCodeRecordID_HashMap()
this.tRecordIDZoneCodeHashMap
with keys and values
deep copied and swapped aroundpublic java.util.HashMap<java.lang.String,java.lang.String> get_LookUpMSOAfromOAHashMap()
protected static java.lang.Object[] parseLine(java.lang.String line)
public void printOAMSOACodes(long startRecordID, long endRecordID) throws java.lang.Exception
startRecordID
- The RecordID of the first OA code to checkendRecordID
- The RecordID of the last OA code to check
java.lang.Exception
public java.util.TreeSet<java.lang.String> getLADCodes_TreeSet() throws java.io.IOException
java.io.IOException
public java.util.TreeSet<java.lang.String> getOACodes_TreeSet()
public java.util.HashSet<java.lang.String> getOACodes_HashSet()
public java.util.HashSet<java.lang.String> getMSOACodes_HashSet()
public java.util.HashSet getOACodes_HashSet(java.lang.String startOfOACodes_String)
startOfOACodes_String
-
public java.util.HashSet getMSOACodes_HashSet(java.lang.String startOfMSOACodes_String)
startOfOACodes_String
-
public void write(java.io.RandomAccessFile aRandomAccessFile, java.util.TreeMap aggregateOAToMSOA) throws java.io.IOException
aRandomAccessFile
- aggregateOAToMSOA
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |