public class Documents extends Object
uid
the algorithm works as follows:
Constructor and Description |
---|
Documents(String location)
Constructor for the Documents object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the structure.
|
void |
destroy()
Destroy this data structure.
|
static void |
destroy(String location) |
DocumentData |
elementAt(long uid)
Return the element with the given
uid . |
IMetaReader |
getReader(Bitmap map)
Open this structure for sequential reading.
|
long |
size() |
public Documents(String location) throws IOException
location
- the location where the files will be
createdIOException
- if an I/O error occurspublic IMetaReader getReader(Bitmap map)
map
- public void destroy()
close()
. Then
it removes these files from the directory where the structure is
stored: bitmap, idocs, docs.public static void destroy(String location)
public DocumentData elementAt(long uid)
uid
.uid
- the key of the element to fetchpublic void close()
Documents(String)
public long size()
Copyright © 2016 Egothor. All Rights Reserved.