Package org.apache.hadoop.hbase.client
Class SnapshotDescription
java.lang.Object
org.apache.hadoop.hbase.client.SnapshotDescription
The POJO equivalent of HBaseProtos.SnapshotDescription
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final long
private final String
private final String
private final SnapshotType
private final TableName
private final long
private final int
-
Constructor Summary
ConstructorDescriptionSnapshotDescription
(String name) SnapshotDescription
(String name, String table) Deprecated.since 2.0.0 and will be removed in 3.0.0.SnapshotDescription
(String name, String table, SnapshotType type) Deprecated.since 2.0.0 and will be removed in 3.0.0.SnapshotDescription
(String name, String table, SnapshotType type, String owner) Deprecated.since 2.0.0 and will be removed in 3.0.0.SnapshotDescription
(String name, String table, SnapshotType type, String owner, long creationTime, int version) Deprecated.since 2.0.0 and will be removed in 3.0.0.SnapshotDescription
(String name, TableName table) SnapshotDescription
(String name, TableName table, SnapshotType type) 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.SnapshotDescription
(String name, TableName table, SnapshotType type, String owner, long creationTime, int version, Map<String, Object> snapshotProps) SnapshotDescription Parameterized ConstructorSnapshotDescription
(String snapshotName, TableName tableName, SnapshotType type, Map<String, Object> snapshotProps) SnapshotDescription Parameterized Constructor -
Method Summary
-
Field Details
-
name
-
table
-
snapShotType
-
owner
-
creationTime
-
ttl
-
version
-
maxFileSize
-
-
Constructor Details
-
SnapshotDescription
-
SnapshotDescription
Deprecated.since 2.0.0 and will be removed in 3.0.0. Use the version with the TableName instance instead. -
SnapshotDescription
-
SnapshotDescription
Deprecated.since 2.0.0 and will be removed in 3.0.0. Use the version with the TableName instance instead. -
SnapshotDescription
-
SnapshotDescription
Deprecated.since 2.0.0 and will be removed in 3.0.0. Use the version with the TableName instance instead. -
SnapshotDescription
-
SnapshotDescription
@Deprecated public SnapshotDescription(String name, String table, SnapshotType type, String owner, long creationTime, int version) Deprecated.since 2.0.0 and will be removed in 3.0.0. Use the version with the TableName instance instead. -
SnapshotDescription
@Deprecated public 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. UseSnapshotDescription(String, TableName, SnapshotType, String, long, int, Map)
SnapshotDescription Parameterized Constructor- Parameters:
name
- Name of the snapshottable
- TableName associated with the snapshottype
- Type of the snapshot - enum SnapshotTypeowner
- Snapshot OwnercreationTime
- Creation time for Snapshotversion
- Snapshot Version
-
SnapshotDescription
public SnapshotDescription(String name, TableName table, SnapshotType type, String owner, long creationTime, int version, Map<String, Object> snapshotProps) SnapshotDescription Parameterized Constructor- Parameters:
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. TTL
-
SnapshotDescription
public SnapshotDescription(String snapshotName, TableName tableName, SnapshotType type, Map<String, Object> snapshotProps) SnapshotDescription Parameterized Constructor- Parameters:
snapshotName
- Name of the snapshottableName
- TableName associated with the snapshottype
- Type of the snapshot - enum SnapshotTypesnapshotProps
- Additional properties for snapshot e.g. TTL
-
-
Method Details
-
getLongFromSnapshotProps
-
getName
-
getTable
Deprecated.since 2.0.0 and will be removed in 3.0.0. UsegetTableName()
orgetTableNameAsString()
instead.Get the table name as a string.- See Also:
-
getTableNameAsString
-
getTableName
-
getType
-
getOwner
-
getCreationTime
-
getTtl
-
getVersion
-
getMaxFileSize
-
toString
-