Package com.qtsurfer.api.client.model
Class DatasetWithLinks
java.lang.Object
com.qtsurfer.api.client.model.DatasetWithLinks
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class DatasetWithLinks
extends Object
A `Dataset` plus a self link. Returned by `GET /datasets/{datasetId}`.
-
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 enum* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it.static enum`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly.static enum`ticker` for an upload or a `dex` import with no `cadence` requested (native per-trade data). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) currentVersionId(String currentVersionId) dataFormat(DatasetWithLinks.DataFormatEnum dataFormat) booleanReturn true if this DatasetWithLinks object is equal to o.from(OffsetDateTime from) getBytes()Size of `currentVersionId`'s own stored file.`currentVersionId`'s own discovered cadence — a fixed grid (e.g.When the dataset was created.The id of the most recently finalized, successfully ingested version.Which format `dataUrl` is actually in — check this rather than assuming it matches how you uploaded it.Opaque id, returned by `POST /datasets`.Presigned GET URL to the current version's stored file — see `dataFormat` for which format it's actually in.getError()A human-readable reason the most recent upload/import attempt failed.getFrom()Start of `currentVersionId`'s own data range, as discovered at ingest time.getGaps()`currentVersionId`'s own gap count at its discovered cadence.Exchange instrument identifier (e.g.`currentVersionId`'s own largest gap, in units of its discovered cadence step.getLinks()Get linksgetName()Unique among your datasets.getRows()`currentVersionId`'s own row count.* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it.`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly.getTo()End of `currentVersionId`'s own data range, as discovered at ingest time.getType()`ticker` for an upload or a `dex` import with no `cadence` requested (native per-trade data).When `currentVersionId` last changed.inthashCode()instrument(String instrument) largestGapSteps(Integer largestGapSteps) links(DatasetWithLinksAllOfLinks links) voidvoidsetCadence(String cadence) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrentVersionId(String currentVersionId) voidsetDataFormat(DatasetWithLinks.DataFormatEnum dataFormat) voidsetDatasetId(String datasetId) voidsetDataUrl(String dataUrl) voidvoidsetFrom(OffsetDateTime from) voidvoidsetInstrument(String instrument) voidsetLargestGapSteps(Integer largestGapSteps) voidvoidvoidvoidsetStatus(DatasetWithLinks.StatusEnum status) voidsetTimestampUnit(DatasetWithLinks.TimestampUnitEnum timestampUnit) voidsetTo(OffsetDateTime to) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) status(DatasetWithLinks.StatusEnum status) timestampUnit(DatasetWithLinks.TimestampUnitEnum timestampUnit) to(OffsetDateTime to) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_DATASET_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_INSTRUMENT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CURRENT_VERSION_ID
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_FROM
- See Also:
-
JSON_PROPERTY_TO
- See Also:
-
JSON_PROPERTY_CADENCE
- See Also:
-
JSON_PROPERTY_TIMESTAMP_UNIT
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_BYTES
- See Also:
-
JSON_PROPERTY_ROWS
- See Also:
-
JSON_PROPERTY_GAPS
- See Also:
-
JSON_PROPERTY_LARGEST_GAP_STEPS
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_DATA_URL
- See Also:
-
JSON_PROPERTY_DATA_FORMAT
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
DatasetWithLinks
public DatasetWithLinks()
-
-
Method Details
-
datasetId
-
getDatasetId
Opaque id, returned by `POST /datasets`.- Returns:
- datasetId
-
setDatasetId
-
name
-
getName
Unique among your datasets.- Returns:
- name
-
setName
-
type
-
getType
`ticker` for an upload or a `dex` import with no `cadence` requested (native per-trade data). `klines` for a `dex` import that requested a candle `cadence` — pre-aggregated bars rather than raw ticks. Purely informational; both shapes are read the same way.- Returns:
- type
-
setType
-
instrument
-
getInstrument
Exchange instrument identifier (e.g. a currency pair)- Returns:
- instrument
-
setInstrument
-
createdAt
-
getCreatedAt
When the dataset was created.- Returns:
- createdAt
-
setCreatedAt
-
currentVersionId
-
getCurrentVersionId
The id of the most recently finalized, successfully ingested version. Absent until at least one upload has finished ingesting.- Returns:
- currentVersionId
-
setCurrentVersionId
-
updatedAt
-
getUpdatedAt
When `currentVersionId` last changed. Absent until it has a value.- Returns:
- updatedAt
-
setUpdatedAt
-
from
-
getFrom
Start of `currentVersionId`'s own data range, as discovered at ingest time. Absent until a version exists.- Returns:
- from
-
setFrom
-
to
-
getTo
End of `currentVersionId`'s own data range, as discovered at ingest time. Absent until a version exists.- Returns:
- to
-
setTo
-
cadence
-
getCadence
`currentVersionId`'s own discovered cadence — a fixed grid (e.g. `1s`, `1m`, `1h`) or `rt` (see `DatasetVersion.cadence`). Absent until a version exists.- Returns:
- cadence
-
setCadence
-
timestampUnit
-
getTimestampUnit
`currentVersionId`'s own timestamp unit (see `DatasetVersion.timestampUnit`) — decode the `timestamp` column of `dataUrl`'s file accordingly. Present only when `status` is `ready`.- Returns:
- timestampUnit
-
setTimestampUnit
-
status
-
getStatus
* `ready` — `currentVersionId` is set; `from`/`to`/`cadence`/`bytes`/`rows`/`gaps`/ `largestGapSteps` describe it. * `failed` — the most recent upload/import attempt failed. `currentVersionId` and the fields above are absent — there is nothing to read yet. See `error`. * `pending` — nothing has ever been attempted (just created, or an upload was never finalized).- Returns:
- status
-
setStatus
-
bytes
-
getBytes
Size of `currentVersionId`'s own stored file. Present only when `status` is `ready` — see `DatasetVersion.bytes` for what it measures exactly.- Returns:
- bytes
-
setBytes
-
rows
-
getRows
`currentVersionId`'s own row count. Present only when `status` is `ready`.- Returns:
- rows
-
setRows
-
gaps
-
getGaps
`currentVersionId`'s own gap count at its discovered cadence. Present only when `status` is `ready`.- Returns:
- gaps
-
setGaps
-
largestGapSteps
-
getLargestGapSteps
`currentVersionId`'s own largest gap, in units of its discovered cadence step. Present only when `status` is `ready`.- Returns:
- largestGapSteps
-
setLargestGapSteps
-
error
-
getError
A human-readable reason the most recent upload/import attempt failed. Present only when `status` is `failed`.- Returns:
- error
-
setError
-
dataUrl
-
getDataUrl
Presigned GET URL to the current version's stored file — see `dataFormat` for which format it's actually in. Present only once the current version's status 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
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
Return true if this DatasetWithLinks 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
-