import { xLuceneTypeConfig } from '@terascope/types'; import BaseType from '../base-type.js'; import { GraphQLType, TypeESMapping, DuckDBTypeConfig } from '../../interfaces.js'; /** * A floating-point number stored as an Elasticsearch/OpenSearch `float` * (32-bit, single-precision IEEE 754). * * - **ES/OpenSearch mapping:** `{ type: 'float' }`. Honors `indexed: false` * (emitted as `index: false`). * - **GraphQL:** `Float`. * - **xLucene:** `Float`. * * Use `Double` when single-precision is not accurate enough. * * @example * const config: DataTypeConfig = { * version: 1, * fields: { temperature: { type: 'Float' } } * }; */ export default class Float extends BaseType { toESMapping(): TypeESMapping; toGraphQL(): GraphQLType; toXlucene(): xLuceneTypeConfig; /** * The DuckDB column type for this field. * DOUBLE, not FLOAT, because a JS number is a 64-bit double. A 32-bit FLOAT would * round large values (9007199254740992 becomes 9007199000000000). */ toDuckDB(): DuckDBTypeConfig; } //# sourceMappingURL=float.d.ts.map