com.google.cloud.bigtable.config
Class BigtableOptions.Builder
- java.lang.Object
-
- com.google.cloud.bigtable.config.BigtableOptions.Builder
-
- Enclosing class:
- BigtableOptions
public static class BigtableOptions.Builder extends Object
A mutable builder for BigtableConnectionOptions.
-
-
Constructor Summary
Constructors Constructor and Description Builder()
Deprecated.Please use theBigtableOptions.builder()
instead.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
@Deprecated public Builder()
Deprecated. Please use theBigtableOptions.builder()
instead.
-
-
Method Detail
-
setAdminHost
public BigtableOptions.Builder setAdminHost(String adminHost)
-
setDataHost
public BigtableOptions.Builder setDataHost(String dataHost)
-
setPort
public BigtableOptions.Builder setPort(int port)
-
setProjectId
public BigtableOptions.Builder setProjectId(String projectId)
-
setInstanceId
public BigtableOptions.Builder setInstanceId(String instanceId)
-
setAppProfileId
public BigtableOptions.Builder setAppProfileId(String appProfileId)
-
setCredentialOptions
public BigtableOptions.Builder setCredentialOptions(CredentialOptions credentialOptions)
-
setUserAgent
public BigtableOptions.Builder setUserAgent(String userAgent)
-
setDataChannelCount
public BigtableOptions.Builder setDataChannelCount(int dataChannelCount)
-
getDataChannelCount
public int getDataChannelCount()
-
setRetryOptions
public BigtableOptions.Builder setRetryOptions(RetryOptions retryOptions)
-
setBulkOptions
public BigtableOptions.Builder setBulkOptions(BulkOptions bulkOptions)
-
setUsePlaintextNegotiation
public BigtableOptions.Builder setUsePlaintextNegotiation(boolean usePlaintextNegotiation)
-
setUseCachedDataPool
public BigtableOptions.Builder setUseCachedDataPool(boolean useCachedDataPool)
This enables an experimentalBigtableSession
feature that caches datapools for cases where there are many HBase Connections / BigtableSessions opened. This happens frequently in Dataflow- Parameters:
useCachedDataPool
- a flag to decide connection pool usages.- Returns:
- a
BigtableOptions.Builder
object with cached DataPool flag.
-
setCallOptionsConfig
public BigtableOptions.Builder setCallOptionsConfig(CallOptionsConfig callOptionsConfig)
-
setUseBatch
public BigtableOptions.Builder setUseBatch(boolean useBatch)
-
setUseGCJClient
public BigtableOptions.Builder setUseGCJClient(boolean useGCJClient)
-
enableEmulator
public BigtableOptions.Builder enableEmulator(String emulatorHostAndPort)
-
enableEmulator
public BigtableOptions.Builder enableEmulator(String host, int port)
-
build
public BigtableOptions build()
-
-