@InterfaceAudience.Private @InterfaceStability.Evolving public class ProcedureWALFile extends Object implements Comparable<ProcedureWALFile>
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.fs.FileSystem |
fs |
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader |
header |
private static org.apache.commons.logging.Log |
LOG |
private org.apache.hadoop.fs.Path |
logFile |
private org.apache.hadoop.fs.FileStatus |
logStatus |
private long |
maxProcId |
private long |
minProcId |
private long |
startPos |
private org.apache.hadoop.fs.FSDataInputStream |
stream |
Constructor and Description |
---|
ProcedureWALFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus logStatus) |
ProcedureWALFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path logFile,
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader header,
long startPos) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compareTo(ProcedureWALFile other) |
boolean |
equals(Object o) |
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader |
getHeader() |
long |
getLogId() |
long |
getMaxProcId() |
long |
getMinProcId() |
long |
getSize() |
org.apache.hadoop.fs.FSDataInputStream |
getStream() |
int |
hashCode() |
boolean |
isCompacted() |
void |
open() |
void |
readTracker(ProcedureStoreTracker tracker) |
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer |
readTrailer() |
void |
removeFile() |
void |
setProcIds(long minId,
long maxId) |
String |
toString() |
private static final org.apache.commons.logging.Log LOG
private org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader header
private org.apache.hadoop.fs.FSDataInputStream stream
private org.apache.hadoop.fs.FileStatus logStatus
private org.apache.hadoop.fs.FileSystem fs
private org.apache.hadoop.fs.Path logFile
private long startPos
private long minProcId
private long maxProcId
public ProcedureWALFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.FileStatus logStatus)
public ProcedureWALFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path logFile, org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader header, long startPos)
public void open() throws IOException
IOException
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALTrailer readTrailer() throws IOException
IOException
public void readTracker(ProcedureStoreTracker tracker) throws IOException
IOException
public void close()
public org.apache.hadoop.fs.FSDataInputStream getStream()
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureWALHeader getHeader()
public boolean isCompacted()
public long getLogId()
public long getSize()
public void removeFile() throws IOException
IOException
public void setProcIds(long minId, long maxId)
public long getMinProcId()
public long getMaxProcId()
public int compareTo(ProcedureWALFile other)
compareTo
in interface Comparable<ProcedureWALFile>
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.