类 CreateIndexParams.IndexField

    • 构造器详细资料

      • IndexField

        public IndexField​(DbDoc indexField)
        Constructor.
        参数:
        indexField - a special JSON document, part of indexDefinition document, consisting of the following fields:
        • field: string, the full document path to the document member or field to be indexed
        • type: string, one of the supported SQL column types to map the field into. For numeric types, the optional UNSIGNED keyword may follow. For the TEXT type, the length to consider for indexing may be added. Type descriptions are case insensitive.
        • required: bool, (optional) true if the field is required to exist in the document. Defaults to false, except for GEOJSON where it defaults to true
        • options: int, (optional) special option flags for use when decoding GEOJSON data
        • srid: int, (optional) srid value for use when decoding GEOJSON data
        • array: bool, (optional) true if the field is an array
    • 方法详细资料

      • getField

        public String getField()
        Get the full document path to the document member or field to be indexed.
        返回:
        field string
      • getType

        public String getType()
        Get column type.
        返回:
        column type
      • isRequired

        public Boolean isRequired()
        Is the field required to exist in the document?
        返回:
        true if required
      • getOptions

        public Integer getOptions()
        Get options for decoding GEOJSON data.
        返回:
        options
      • getSrid

        public Integer getSrid()
        Get srid for decoding GEOJSON data.
        返回:
        srid
      • isArray

        public Boolean isArray()
        Is the field an array?
        返回:
        true if the field is an array