org.apache.solr.schema
Interface PreAnalyzedField.PreAnalyzedParser

All Known Implementing Classes:
JsonPreAnalyzedParser, SimplePreAnalyzedParser
Enclosing class:
PreAnalyzedField

public static interface PreAnalyzedField.PreAnalyzedParser

Parse the input and return the stored part and the tokens with attributes.


Method Summary
 PreAnalyzedField.ParseResult parse(Reader reader, AttributeSource parent)
          Parse input.
 String toFormattedString(Field f)
          Format a field so that the resulting String is valid for parsing with parse(Reader, AttributeSource).
 

Method Detail

parse

PreAnalyzedField.ParseResult parse(Reader reader,
                                   AttributeSource parent)
                                   throws IOException
Parse input.

Parameters:
reader - input to read from
parent - parent who will own the resulting states (tokens with attributes)
Returns:
parse result, with possibly null stored and/or states fields.
Throws:
IOException - if a parsing error or IO error occurs

toFormattedString

String toFormattedString(Field f)
                         throws IOException
Format a field so that the resulting String is valid for parsing with parse(Reader, AttributeSource).

Parameters:
f - field instance
Returns:
formatted string
Throws:
IOException - If there is a low-level I/O error.


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.