Package com.qtsurfer.api.client.model
Class Dataset
java.lang.Object
com.qtsurfer.api.client.model.Dataset
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class Dataset
extends Object
A dataset's own metadata — not its data. `currentVersionId` is what a prepare against `exchangeId: user` reads by default; see `DatasetVersion` for what a version carries. `from`/`to`/`cadence`/`timestampUnit`/`bytes`/`rows`/`gaps`/`largestGapSteps` mirror that current version's own discovered range, cadence, timestamp unit and metrics, so you don't need a second call to `GET /datasets/{datasetId}/uploads/{uploadId}` just to see what a dataset covers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) currentVersionId(String currentVersionId) booleanReturn true if this Dataset 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.Opaque id, returned by `POST /datasets`.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.getName()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) voidvoidsetCadence(String cadence) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrentVersionId(String currentVersionId) voidsetDatasetId(String datasetId) voidvoidsetFrom(OffsetDateTime from) voidvoidsetInstrument(String instrument) voidsetLargestGapSteps(Integer largestGapSteps) voidvoidvoidsetStatus(Dataset.StatusEnum status) voidsetTimestampUnit(Dataset.TimestampUnitEnum timestampUnit) voidsetTo(OffsetDateTime to) voidsetType(Dataset.TypeEnum type) voidsetUpdatedAt(OffsetDateTime updatedAt) status(Dataset.StatusEnum status) timestampUnit(Dataset.TimestampUnitEnum timestampUnit) to(OffsetDateTime to) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(Dataset.TypeEnum type) 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:
-
-
Constructor Details
-
Dataset
public Dataset()
-
-
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
-
equals
Return true if this Dataset 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
-