org.opensolaris.opengrok.web
Class EftarFile
java.lang.Object
org.opensolaris.opengrok.web.EftarFile
public class EftarFile
- extends java.lang.Object
An Extremely Fast Tagged Attribute Read-only File System
Created on October 12, 2005
A Eftar File has the following format
FILE --> Record ( Record | tagString ) *
Record --> 64bit:Hash 16bit:childrenOffset 16bit:(numberChildren|lenthOfTag) 16bit:tagOffset
It is a tree of tagged names,
doing binary search in sorted list of children
Method Summary |
void |
create(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
Main method is used to generate eftar file from the path description
file in the run scripts. |
static long |
myHash(java.lang.String name)
|
void |
readInput(java.lang.String tagsPath)
|
void |
write(java.lang.String outPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RECORD_LENGTH
public static final int RECORD_LENGTH
- See Also:
- Constant Field Values
EftarFile
public EftarFile()
myHash
public static long myHash(java.lang.String name)
readInput
public void readInput(java.lang.String tagsPath)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(java.lang.String outPath)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
create
public void create(java.lang.String[] args)
throws java.io.IOException,
java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
main
public static void main(java.lang.String[] args)
- Main method is used to generate eftar file from the path description
file in the run scripts.
- Parameters:
args
- Input files and output file