gpt4 book ai didi

io.debezium.time.ZonedTimestamp.builder()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 18:35:31 24 4
gpt4 key购买 nike

本文整理了Java中io.debezium.time.ZonedTimestamp.builder()方法的一些代码示例,展示了ZonedTimestamp.builder()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZonedTimestamp.builder()方法的具体详情如下:
包路径:io.debezium.time.ZonedTimestamp
类名称:ZonedTimestamp
方法名:builder

ZonedTimestamp.builder介绍

[英]Returns a SchemaBuilder for a ZonedTimestamp. You can use the resulting SchemaBuilder to set additional schema settings such as required/optional, default value, and documentation.
[中]返回ZonedTimestamp的SchemaBuilder。您可以使用生成的SchemaBuilder设置其他模式设置,例如必需/可选、默认值和文档。

代码示例

代码示例来源:origin: debezium/debezium

/**
 * Returns a Schema for a {@link ZonedTimestamp} but with all other default Schema settings.
 * 
 * @return the schema
 * @see #builder()
 */
public static Schema schema() {
  return builder().build();
}

代码示例来源:origin: debezium/debezium

@Override
public SchemaBuilder schemaBuilder(Column column) {
  switch (column.jdbcType()) {
    // Numeric integers
    case Types.TINYINT:
      // values are an 8-bit unsigned integer value between 0 and 255, we thus need to store it in short int
      return SchemaBuilder.int16();
    // Floating point
    case microsoft.sql.Types.SMALLMONEY:
    case microsoft.sql.Types.MONEY:
      return SpecialValueDecimal.builder(decimalMode, column.length(), column.scale().get());
    case microsoft.sql.Types.DATETIMEOFFSET:
      return ZonedTimestamp.builder();
    default:
      return super.schemaBuilder(column);
  }
}

代码示例来源:origin: debezium/debezium

return ZonedTime.builder();
case Types.TIMESTAMP_WITH_TIMEZONE:
  return ZonedTimestamp.builder();

代码示例来源:origin: debezium/debezium

case PgOid.TIMESTAMPTZ:
  return ZonedTimestamp.builder();
case PgOid.TIMETZ:

代码示例来源:origin: debezium/debezium

Bits.builder(2).optional().build());
assertTableSchema("public.time_table", "ts, tz, date, ti, ttz, it",
         MicroTimestamp.builder().optional().build(), ZonedTimestamp.builder().optional().build(),
         Date.builder().optional().build(), MicroTime.builder().optional().build(), ZonedTime.builder().optional().build(),
         MicroDuration.builder().optional().build());

代码示例来源:origin: io.debezium/debezium-core

/**
 * Returns a Schema for a {@link ZonedTimestamp} but with all other default Schema settings.
 * 
 * @return the schema
 * @see #builder()
 */
public static Schema schema() {
  return builder().build();
}

代码示例来源:origin: io.debezium/debezium-connector-oracle

@Override
public SchemaBuilder schemaBuilder(Column column) {
  logger.debug("Building schema for column {} of type {} named {} with constraints ({},{})",
      column.name(),
      column.jdbcType(),
      column.typeName(),
      column.length(),
      column.scale()
  );
  switch (column.jdbcType()) {
    // Oracle's float is not float as in Java but a NUMERIC without scale
    case Types.FLOAT:
      return VariableScaleDecimal.builder();
    case Types.NUMERIC:
      return getNumericSchema(column);
    case OracleTypes.BINARY_FLOAT:
      return SchemaBuilder.float32();
    case OracleTypes.BINARY_DOUBLE:
      return SchemaBuilder.float64();
    case OracleTypes.TIMESTAMPTZ:
    case OracleTypes.TIMESTAMPLTZ:
      return ZonedTimestamp.builder();
    case OracleTypes.INTERVALYM:
    case OracleTypes.INTERVALDS:
      return MicroDuration.builder();
    default:
      return super.schemaBuilder(column);
  }
}

代码示例来源:origin: io.debezium/debezium-core

return ZonedTime.builder();
case Types.TIMESTAMP_WITH_TIMEZONE:
  return ZonedTimestamp.builder();

代码示例来源:origin: io.debezium/debezium-connector-postgres

case PgOid.TIMESTAMPTZ:
  return ZonedTimestamp.builder();
case PgOid.TIMETZ:

代码示例来源:origin: io.debezium/debezium-connector-postgres

Bits.builder(2).optional().build());
assertTableSchema("public.time_table", "ts, tz, date, ti, ttz, it",
         MicroTimestamp.builder().optional().build(), ZonedTimestamp.builder().optional().build(),
         Date.builder().optional().build(), MicroTime.builder().optional().build(), ZonedTime.builder().optional().build(),
         MicroDuration.builder().optional().build());

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com