org.apache.hadoop.hbase.snapshot
Class HSnapshotDescription

java.lang.Object
  extended by 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


Constructor Summary
HSnapshotDescription()
           
HSnapshotDescription(HBaseProtos.SnapshotDescription proto)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getCreationTime()
           
 String getName()
           
 HBaseProtos.SnapshotDescription getProto()
           
 String getTable()
           
 HBaseProtos.SnapshotDescription.Type getType()
           
 int getVersion()
           
 boolean hasTable()
           
 void readFields(DataInput in)
           INTERNAL This method is a part of Writable interface and is used for de-serialization of the HTableDescriptor over RPC
 String toString()
           
 void write(DataOutput out)
           INTERNAL This method is a part of Writable interface and is used for serialization of the HTableDescriptor over RPC
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HSnapshotDescription

public HSnapshotDescription()

HSnapshotDescription

public HSnapshotDescription(HBaseProtos.SnapshotDescription proto)
Method Detail

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.