org.apache.lucene.store.db
Class File

java.lang.Object
  extended by org.apache.lucene.store.db.File

public class File
extends Object


Field Summary
protected  com.sleepycat.db.DatabaseEntry data
           
protected  com.sleepycat.db.DatabaseEntry key
           
protected  long length
           
protected  String name
           
protected static Random random
           
protected  long timeModified
           
protected  byte[] uuid
           
 
Constructor Summary
protected File(DbDirectory directory, String name, boolean create)
           
protected File(String name)
           
 
Method Summary
protected  void delete(DbDirectory directory)
           
protected  boolean exists(DbDirectory directory)
           
protected  byte[] getKey()
           
protected  long getLength()
           
protected  String getName()
           
protected  long getTimeModified()
           
protected  void modify(DbDirectory directory, long length, long timeModified)
           
protected  void rename(DbDirectory directory, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected static Random random

key

protected com.sleepycat.db.DatabaseEntry key

data

protected com.sleepycat.db.DatabaseEntry data

length

protected long length

timeModified

protected long timeModified

name

protected String name

uuid

protected byte[] uuid
Constructor Detail

File

protected File(String name)
        throws IOException
Throws:
IOException

File

protected File(DbDirectory directory,
               String name,
               boolean create)
        throws IOException
Throws:
IOException
Method Detail

getName

protected String getName()

getKey

protected byte[] getKey()
                 throws IOException
Throws:
IOException

getLength

protected long getLength()

getTimeModified

protected long getTimeModified()

exists

protected boolean exists(DbDirectory directory)
                  throws IOException
Throws:
IOException

modify

protected void modify(DbDirectory directory,
                      long length,
                      long timeModified)
               throws IOException
Throws:
IOException

delete

protected void delete(DbDirectory directory)
               throws IOException
Throws:
IOException

rename

protected void rename(DbDirectory directory,
                      String name)
               throws IOException
Throws:
IOException


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.