public static class AppTableIndex.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
AppTableIndex |
build() |
AppTableIndex.Builder |
columns(String[] columns)
索引涉及的列名(按索引定义顺序)
示例值:
|
AppTableIndex.Builder |
definition(String definition)
PG 索引定义语句
示例值:CREATE INDEX idx_orders_user_id ON orders USING btree (user_id)
|
AppTableIndex.Builder |
name(String name)
索引名
示例值:orders_pkey
|
AppTableIndex.Builder |
type(String type)
索引类型
示例值:"btree" / "hash" / "gin" / "gist"
|
public AppTableIndex.Builder name(String name)
示例值:orders_pkey
name - public AppTableIndex.Builder columns(String[] columns)
示例值:
columns - public AppTableIndex.Builder type(String type)
示例值:"btree" / "hash" / "gin" / "gist"
type - public AppTableIndex.Builder definition(String definition)
示例值:CREATE INDEX idx_orders_user_id ON orders USING btree (user_id)
definition - public AppTableIndex build()
Copyright © 2026. All rights reserved.