Constant Field Values

Contents

me.ahoo.*

  • me.ahoo.cosid.annotation.CosId
    Modifier and Type
    Constant Field
    Value
    public static final String
    "id"
  • me.ahoo.cosid.jdbc.JdbcIdSegmentDistributor
    Modifier and Type
    Constant Field
    Value
    public static final String
    "select last_max_id from cosid where name = ?;"
    public static final String
    "update cosid set last_max_id=(last_max_id + ?),last_fetch_time=unix_timestamp() where name = ?;"
  • me.ahoo.cosid.jdbc.JdbcIdSegmentInitializer
    Modifier and Type
    Constant Field
    Value
    public static final String
    "create table if not exists cosid\n(\n name varchar(100) not null comment \'{namespace}.{name}\',\n last_max_id bigint unsigned not null default 0,\n last_fetch_time bigint unsigned not null default 0,\n constraint cosid_pk\n primary key (name)\n) engine = InnoDB;"
    public static final String
    "insert into cosid (name, last_max_id,last_fetch_time) value (?, ?,unix_timestamp());"
  • me.ahoo.cosid.jdbc.JdbcMachineIdInitializer
    Modifier and Type
    Constant Field
    Value
    public static final String
    "create table if not exists cosid_machine\n(\n name varchar(100) not null comment \'{namespace}.{machine_id}\',\n namespace varchar(100) not null,\n machine_id integer unsigned not null default 0,\n last_timestamp bigint unsigned not null default 0,\n instance_id varchar(100) not null default \'\',\n distribute_time bigint unsigned not null default 0,\n revert_time bigint unsigned not null default 0,\n stable tinyint not null default 0,\n renew_time bigint unsigned not null default 0,\n watermark bigint unsigned not null default 0,\n lease_version bigint unsigned not null default 0,\n constraint cosid_machine_pk\n primary key (name),\n key idx_namespace (namespace),\n key idx_instance_id (instance_id)\n) engine = InnoDB;"
    public static final String
    ""
    public static final String
    ""
  • me.ahoo.cosid.jdbc.JdbcMachineLeaseStore
    Modifier and Type
    Constant Field
    Value
    public static final String
    "alter table cosid_machine add column renew_time bigint unsigned not null default 0, add column watermark bigint unsigned not null default 0, add column lease_version bigint unsigned not null default 0"
    public static final String
    "alter table cosid_machine add column stable tinyint not null default 0"
    public static final String
    "select unix_timestamp() * 1000 + floor(microsecond(now(3)) / 1000)"
  • me.ahoo.cosid.jdbc.PostgreSqlDialect
    Modifier and Type
    Constant Field
    Value
    public static final String
    "alter table cosid_machine add column if not exists renew_time bigint not null default 0, add column if not exists watermark bigint not null default 0, add column if not exists lease_version bigint not null default 0"
    public static final String
    "alter table cosid_machine add column if not exists stable smallint not null default 0"
    public static final String
    "select last_max_id from cosid where name = ?"
    public static final String
    "update cosid set last_max_id=(last_max_id + ?),last_fetch_time=cast(extract(epoch from now()) as bigint) where name = ?"
    public static final String
    "create table if not exists cosid_machine\n(\n name varchar(100) not null,\n namespace varchar(100) not null,\n machine_id integer not null default 0,\n last_timestamp bigint not null default 0,\n instance_id varchar(100) not null default \'\',\n distribute_time bigint not null default 0,\n revert_time bigint not null default 0,\n stable smallint not null default 0,\n renew_time bigint not null default 0,\n watermark bigint not null default 0,\n lease_version bigint not null default 0,\n constraint cosid_machine_pk primary key (name)\n)"
    public static final String
    "create table if not exists cosid\n(\n name varchar(100) not null,\n last_max_id bigint not null default 0,\n last_fetch_time bigint not null default 0,\n constraint cosid_pk primary key (name)\n)"
    public static final String
    "insert into cosid (name, last_max_id, last_fetch_time) values (?, ?, cast(extract(epoch from now()) as bigint))"
    public static final String
    "create index if not exists idx_instance_id on cosid_machine (instance_id)"
    public static final String
    "create index if not exists idx_namespace on cosid_machine (namespace)"
    public static final String
    "select cast(extract(epoch from clock_timestamp()) * 1000 as bigint)"
  • me.ahoo.cosid.spring.boot.starter.ConditionalOnCosIdEnabled
    Modifier and Type
    Constant Field
    Value
    public static final String
    "cosid.enabled"
  • me.ahoo.cosid.spring.boot.starter.CosIdAutoConfiguration
    Modifier and Type
    Constant Field
    Value
    public static final String
    "cosid.provider.isolated"
  • me.ahoo.cosid.spring.boot.starter.CosIdProperties
    Modifier and Type
    Constant Field
    Value
    public static final String
    "cosid"
  • me.ahoo.cosid.spring.boot.starter.EnabledSuffix
    Modifier and Type
    Constant Field
    Value
    public static final String
    ".enabled"
  • me.ahoo.cosid.spring.boot.starter.MongoReactiveRemoved
    Modifier and Type
    Constant Field
    Value
    public static final String
    "CosId\'s MongoDB reactive support was removed in 4.0 and only the reactive MongoDB driver is on the classpath. Add org.mongodb:mongodb-driver-sync: see https://github.com/Ahoo-Wang/CosId/blob/main/docs/MIGRATION-4.0.md"