From 9ccaf49e74c56eddabbcf57a4d3a7a73b65bb318 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Thu, 23 Mar 2023 13:39:33 +0000 Subject: [PATCH] Replace integers with longs on indices stats types (#2039) --- output/schema/schema.json | 30 +++++++++++++++--------------- output/typescript/types.ts | 30 +++++++++++++++--------------- specification/_types/Stats.ts | 32 ++++++++++++++++---------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index ae7a1c7d6b..f5250ec637 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -37000,7 +37000,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38109,7 +38109,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38153,7 +38153,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38175,7 +38175,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38186,7 +38186,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38219,7 +38219,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38241,7 +38241,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38263,7 +38263,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38285,7 +38285,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38296,7 +38296,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38329,7 +38329,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38351,7 +38351,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38862,7 +38862,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38884,7 +38884,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } @@ -38906,7 +38906,7 @@ "type": { "kind": "instance_of", "type": { - "name": "integer", + "name": "long", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 03b0b4a55a..bf8494b6ef 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2277,7 +2277,7 @@ export interface QueryCacheStats { evictions: integer hit_count: integer memory_size?: ByteSize - memory_size_in_bytes: integer + memory_size_in_bytes: long miss_count: integer total_count: integer } @@ -2401,28 +2401,28 @@ export type SearchType = 'query_then_fetch' | 'dfs_query_then_fetch' export interface SegmentsStats { count: integer doc_values_memory?: ByteSize - doc_values_memory_in_bytes: integer + doc_values_memory_in_bytes: long file_sizes: Record fixed_bit_set?: ByteSize - fixed_bit_set_memory_in_bytes: integer + fixed_bit_set_memory_in_bytes: long index_writer_memory?: ByteSize - index_writer_max_memory_in_bytes?: integer - index_writer_memory_in_bytes: integer + index_writer_max_memory_in_bytes?: long + index_writer_memory_in_bytes: long max_unsafe_auto_id_timestamp: long memory?: ByteSize - memory_in_bytes: integer + memory_in_bytes: long norms_memory?: ByteSize - norms_memory_in_bytes: integer + norms_memory_in_bytes: long points_memory?: ByteSize - points_memory_in_bytes: integer + points_memory_in_bytes: long stored_memory?: ByteSize - stored_fields_memory_in_bytes: integer - terms_memory_in_bytes: integer + stored_fields_memory_in_bytes: long + terms_memory_in_bytes: long terms_memory?: ByteSize term_vectory_memory?: ByteSize - term_vectors_memory_in_bytes: integer + term_vectors_memory_in_bytes: long version_map_memory?: ByteSize - version_map_memory_in_bytes: integer + version_map_memory_in_bytes: long } export type SequenceNumber = long @@ -2480,11 +2480,11 @@ export type SortResults = FieldValue[] export interface StoreStats { size?: ByteSize - size_in_bytes: integer + size_in_bytes: long reserved?: ByteSize - reserved_in_bytes: integer + reserved_in_bytes: long total_data_set_size?: ByteSize - total_data_set_size_in_bytes?: integer + total_data_set_size_in_bytes?: long } export interface StoredScript { diff --git a/specification/_types/Stats.ts b/specification/_types/Stats.ts index 1aa9c4f3eb..76711a8dab 100644 --- a/specification/_types/Stats.ts +++ b/specification/_types/Stats.ts @@ -20,7 +20,7 @@ import { ShardFileSizeInfo } from '@indices/stats/types' import { Dictionary } from '@spec_utils/Dictionary' import { ByteSize, Field, Name, VersionString } from './common' -import { ErrorCause, ShardFailure } from './Errors' +import { ShardFailure } from './Errors' import { double, integer, long, uint } from './Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' @@ -153,7 +153,7 @@ export class QueryCacheStats { evictions: integer hit_count: integer memory_size?: ByteSize - memory_size_in_bytes: integer + memory_size_in_bytes: long miss_count: integer total_count: integer } @@ -206,37 +206,37 @@ export class SearchStats { export class SegmentsStats { count: integer doc_values_memory?: ByteSize - doc_values_memory_in_bytes: integer + doc_values_memory_in_bytes: long file_sizes: Dictionary fixed_bit_set?: ByteSize - fixed_bit_set_memory_in_bytes: integer + fixed_bit_set_memory_in_bytes: long index_writer_memory?: ByteSize - index_writer_max_memory_in_bytes?: integer - index_writer_memory_in_bytes: integer + index_writer_max_memory_in_bytes?: long + index_writer_memory_in_bytes: long max_unsafe_auto_id_timestamp: long memory?: ByteSize - memory_in_bytes: integer + memory_in_bytes: long norms_memory?: ByteSize - norms_memory_in_bytes: integer + norms_memory_in_bytes: long points_memory?: ByteSize - points_memory_in_bytes: integer + points_memory_in_bytes: long stored_memory?: ByteSize - stored_fields_memory_in_bytes: integer - terms_memory_in_bytes: integer + stored_fields_memory_in_bytes: long + terms_memory_in_bytes: long terms_memory?: ByteSize term_vectory_memory?: ByteSize - term_vectors_memory_in_bytes: integer + term_vectors_memory_in_bytes: long version_map_memory?: ByteSize - version_map_memory_in_bytes: integer + version_map_memory_in_bytes: long } export class StoreStats { size?: ByteSize - size_in_bytes: integer + size_in_bytes: long reserved?: ByteSize - reserved_in_bytes: integer + reserved_in_bytes: long total_data_set_size?: ByteSize - total_data_set_size_in_bytes?: integer + total_data_set_size_in_bytes?: long } export class TranslogStats {