Class SqlCreateIndexCommand

  • All Implemented Interfaces:
    SqlCommand

    public class SqlCreateIndexCommand
    extends Object
    implements SqlCommand
    CREATE INDEX command.
    • Constructor Detail

      • SqlCreateIndexCommand

        public SqlCreateIndexCommand()
        Default constructor.
      • SqlCreateIndexCommand

        public SqlCreateIndexCommand​(String schemaName,
                                     @Nullable
                                     @Nullable String tblName,
                                     String idxName,
                                     boolean ifNotExists,
                                     Collection<SqlIndexColumn> cols,
                                     boolean spatial,
                                     int parallel,
                                     int inlineSize)
        Parameters:
        schemaName - Schema name.
        tblName - Table name.
        idxName - Index name.
        ifNotExists - "If not exists" clause.
        cols - Indexed columns.
        spatial - Spatial flag.
        parallel - Count of threads to rebuild.
        inlineSize - Inline size.
    • Method Detail

      • schemaName

        public void schemaName​(String schemaName)
        Specified by:
        schemaName in interface SqlCommand
        Parameters:
        schemaName - Schema name.
      • tableName

        public String tableName()
        Returns:
        Table name.
      • indexName

        public String indexName()
        Returns:
        Index name.
      • ifNotExists

        public boolean ifNotExists()
        Returns:
        IF NOT EXISTS flag.
      • parallel

        public int parallel()
        Returns:
        Parallelism level.
      • spatial

        public boolean spatial()
        Returns:
        Spatial index flag.
      • inlineSize

        public int inlineSize()
        Returns:
        Inline size.
      • spatial

        public SqlCreateIndexCommand spatial​(boolean spatial)
        Parameters:
        spatial - Spatial index flag.
        Returns:
        This instance.