org.apache.lucene.store.je

Class File

public class File extends Object

Port of Andi Vajda's DbDirectory to Java Edition of Berkeley Database

Author: Aaron Donovan

Field Summary
protected DatabaseEntrydata
protected DatabaseEntrykey
protected longlength
protected Stringname
protected static Randomrandom
protected longtimeModified
protected byte[]uuid
Constructor Summary
protected File(String name)
protected File(JEDirectory directory, String name, boolean create)
Method Summary
protected voiddelete(JEDirectory directory)
protected booleanexists(JEDirectory directory)
protected byte[]getKey()
protected longgetLength()
protected StringgetName()
protected longgetTimeModified()
protected voidmodify(JEDirectory directory, long length, long timeModified)
protected voidrename(JEDirectory directory, String name)

Field Detail

data

protected DatabaseEntry data

key

protected DatabaseEntry key

length

protected long length

name

protected String name

random

protected static Random random

timeModified

protected long timeModified

uuid

protected byte[] uuid

Constructor Detail

File

protected File(String name)

File

protected File(JEDirectory directory, String name, boolean create)

Method Detail

delete

protected void delete(JEDirectory directory)

exists

protected boolean exists(JEDirectory directory)

getKey

protected byte[] getKey()

getLength

protected long getLength()

getName

protected String getName()

getTimeModified

protected long getTimeModified()

modify

protected void modify(JEDirectory directory, long length, long timeModified)

rename

protected void rename(JEDirectory directory, String name)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.