@InternalExtensionOnly public class BigtableOptions extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
BigtableOptions.Builder
A mutable builder for BigtableConnectionOptions.
|
static interface |
BigtableOptions.ChannelConfigurator
For internal use only - public for technical reasons.
|
Modifier and Type | Field and Description |
---|---|
static String |
BIGTABLE_ADMIN_HOST_DEFAULT
For internal use only - public for technical reasons.
|
static String |
BIGTABLE_APP_PROFILE_DEFAULT
Constant
BIGTABLE_APP_PROFILE_DEFAULT="" , defaults to the server default app
profile |
static String |
BIGTABLE_BATCH_DATA_HOST_DEFAULT
For internal use only - public for technical reasons.
|
static String |
BIGTABLE_CLIENT_ADAPTER
Deprecated.
This field will be removed in future versions.
|
static int |
BIGTABLE_DATA_CHANNEL_COUNT_DEFAULT
For internal use only - public for technical reasons.
|
static String |
BIGTABLE_DATA_HOST_DEFAULT
For internal use only - public for technical reasons.
|
static String |
BIGTABLE_EMULATOR_HOST_ENV_VAR
For internal use only - public for technical reasons.
|
static int |
BIGTABLE_PORT_DEFAULT
For internal use only - public for technical reasons.
|
Modifier and Type | Method and Description |
---|---|
static BigtableOptions.Builder |
builder()
Create a new instance of the
BigtableOptions.Builder . |
protected BigtableOptions |
clone() |
boolean |
equals(Object obj) |
String |
getAdminHost()
Getter for the field
tableAdminHost . |
String |
getAppProfileId()
Getter for the field
appProfileId . |
BulkOptions |
getBulkOptions()
Getter for the field
bulkOptions . |
CallOptionsConfig |
getCallOptionsConfig()
Getter for the field
callOptionsConfig . |
BigtableOptions.ChannelConfigurator |
getChannelConfigurator()
For internal use only - public for technical reasons.
|
int |
getChannelCount()
The number of data channels to create.
|
CredentialOptions |
getCredentialOptions()
Get the credential this object was constructed with.
|
String |
getDataHost()
Getter for the field
dataHost . |
static BigtableOptions |
getDefaultOptions() |
String |
getInstanceId()
Getter for the field
instanceId . |
BigtableInstanceName |
getInstanceName()
Getter for the field
instanceName . |
int |
getPort()
Getter for the field
port . |
String |
getProjectId()
Getter for the field
projectId . |
RetryOptions |
getRetryOptions()
Options controlling retries.
|
String |
getTracingCookie()
Getter for tracing cookie
|
String |
getUserAgent()
Gets the user-agent to be appended to User-Agent header when creating new streams for the
channel.
|
static boolean |
isDirectPathEnabled()
Checks if DirectPath is enabled via an environment variable.
|
BigtableOptions.Builder |
toBuilder()
toBuilder.
|
String |
toString() |
boolean |
useBatch() |
boolean |
useCachedChannel()
Experimental feature to allow situations with multiple connections to optimize their startup
time.
|
boolean |
useGCJClient()
useGCJClient
|
boolean |
usePlaintextNegotiation()
usePlaintextNegotiation.
|
@InternalApi(value="For internal usage only") public static final String BIGTABLE_EMULATOR_HOST_ENV_VAR
@InternalApi(value="For internal usage only") public static final String BIGTABLE_ADMIN_HOST_DEFAULT
@InternalApi(value="For internal usage only") public static final String BIGTABLE_DATA_HOST_DEFAULT
@InternalApi(value="For internal usage only") public static final String BIGTABLE_BATCH_DATA_HOST_DEFAULT
@InternalApi(value="For internal usage only") public static final int BIGTABLE_PORT_DEFAULT
@InternalApi(value="For internal usage only") public static final int BIGTABLE_DATA_CHANNEL_COUNT_DEFAULT
@InternalApi(value="For internal usage only") public static final String BIGTABLE_APP_PROFILE_DEFAULT
BIGTABLE_APP_PROFILE_DEFAULT=""
, defaults to the server default app
profile
For internal use only - public for technical reasons.
@Deprecated public static final String BIGTABLE_CLIENT_ADAPTER
public static BigtableOptions getDefaultOptions()
@InternalApi(value="For internal use only") public static boolean isDirectPathEnabled()
For internal use only - public for technical reasons.
public static BigtableOptions.Builder builder()
BigtableOptions.Builder
.public String getAdminHost()
tableAdminHost
.String
object.public String getInstanceId()
instanceId
.String
object.public String getAppProfileId()
appProfileId
.String
object.public int getPort()
port
.public CredentialOptions getCredentialOptions()
public String getUserAgent()
String
object.public RetryOptions getRetryOptions()
RetryOptions
object.public int getChannelCount()
@InternalApi(value="Visible for testing only") @Nullable public BigtableOptions.ChannelConfigurator getChannelConfigurator()
public BigtableInstanceName getInstanceName()
instanceName
.BigtableInstanceName
object.public BulkOptions getBulkOptions()
bulkOptions
.BulkOptions
object.public boolean usePlaintextNegotiation()
public CallOptionsConfig getCallOptionsConfig()
callOptionsConfig
.CallOptionsConfig
object.@BetaApi(value="Will be removed after hbase transitions away from bigtable-client-core") public boolean useGCJClient()
@BetaApi(value="The API for tracing cookie is not yet stable and may change in the future") public String getTracingCookie()
public BigtableOptions.Builder toBuilder()
BigtableOptions.Builder
object.public boolean useCachedChannel()
BigtableSession
.public boolean useBatch()
protected BigtableOptions clone()