uk.ac.leeds.ccg.andyt.projects.moses.io
Class CASKS008DataHandler
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.CASKS008DataHandler
- All Implemented Interfaces:
- java.io.Serializable
public class CASKS008DataHandler
- extends AbstractCASDataHandler
A class
for handling an individual
CASKS006DataRecord
and collections of
CASKS006DataRecords
.
- See Also:
- Serialized Form
Method Summary |
void |
aggregateOAToMSOA(java.io.RandomAccessFile aRandomAccessFile,
long startRecordID,
long endRecordID)
Aggregates CASKS008DataRecords from OA To MSOA for the OA
records in the range [startRecordID,endRecordID] and writes the results
to aRandomAccessFile |
void |
aggregateOAToWard(java.io.RandomAccessFile aRandomAccessFile,
long startRecordID,
long endRecordID)
Aggregates CASKS008DataRecords from OA To Ward for the OA
records in the range [startRecordID,endRecordID] and writes the results
to aRandomAccessFile |
protected long |
format(java.io.File sourceFile,
long RecordID)
|
protected void |
formatSourceData(java.io.File directory,
int n)
|
CASKS008DataRecord |
getCASKS008DataRecord(long RecordID)
|
AbstractCASDataRecord |
getDataRecord(long RecordID)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CASKS008DataHandler
public CASKS008DataHandler()
CASKS008DataHandler
public CASKS008DataHandler(java.io.File formattedFile)
formatSourceData
protected void formatSourceData(java.io.File directory,
int n)
format
protected long format(java.io.File sourceFile,
long RecordID)
getDataRecord
public AbstractCASDataRecord getDataRecord(long RecordID)
- Specified by:
getDataRecord
in class AbstractCASDataHandler
- Parameters:
RecordID
- The RecordID of the CASKS008DataRecord to be returned.
- Returns:
- a
CASKS008DataRecord
with
AbstractCASDataRecord.RecordID = RecordID
getCASKS008DataRecord
public CASKS008DataRecord getCASKS008DataRecord(long RecordID)
- Parameters:
RecordID
- The RecordID of the CASKS008DataRecord to be returned.
- Returns:
- a
CASKS008DataRecord
with
CASKS008DataRecord.RecordID = RecordID
aggregateOAToWard
public void aggregateOAToWard(java.io.RandomAccessFile aRandomAccessFile,
long startRecordID,
long endRecordID)
throws java.io.IOException
- Aggregates
CASKS008DataRecords
from OA To Ward for the OA
records in the range [startRecordID,endRecordID] and writes the results
to aRandomAccessFile
- Parameters:
aRandomAccessFile
- RandomAccessFile
to which results are writtenstartRecordID
- The first OA RecordID in the sequence to be aggregated.endRecordID
- The last OA RecordID in the sequence to be aggregated.
- Throws:
java.io.IOException
aggregateOAToMSOA
public void aggregateOAToMSOA(java.io.RandomAccessFile aRandomAccessFile,
long startRecordID,
long endRecordID)
throws java.io.IOException
- Aggregates
CASKS008DataRecords
from OA To MSOA for the OA
records in the range [startRecordID,endRecordID] and writes the results
to aRandomAccessFile
- Parameters:
aRandomAccessFile
- RandomAccessFile
to which results are writtenstartRecordID
- The first OA RecordID in the sequence to be aggregated.endRecordID
- The last OA RecordID in the sequence to be aggregated.
- Throws:
java.io.IOException