public class BasicArticleIndex extends Object
Basic class of handling article index information
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
BasicArticleIndex(String indexFilename,
boolean writingMode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String key,
long offset) |
boolean |
add(String key,
String filename,
long offset,
int length) |
void |
close() |
boolean |
contains(String key) |
long |
getCollectionFileSize() |
String |
getFilename(int fileIndex) |
boolean |
isWritingMode() |
BasicArticleKey |
search(String key) |
void |
setCollectionFileSize(long size) |
public BasicArticleIndex(String indexFilename, boolean writingMode)
public boolean isWritingMode()
public boolean add(String key, long offset)
public String getFilename(int fileIndex)
public boolean contains(String key)
public BasicArticleKey search(String key)
public void setCollectionFileSize(long size)
public long getCollectionFileSize()
public void close()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.