|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hrstc.trec.ColumnExtractor
public class ColumnExtractor
ColumnExtractor.java Created on November 3, 2004, 8:41 AM Extracts specified columns from a file regular args: queries_even.txt.result 4 5 6 7 8 9 10 lucene args: queries.txt.result 4 5 6 7 8 9 10 desc run args:
Constructor Summary | |
---|---|
ColumnExtractor()
Creates a new instance of ColumnExtractor |
Method Summary | |
---|---|
private java.lang.String |
extractColumns(java.lang.String str,
int fromIdx)
Extract columns range |
private java.lang.String |
extractColumns(java.lang.String str,
java.lang.String[] args)
Extracts specific columns |
static void |
main(java.lang.String[] args)
Extracts specific columns; if there are only 2 args extracts columns starting with args[1] |
void |
process(java.lang.String[] args)
Extracts specific columns; if there are only 2 args extracts columns starting with args[1] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnExtractor()
Method Detail |
---|
public void process(java.lang.String[] args) throws java.io.IOException
args[1]
args
-
java.io.IOException
private java.lang.String extractColumns(java.lang.String str, java.lang.String[] args)
str
- args
- - from main
private java.lang.String extractColumns(java.lang.String str, int fromIdx)
str
- fromIdx
- - inclusive 1 based
public static void main(java.lang.String[] args) throws java.io.IOException
args[1]
args
- fileName col0 col2 (columns are 0 based)
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |