public class DataFile extends LinkedNode implements Comparable<DataFile>
Modifier and Type | Field and Description |
---|---|
protected Integer |
dataFileId |
protected File |
file |
protected int |
length |
protected int |
preferedSize |
protected int |
referenceCount |
next, prev, tail
Modifier and Type | Method and Description |
---|---|
void |
closeRandomAccessFile(RandomAccessFile file) |
int |
compareTo(DataFile df) |
int |
decrement() |
boolean |
delete() |
boolean |
equals(Object o) |
Integer |
getDataFileId() |
int |
getLength() |
int |
getReferenceCount() |
int |
hashCode() |
int |
increment() |
void |
incrementLength(int size) |
boolean |
isUnused() |
void |
move(File targetDirectory) |
RandomAccessFile |
openRandomAccessFile(boolean appender) |
void |
setLength(int length) |
String |
toString() |
getHeadNode, getNext, getPrevious, getTailNode, isHeadNode, isTailNode, linkAfter, linkBefore, reset, unlink
protected final File file
protected final Integer dataFileId
protected final int preferedSize
protected int length
protected int referenceCount
public Integer getDataFileId()
public int getLength()
public void setLength(int length)
public void incrementLength(int size)
public int increment()
public int decrement()
public int getReferenceCount()
public boolean isUnused()
public RandomAccessFile openRandomAccessFile(boolean appender) throws IOException
IOException
public void closeRandomAccessFile(RandomAccessFile file) throws IOException
IOException
public boolean delete() throws IOException
IOException
public void move(File targetDirectory) throws IOException
IOException
public int compareTo(DataFile df)
compareTo
in interface Comparable<DataFile>
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.