import { xLuceneTypeConfig } from '@terascope/types'; import BaseType, { ToGraphQLOptions } from '../base-type.js'; import { GraphQLType, TypeESMapping, DuckDBTypeConfig } from '../../interfaces.js'; /** * A geo boundary represented as a list of lat/lon points — for example the * corners of a bounding box or the vertices of a polygon. Unlike `geo_point`, * the coordinates are stored as plain `float` sub-fields rather than a native * geo type. * * - **ES/OpenSearch mapping:** an object with `properties: { lat: { type: * 'float' }, lon: { type: 'float' } }`. When `indexed: false` the whole * object is disabled via `enabled: false` (note: `enabled`, not `index`, * because this is an object mapping). * - **GraphQL:** a list of a generated object type — `[DTGeoBoundaryV1]` with * `lat: Float!` and `lon: Float!` (an `input` variant is emitted when * `isInput` is set). * - **xLucene:** `Geo`. * * @example * const config: DataTypeConfig = { * version: 1, * fields: { bounds: { type: 'Boundary' } } * }; */ export default class Boundary extends BaseType { toESMapping(): TypeESMapping; toGraphQL({ isInput }?: ToGraphQLOptions): GraphQLType; toXlucene(): xLuceneTypeConfig; /** * The DuckDB column type for this field. * A list of points, stored as an array of the GeoPoint struct. */ toDuckDB(): DuckDBTypeConfig; } //# sourceMappingURL=boundary.d.ts.map