org.ektorp
Class DbInfo
java.lang.Object
org.ektorp.DbInfo
- All Implemented Interfaces:
- Serializable
public class DbInfo
- extends Object
- implements Serializable
- Author:
- henrik lundgren
- See Also:
- Serialized Form
DbInfo
public DbInfo(String dbName)
isCompactRunning
public boolean isCompactRunning()
getDbName
public String getDbName()
- Returns:
- Name of the database
getDiskFormatVersion
public int getDiskFormatVersion()
- Returns:
- Current version of the internal database format on disk
getDiskSize
public long getDiskSize()
- Returns:
- Current size in Bytes of the database (Note: Size of views indexes on disk are not included)
getDocCount
public long getDocCount()
- Returns:
- Number of documents (including design documents) in the database.
getDocDelCount
public int getDocDelCount()
- Returns:
getInstanceStartTime
public long getInstanceStartTime()
- Returns:
- Timestamp of CouchDBs start time (ms)
getPurgeSeq
public int getPurgeSeq()
- Returns:
- Number of purge operations
getUpdateSeq
public long getUpdateSeq()
- Returns:
- Current number of updates to the database
getUpdateSeqAsString
public String getUpdateSeqAsString()
- Cloudant uses generated strings for update sequence.
- Returns:
isUpdateSeqNumeric
public boolean isUpdateSeqNumeric()
- Returns:
- false if db is an Cloudant instance.
setUnknown
public void setUnknown(String key,
Object value)
getUnknownFields
public Map<String,Object> getUnknownFields()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2011. All Rights Reserved.