@InterfaceAudience.Public public class SnapshotDescription extends Object
Modifier and Type | Field and Description |
---|---|
private long |
creationTime |
private long |
maxFileSize |
private String |
name |
private String |
owner |
private SnapshotType |
snapShotType |
private TableName |
table |
private long |
ttl |
private int |
version |
Constructor and Description |
---|
SnapshotDescription(String name) |
SnapshotDescription(String name,
TableName table) |
SnapshotDescription(String name,
TableName table,
SnapshotType type) |
SnapshotDescription(String snapshotName,
TableName tableName,
SnapshotType type,
Map<String,Object> snapshotProps)
SnapshotDescription Parameterized Constructor
|
SnapshotDescription(String name,
TableName table,
SnapshotType type,
String owner) |
SnapshotDescription(String name,
TableName table,
SnapshotType type,
String owner,
long creationTime,
int version)
Deprecated.
since 2.3.0 and will be removed in 4.0.0. Use
SnapshotDescription(String, TableName, SnapshotType, String, long, int, Map) |
SnapshotDescription(String name,
TableName table,
SnapshotType type,
String owner,
long creationTime,
int version,
Map<String,Object> snapshotProps)
SnapshotDescription Parameterized Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getCreationTime() |
private long |
getLongFromSnapshotProps(Map<String,Object> snapshotProps,
String property) |
long |
getMaxFileSize() |
String |
getName() |
String |
getOwner() |
TableName |
getTableName() |
String |
getTableNameAsString() |
long |
getTtl() |
SnapshotType |
getType() |
int |
getVersion() |
String |
toString() |
private final SnapshotType snapShotType
private final long creationTime
private final long ttl
private final int version
private final long maxFileSize
public SnapshotDescription(String name)
public SnapshotDescription(String name, TableName table)
public SnapshotDescription(String name, TableName table, SnapshotType type)
public SnapshotDescription(String name, TableName table, SnapshotType type, String owner)
@Deprecated public SnapshotDescription(String name, TableName table, SnapshotType type, String owner, long creationTime, int version)
SnapshotDescription(String, TableName, SnapshotType, String, long, int, Map)
name
- Name of the snapshottable
- TableName associated with the snapshottype
- Type of the snapshot - enum SnapshotTypeowner
- Snapshot OwnercreationTime
- Creation time for Snapshotversion
- Snapshot Versionpublic SnapshotDescription(String name, TableName table, SnapshotType type, String owner, long creationTime, int version, Map<String,Object> snapshotProps)
name
- Name of the snapshottable
- TableName associated with the snapshottype
- Type of the snapshot - enum SnapshotTypeowner
- Snapshot OwnercreationTime
- Creation time for Snapshotversion
- Snapshot VersionsnapshotProps
- Additional properties for snapshot e.g. TTLpublic SnapshotDescription(String snapshotName, TableName tableName, SnapshotType type, Map<String,Object> snapshotProps)
snapshotName
- Name of the snapshottableName
- TableName associated with the snapshottype
- Type of the snapshot - enum SnapshotTypesnapshotProps
- Additional properties for snapshot e.g. TTLprivate long getLongFromSnapshotProps(Map<String,Object> snapshotProps, String property)
public String getTableNameAsString()
public TableName getTableName()
public SnapshotType getType()
public long getCreationTime()
public long getTtl()
public int getVersion()
public long getMaxFileSize()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.