org.apache.hadoop.hdfs.server.protocol
Class RemoteEditLog

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.RemoteEditLog
All Implemented Interfaces:
Comparable<RemoteEditLog>, org.apache.hadoop.io.Writable

public class RemoteEditLog
extends Object
implements org.apache.hadoop.io.Writable, Comparable<RemoteEditLog>


Field Summary
static com.google.common.base.Function<RemoteEditLog,Long> GET_START_TXID
          Guava Function which applies getStartTxId()
 
Constructor Summary
RemoteEditLog()
           
RemoteEditLog(long startTxId, long endTxId)
           
 
Method Summary
 int compareTo(RemoteEditLog log)
           
 boolean equals(Object o)
           
 long getEndTxId()
           
 long getStartTxId()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_START_TXID

public static final com.google.common.base.Function<RemoteEditLog,Long> GET_START_TXID
Guava Function which applies getStartTxId()

Constructor Detail

RemoteEditLog

public RemoteEditLog()

RemoteEditLog

public RemoteEditLog(long startTxId,
                     long endTxId)
Method Detail

getStartTxId

public long getStartTxId()

getEndTxId

public long getEndTxId()

toString

public String toString()
Overrides:
toString in class Object

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

compareTo

public int compareTo(RemoteEditLog log)
Specified by:
compareTo in interface Comparable<RemoteEditLog>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.