|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--grs.pds.BasePdsRecord
|
+--grs.pds.TimeSeriesRecord
|
+--grs.pds.edr.EkEdrRecord
E-Kernel notes ("experimenter's notebook") from the notebook_tab. Variable length text data.
| Field Summary | |
Date |
fis_time
time of note |
String |
text
experimenter's notes |
| Fields inherited from class grs.pds.BasePdsRecord |
PdsTimeFormat |
| Fields inherited from interface grs.pds.PdsRecord |
GAMMA_CHANNELS, int10, int12, int2, int3, logger, MESSAGE_LENGTH, NS_MAX_EVENTS, PEF_COMMANDS, prec10, prec12, prec13, prec14, prec15, prec16, prec17, prec5, prec6, prec7, PROFILE_LENGTH, PROFILE_SIZE, PULSER_CHANNELS, QUERY_DATE_FMT, SC_ID |
| Constructor Summary | |
EkEdrRecord(DataInputStream in)
Read record in from a DataInputStream. |
|
EkEdrRecord(ResultSet rs)
Read record in from a ResultSet. |
|
| Method Summary | |
static String[] |
createInsertString(String schema)
Build SQL to insert e_kernel notes into the pds schema. |
static String[] |
createSelectString(String schema)
Build SQL to select from the notebook_tab. |
long |
getSCLK()
Get the Date (time) of record. |
Date |
getUTC()
Get the UTC time that this record was observed on. |
static void |
main(String[] args)
Demonstrates use of this class to parse an Ek EDR record. |
int |
prepareInsert(PreparedStatement pstmt)
Bind values to the PreparedStatement |
String[] |
toStringArray()
Display the values in this record. |
static String |
wrapText(String text)
Naive text-wrapping solution. |
void |
writeTo(DataOutputStream out)
Write this record to a DataOutputStream. |
| Methods inherited from class grs.pds.BasePdsRecord |
endianSwapShort |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Date fis_time
public String text
| Constructor Detail |
public EkEdrRecord(ResultSet rs)
throws SQLException
rs - ResultSet to read from.
SQLException - Error reading from resultset.
public EkEdrRecord(DataInputStream in)
throws IOException,
ParseException
in - Stream to read from.
IOException - error reading from stream.
ParseException - UTC date in stream data is invalid.| Method Detail |
public static String[] createSelectString(String schema)
schema - Database schema to use, e.g. "map1".
public static String[] createInsertString(String schema)
schema - Database schema to use, e.g. "map1".
public int prepareInsert(PreparedStatement pstmt)
throws SQLException
prepareInsert in class BasePdsRecordpstmt - prepared statement
SQLException - Error in binding bindingpublic void writeTo(DataOutputStream out)
writeTo in class BasePdsRecordout - Stream to write to.
IOException - Error writing to stream.public String[] toStringArray()
toStringArray in class BasePdsRecordpublic long getSCLK()
getSCLK in class TimeSeriesRecordpublic Date getUTC()
TimeSeriesRecord
getUTC in class TimeSeriesRecordpublic static final String wrapText(String text)
public static final void main(String[] args)
throws Exception
args - path to e_kernel notebook data file.
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||