public class DataFile extends LinkedNode<DataFile> implements Comparable<DataFile>
Modifier and Type | Field and Description |
---|---|
protected SequenceSet |
corruptedBlocks |
protected Integer |
dataFileId |
protected File |
file |
protected int |
length |
list, next, prev
Modifier and Type | Method and Description |
---|---|
void |
closeRandomAccessFile(RecoverableRandomAccessFile file) |
int |
compareTo(DataFile df) |
boolean |
delete() |
boolean |
equals(Object o) |
SequenceSet |
getCorruptedBlocks() |
Integer |
getDataFileId() |
File |
getFile() |
int |
getLength() |
int |
hashCode() |
void |
incrementLength(int size) |
void |
move(File targetDirectory) |
RecoverableRandomAccessFile |
openRandomAccessFile() |
void |
setLength(int length) |
String |
toString() |
getHeadNode, getList, getNext, getNextCircular, getPrevious, getPreviousCircular, getTailNode, isHeadNode, isLinked, isTailNode, linkAfter, linkAfter, linkBefore, linkBefore, linkToHead, linkToTail, splitAfter, splitBefore, unlink
protected final Integer dataFileId
protected volatile int length
protected final SequenceSet corruptedBlocks
public Integer getDataFileId()
public int getLength()
public void setLength(int length)
public void incrementLength(int size)
public RecoverableRandomAccessFile openRandomAccessFile() throws IOException
IOException
public void closeRandomAccessFile(RecoverableRandomAccessFile file) throws IOException
IOException
public boolean delete() throws IOException
IOException
public void move(File targetDirectory) throws IOException
IOException
public SequenceSet getCorruptedBlocks()
public int compareTo(DataFile df)
compareTo
in interface Comparable<DataFile>
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.