|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.cdx.BinSearch
public class BinSearch
Performs a binary search through .cdx files for a given prefix string. Currently only handles a single .cdx file.
Constructor Summary | |
---|---|
BinSearch()
|
Method Summary | |
---|---|
static java.lang.Iterable<java.lang.String> |
getLinesInFile(java.io.File file,
java.lang.String prefix)
Given a file in sorted order and a prefix to search for, return a an iterable that will return the lines in the files that start with the prefix, in order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinSearch()
Method Detail |
---|
public static java.lang.Iterable<java.lang.String> getLinesInFile(java.io.File file, java.lang.String prefix)
file
- A CDX file to search in.prefix
- The line prefix to search for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |