Send feedback
Class DatabaseInfo
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.24.0 keyboard_arrow_down
public class DatabaseInfo
Represents a Cloud Spanner database.
Inheritance
Object >
DatabaseInfo
Constructors
DatabaseInfo(DatabaseId id, DatabaseInfo.State state)
public DatabaseInfo ( DatabaseId id , DatabaseInfo . State state )
Parameters
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Returns
Overrides
getCreateTime()
public Timestamp getCreateTime ()
Returns the creation time of the database.
Returns
Type Description com.google.cloud.Timestamp
getDefaultLeader()
public String getDefaultLeader ()
The read-write region which contains the database's leader replicas. If this value was not
explicitly set during a create database or update database ddl operations, it will be
NULL
.
Returns
getDialect()
public Dialect getDialect ()
The dialect that is used by the database. It can be one of the values as specified in Dialect#values() .
Returns
getEarliestVersionTime()
public Timestamp getEarliestVersionTime ()
Returns the earliest version time of the database. This is the oldest timestamp that can be
used to read old versions of the data.
Returns
Type Description com.google.cloud.Timestamp
getEncryptionConfig()
public CustomerManagedEncryption getEncryptionConfig ()
Returns the CustomerManagedEncryption of the database if the database is encrypted, or
null
if this database is not encrypted.
Returns
getId()
public DatabaseId getId ()
Returns
getProto()
public Database getProto ()
Returns the raw proto instance that was used to construct this Database .
Returns
getRestoreInfo()
public RestoreInfo getRestoreInfo ()
Returns the RestoreInfo of the database if any is available, or null
if no
RestoreInfo is available for this database.
Returns
getState()
public DatabaseInfo . State getState ()
Returns the state of the database.
Returns
getVersionRetentionPeriod()
public String getVersionRetentionPeriod ()
Returns the version retention period of the database. This is the period for which Cloud
Spanner retains all versions of data for the database. For instance, if set to 3 days, Cloud
Spanner will retain data versions that are up to 3 days old.
Returns
hashCode()
Returns
Overrides
toString()
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]