|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.erowid.sperosearch.splitindex.SplitIndexFileDescriptor
A descriptor of a logical file in a split index. A logical file consists of multiple individual segment files.
Constructor Summary | |
SplitIndexFileDescriptor(SplitIndexDirectoryDescriptor directoryDescriptor,
String filename)
Creates a(n) SperowiderSplitIndexFileDescriptor object in writeable mode. |
Method Summary | |
SplitIndexDirectoryDescriptor |
getDirectoryDescriptor()
Returns the directoryDescriptor. |
String |
getFileName()
Returns the fileName. |
int |
getSegmentCount()
Returns the number of segments in this file. |
protected String |
getSegmentFilename(int segment)
Returns the filename for a specific segment. |
long |
getSize()
Returns the uncompressed size of this logical file. |
URL |
getUrlForReading(int segment)
The URL of this directory, for reading. |
protected void |
setData(String[] segmentFileNames,
long size)
Sets the array of the segment file names, in order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SplitIndexFileDescriptor(SplitIndexDirectoryDescriptor directoryDescriptor, String filename) throws IOException
Method Detail |
public String getFileName()
public URL getUrlForReading(int segment) throws MalformedURLException
MalformedURLException
protected void setData(String[] segmentFileNames, long size)
protected String getSegmentFilename(int segment)
public long getSize()
public int getSegmentCount()
public SplitIndexDirectoryDescriptor getDirectoryDescriptor()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |