Indexes Class

The indexes for the path.

Inheritance
Indexes

Constructor

Indexes(*, data_type: Optional[Union[str, _models.DataType]] = 'String', precision: Optional[int] = None, kind: Optional[Union[str, _models.IndexKind]] = 'Hash', **kwargs)

Variables

data_type
str or DataType

The datatype for which the indexing behavior is applied to. Known values are: "String", "Number", "Point", "Polygon", "LineString", "MultiPolygon". Default value: "String".

precision
int

The precision of the index. -1 is maximum precision.

kind
str or IndexKind

Indicates the type of index. Known values are: "Hash", "Range", "Spatial". Default value: "Hash".