--- tags: - tsfile - timeseries - time-series - format:tsfile pretty_name: timeseriesagentevals (TsFile) configs: - config_name: default data_files: - split: train path: timeseriesagentevals_g1.tsfile - split: train path: timeseriesagentevals_g2.tsfile - split: train path: timeseriesagentevals_g3.tsfile - split: train path: timeseriesagentevals_g4.tsfile - split: train path: timeseriesagentevals_g6.tsfile --- # timeseriesagentevals (TsFile) Apache TsFile version of [`RockfishData/TimeSeriesAgentEvals`](https://huggingface.co/datasets/RockfishData/TimeSeriesAgentEvals). ## Overview - **Tables:** 5 TsFile table(s), 103,155 rows in total. - `timeseriesagentevals_g1`: 38,600 rows, 2026-01-01 00:00:00 鈫?2026-01-03 00:00:00.199000 (UTC) - `timeseriesagentevals_g2`: 6,176 rows, 2026-01-01 00:00:00 鈫?2026-01-03 00:00:00.031000 (UTC) - `timeseriesagentevals_g3`: 2,316 rows, 2026-01-01 00:00:00 鈫?2026-01-03 00:00:00.011000 (UTC) - `timeseriesagentevals_g4`: 5,913 rows, 2026-01-01 00:00:00 鈫?2026-01-01 02:58:00 (UTC) - `timeseriesagentevals_g6`: 50,150 rows, 2026-01-01 00:00:00 鈫?2026-01-02 00:00:00.439000 (UTC) ## Schema (TsFile structure) ### `timeseriesagentevals_g1.tsfile` - **Time** (INT64, milliseconds) 鈥?the source `Timestamp` column. - **TAG**: none 鈥?the table is stored as a single device. - **FIELD** (12): `Cell_ID` (string), `Base_Station_ID` (string), `Location_Lat` (double), `Location_Lon` (double), `Transport_Device_ID` (string), `Transport_Interface_ID` (string), `RRC_ConnEstabFail` (int64), `RRC_ConnEstabSucc` (int64), `RRC_ConnEstabAtt` (int64), `ERAB_EstabInitSuccNbr_QCI` (double), `DL_PRB_Utilization` (double), `Cell_Availability` (double) ### `timeseriesagentevals_g2.tsfile` - **Time** (INT64, milliseconds) 鈥?the source `Timestamp` column. - **TAG**: none 鈥?the table is stored as a single device. - **FIELD** (4): `Core_Node_ID` (string), `MM_AttachedUEs` (int64), `SM_ActivePDUSessions` (int64), `CPU_Load` (double) ### `timeseriesagentevals_g3.tsfile` - **Time** (INT64, milliseconds) 鈥?the source `Timestamp` column. - **TAG**: none 鈥?the table is stored as a single device. - **FIELD** (6): `Device_ID` (string), `Interface_ID` (string), `Bandwidth_Utilization_Out` (double), `Packet_Loss_Percent` (double), `Latency_ms` (double), `Jitter_ms` (double) ### `timeseriesagentevals_g4.tsfile` - **Time** (INT64, milliseconds) 鈥?the source `timestamp` column. - **TAG**: none 鈥?the table is stored as a single device. - **FIELD** (6): `session_id` (string), `user_id` (string), `referrer` (string), `page` (string), `action` (string), `did_purchase` (int64) ### `timeseriesagentevals_g6.tsfile` - **Time** (INT64, milliseconds) 鈥?the source `timestamp` column. - **TAG**: none 鈥?the table is stored as a single device. - **FIELD** (9): `device_id` (string), `device_type` (string), `location_zone` (string), `firmware_version` (string), `device_state` (string), `event_type` (string), `is_critical` (int64), `battery_level` (double), `signal_strength` (double) ## Conversion notes - One TsFile per source table (5 tables). Tables whose source carries several entities per file are stored as one device per entity, using `Cell_ID`, `Core_Node_ID`, `Interface_ID`, `device_state` as the TAG. - Time = the table's own clock column as INT64 milliseconds. The clock columns used here are `Timestamp`, `timestamp`. - No column is dropped. Rows that share a timestamp inside one device are ordered by a 1 ms step in stable source order, so calendar columns keep their exact day. ## Usage > **Read this dataset with the Java SDK.** It is written with the `zstd` compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening this file with it yields no rows. Read a converted file with the Apache TsFile Java SDK (`org.apache.tsfile:tsfile`): ```java import org.apache.tsfile.file.metadata.IDeviceID; import org.apache.tsfile.read.TsFileReader; import org.apache.tsfile.read.TsFileSequenceReader; import org.apache.tsfile.read.common.Path; import org.apache.tsfile.read.expression.QueryExpression; import org.apache.tsfile.read.query.dataset.QueryDataSet; import org.apache.tsfile.write.schema.MeasurementSchema; import java.util.ArrayList; import java.util.List; String path = "timeseriesagentevals_g1.tsfile"; try (TsFileSequenceReader sequenceReader = new TsFileSequenceReader(path); TsFileReader reader = new TsFileReader(sequenceReader)) { // Devices are enumerated as IDeviceID objects. Tables with TAG columns // have multi-segment device ids that cannot be rebuilt from their string // form, so always use getAllDevices() rather than getAllDeviceIds(). for (IDeviceID device : sequenceReader.getAllDevices()) { List paths = new ArrayList<>(); for (MeasurementSchema schema : reader.getMeasurement(device)) { String name = schema.getMeasurementName(); if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) { paths.add(new Path(device, name, true)); } } QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null)); while (dataSet.hasNext()) { System.out.println(dataSet.next()); } } } ``` ## Source & license - Original dataset: [`RockfishData/TimeSeriesAgentEvals`](https://huggingface.co/datasets/RockfishData/TimeSeriesAgentEvals) - License: not declared (as declared by the original dataset).