All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clickzetta.platform.common.Constant Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.clickzetta.platform.common;

import com.clickzetta.client.ClickZettaClient;

public class Constant {
  /**
   * version info for client & rpc message.
   */
  public static final String VERSION_NAME = ClickZettaClient.SDK_INFO;
  public static final int VERSION_NUMBER = 0;

  public static final int MUTATION_BUFFER_SIZE = 10 * 1024 * 1024;
  public static final Long MUTATION_FLUSH_INTERVAL = 10 * 1000L;
  public static final Integer MUTATION_BUFFER_MAX_NUM = 10;
  public static final Long MUTATION_TIMEOUT = 2000L;
  public static final Integer MUTATION_LINES_NUM = 1000;

  public static final String STREAM_URL_PREFIX = "igs:";
  public static final String JDBC_URL_PREFIX = "jdbc:";

  public static final String VIRTUAL_BUCKET_KEY = "CZ_VIRTUAL_BUCKET_KEY";
  public static final String VIRTUAL_CLUSTER_KEY = "CZ_VIRTUAL_CLUSTER_KEY";
  public static final String VIRTUAL_NORMAL_KEY = "CZ_VIRTUAL_NORMAL_KEY";

  // other options.
  /**
   * default: 1000. internal: 2s
   */
  public static final String GET_WORKER_MAX_RETRY_TIMES = "get.worker.retry.times";

  /**
   * default: true
   */
  public static final String TABLET_IDLE_RECREATE_SUPPORT = "tablet.idle.recreate.support";

  /**
   * default:
   */
  public static final String TABLET_IDLE_STATUS = "tablet.idle.status";

  /**
   * default: true
   */
  public static final String ARROW_ROW_FORMAT_CHECK = "arrow.row.format.check";

  /**
   * default: 8
   */
  public static final String ASYNC_FLUSH_THREAD = "async.flush.thread";

  /**
   * default: false
   */
  public static final String SESSION_MULTI_RPC_CONNECTION = "session.multi.rpc.connection";

  /**
   * default: false
   */
  public static final String ROW_POOL_SUPPORT = "row.pool.support";

  /**
   * default: array
   * values: array|queue
   */
  public static final String ROW_POOL_TYPE = "row.pool.type";

  /**
   * default: 20_000
   */
  public static final String ROW_POOL_MAX_SIZE = "row.pool.max.size";

  /**
   * default: 1024
   */
  public static final String MULTI_TABLE_CACHE_SIZE = "multi.table.cache.size";

  /**
   * default: true
   */
  public static final String POOLED_ALLOCATOR_SUPPORT = "pooled.allocator.support";

  /**
   * default: false
   */
  public static final String SCHEMA_EVOLUTION_SUPPORT = "schema.evolution.support";

  /**
   * default: false
   */
  public static final String CLIENT_RPC_RETRY_SUPPORT = "client.rpc.retry.support";

  /**
   * default: 3
   */
  public static final String CLIENT_RPC_RETRY_TIMES = "client.rpc.retry.times";

  /**
   * default: 5 * 1000 MS
   */
  public static final String CLIENT_RPC_RETRY_INTERVAL_MS = "client.rpc.retry.interval.ms";

  /**
   * Maximum number of retry times for checking commit result.
   */
  public static final String CHECK_COMMIT_RESULT_RETRY_TIMES = "check.commit.result.retry.times";
  public static final int CHECK_COMMIT_RESULT_RETRY_TIMES_DEFAULT = 100;

  /**
   * Sleep interval between each check of commit result.
   */
  public static final String CHECK_COMMIT_RESULT_INTERVAL_MS = "check.commit.result.interval.ms";
  public static final int CHECK_COMMIT_RESULT_INTERVAL_MS_DEFAULT = 1000;

  public static int CLOSEABLE_INTERNAL_DEFAULT_WAIT_TIME_MS = 5 * 1000;

  /**
   * default: false
   */
  public static final String STRING_BYTES_ENCODE_SUPPORT = "string.bytes.encode.support";

  /**
   * default: false
   */
  public static final String JSON_INT_DATE_SUPPORT = "json.int.date.support";

  /**
   * default: false
   */
  public static final String ROWDATA_JSONBYTES_SUPPORT = "rowData.jsonBytes.support";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy