org.apache.hadoop.hbase.snapshot
Class HSnapshotDescription
java.lang.Object
org.apache.hadoop.hbase.snapshot.HSnapshotDescription
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class HSnapshotDescription
- extends Object
- implements org.apache.hadoop.io.Writable
Writable version of the SnapshotDescription used by the rpc
HSnapshotDescription
public HSnapshotDescription()
HSnapshotDescription
public HSnapshotDescription(HBaseProtos.SnapshotDescription proto)
getName
public String getName()
getProto
public HBaseProtos.SnapshotDescription getProto()
getType
public HBaseProtos.SnapshotDescription.Type getType()
getTable
public String getTable()
hasTable
public boolean hasTable()
getCreationTime
public long getCreationTime()
getVersion
public int getVersion()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
readFields
public void readFields(DataInput in)
throws IOException
- INTERNAL This method is a part of
Writable
interface
and is used for de-serialization of the HTableDescriptor over RPC
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- INTERNAL This method is a part of
Writable
interface
and is used for serialization of the HTableDescriptor over RPC
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.