Package com.qtsurfer.api.client.model
Class DatasetVersion
java.lang.Object
com.qtsurfer.api.client.model.DatasetVersion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class DatasetVersion
extends Object
One successfully ingested upload. Cadence and timestamp unit are discovered from the file, not declared by the caller.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it.static enumThe unit the `timestamp` column was uploaded in — ISO-8601, or the epoch band its numeric values fell in (seconds, millis, or micros). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataFormat(DatasetVersion.DataFormatEnum dataFormat) booleanReturn true if this DatasetVersion object is equal to o.getBytes()Size of the stored file `dataUrl` points at — a converted `lastra` for a CSV/gzip/zip upload, or the parquet file itself, unconverted, for a parquet upload.The cadence discovered from the data's own timestamps.Which format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it.Get datasetIdPresigned GET URL to the stored file — see `dataFormat` for which format it's in.getGaps()Number of gaps at the discovered cadence.getId()The version id.The largest gap, in units of the discovered cadence step.getRows()Number of data rows.The unit the `timestamp` column was uploaded in — ISO-8601, or the epoch band its numeric values fell in (seconds, millis, or micros).inthashCode()largestGapSteps(Integer largestGapSteps) voidvoidsetCadence(String cadence) voidsetDataFormat(DatasetVersion.DataFormatEnum dataFormat) voidsetDatasetId(String datasetId) voidsetDataUrl(String dataUrl) voidvoidvoidsetLargestGapSteps(Integer largestGapSteps) voidvoidsetTimestampUnit(DatasetVersion.TimestampUnitEnum timestampUnit) timestampUnit(DatasetVersion.TimestampUnitEnum timestampUnit) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_DATASET_ID
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_BYTES
- See Also:
-
JSON_PROPERTY_ROWS
- See Also:
-
JSON_PROPERTY_CADENCE
- See Also:
-
JSON_PROPERTY_TIMESTAMP_UNIT
- See Also:
-
JSON_PROPERTY_GAPS
- See Also:
-
JSON_PROPERTY_LARGEST_GAP_STEPS
- See Also:
-
JSON_PROPERTY_DATA_URL
- See Also:
-
JSON_PROPERTY_DATA_FORMAT
- See Also:
-
-
Constructor Details
-
DatasetVersion
public DatasetVersion()
-
-
Method Details
-
datasetId
-
getDatasetId
Get datasetId- Returns:
- datasetId
-
setDatasetId
-
id
-
getId
The version id. Pass as `datasetVersionId` on `POST .../prepare` to pin it.- Returns:
- id
-
setId
-
bytes
-
getBytes
Size of the stored file `dataUrl` points at — a converted `lastra` for a CSV/gzip/zip upload, or the parquet file itself, unconverted, for a parquet upload. Not the size of the bytes originally PUT to storage; see `dataFormat`.- Returns:
- bytes
-
setBytes
-
rows
-
getRows
Number of data rows.- Returns:
- rows
-
setRows
-
cadence
-
getCadence
The cadence discovered from the data's own timestamps. Either a fixed grid — `1s`, `5s`, `15s`, `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, `1d` — when at least half the intervals between consecutive rows fall on that step (small clock jitter tolerated), or `rt`: native data at the rate it was captured, each row at its own timestamp with no fixed step — per-trade on-chain swaps, block-spaced or sub-second ticks, irregular intervals. An `rt` dataset can be resampled to any fixed cadence at prepare time.- Returns:
- cadence
-
setCadence
-
timestampUnit
-
getTimestampUnit
The unit the `timestamp` column was uploaded in — ISO-8601, or the epoch band its numeric values fell in (seconds, millis, or micros).- Returns:
- timestampUnit
-
setTimestampUnit
-
gaps
-
getGaps
Number of gaps at the discovered cadence. Always `0` for `rt`.- Returns:
- gaps
-
setGaps
-
largestGapSteps
-
getLargestGapSteps
The largest gap, in units of the discovered cadence step. Always `0` for `rt`.- Returns:
- largestGapSteps
-
setLargestGapSteps
-
dataUrl
-
getDataUrl
Presigned GET URL to the stored file — see `dataFormat` for which format it's in. Present once the version is `ready`. Long-lived (day-scale, not permanent): a DuckDB-WASM/`lastra-ts`-style reader issues HTTP range requests against it lazily over an extended viewing session, not in one shot like a browser upload.- Returns:
- dataUrl
-
setDataUrl
-
dataFormat
-
getDataFormat
Which format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it. `lastra` — our native columnar format — for a CSV (or gzip/zip of one) upload, always converted on ingest, or for a lastra upload, stored as-is (the value alone doesn't tell you which). `parquet` for a parquet upload, also stored as-is today.- Returns:
- dataFormat
-
setDataFormat
-
equals
Return true if this DatasetVersion object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-