Searched defs:line (Results 1 - 9 of 9) sorted by relevance

/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/util/
H A DCSVUtil.java39 * Parse CSV line
40 * @param line
43 public static String[] parse(String line) { argument
48 for(int i = 0; i < line.length(); i++) {
49 char c = line.charAt(i);
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/
H A DFileDictionary.java33 * <p/>Format allowed: 1 string per line, optionally with a tab-separated integer value:<br/>
41 private String line; field in class:FileDictionary
73 line = in.readLine();
74 if (line != null) {
75 String[] fields = line.split("\t");
85 spare.copyChars(line);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/synonym/
H A DWordnetSynonymParser.java48 String line = null;
53 while ((line = br.readLine()) != null) {
54 String synSetID = line.substring(2, 11);
67 synset[synsetSize] = parseSynonym(line, synset[synsetSize]);
75 ParseException ex = new ParseException("Invalid synonym rule at line " + br.getLineNumber(), 0);
83 private CharsRef parseSynonym(String line, CharsRef reuse) throws IOException { argument
88 int start = line.indexOf('\'')+1;
89 int end = line.lastIndexOf('\'');
91 String text = line.substring(start, end).replace("''", "'");
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/
H A DExtendedBufferedReader.java49 /** the line counter */
51 private CharBuffer line = new CharBuffer(); field in class:ExtendedBufferedReader
164 line.clear(); // reuse
166 line.append((char) lookaheadChar);
173 return line.toString();
177 * @return A String containing the contents of the line, not
178 * including any line-termination characters, or null
187 line.clear(); //reuse
193 // do we have a line termination already
204 return line
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/
H A DLineDocSource.java34 * A {@link ContentSource} reading one line at a time as a
38 * The expected format of each line is (arguments are separated by &lt;TAB&gt;):
39 * <i>title, date, body</i>. If a line is read in a different format, a
47 * <li>line.parser - default to {@link HeaderLineParser} if a header line exists which differs
53 /** Reader of a single input line into {@link DocData}. */
57 * @param header header line found in the input file, or null if none
62 /** parse an input line and fill doc data appropriately */
63 public abstract void parseLine(DocData docData, String line); argument
76 public void parseLine(DocData docData, String line) { argument
127 parseLine(DocData docData, String line) argument
234 createDocDataLineReader(String line) argument
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/tasks/
H A DWriteLineDocTaskTest.java144 props.setProperty("line.file.out", file.getAbsolutePath());
150 props.setProperty("line.fields", DocMaker.DATE_FIELD);
174 String line = br.readLine();
175 assertHeaderLine(line);
176 line = br.readLine();
177 assertNotNull(line);
178 String[] parts = line.split(Character.toString(WriteLineDocTask.SEP));
192 private void assertHeaderLine(String line) { argument
193 assertTrue("First line should be a header line",lin
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/
H A DJavaCharStream.java1 /* Generated By:JavaCC: Do not edit this line. JavaCharStream.java Version 4.1 */
70 protected int line = 1; field in class:JavaCharStream
160 bufline[bufpos] = line;
222 line += (column = 1);
232 line += (column = 1);
251 bufline[bufpos] = line;
329 throw new Error("Invalid escape character at line " + line +
371 /** Get end line. */
381 /** @return line numbe
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/
H A DCSVRequestHandler.java114 void add(SolrInputDocument doc, int line, int column, String val) { argument
124 void add(SolrInputDocument doc, int line, int column, String val) { argument
134 void add(SolrInputDocument doc, int line, int column, String val) { argument
135 base.add(doc, line, column, val.trim());
153 void add(SolrInputDocument doc, int line, int column, String val) { argument
155 base.add(doc,line,column,val);
171 void add(SolrInputDocument doc, int line, int column, String val) { argument
176 for (String v: vals) base.add(doc,line,column,v);
178 base.add(doc,line,column,val);
326 private void input_err(String msg, String[] line, in argument
403 addDoc(int line, String[] vals) argument
406 doAdd(int line, String[] vals, SolrInputDocument doc, AddUpdateCommand template) argument
428 addDoc(int line, String[] vals) argument
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/demohtml/
H A DSimpleCharStream.java1 /* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 4.1 */
23 protected int line = 1; field in class:SimpleCharStream
151 line += (column = 1);
161 line += (column = 1);
180 bufline[bufpos] = line;
229 /** Get token end line number. */
239 /** Get token beginning line number. */
257 line = startline;
284 line = startline;
424 * Method to adjust line an
[all...]

Completed in 20 milliseconds