class AnalyzeImpl extends BaseFinishedStatement implements Analyze {

  @Override
  public void prependTo(@NotNull final RawSqlBuilder builder) {
    if (mTableOrIndexName != null) {
      builder.prepend(mTableOrIndexName);
      builder.prepend(mDatabaseName == null ? ' ' : '.');
    }

    if (mDatabaseName != null) {
      builder.prepend(mDatabaseName).prepend(' ');
    }

    builder.prepend("ANALYZE");
  }

}