public class JsonPreAnalyzedParser extends Object implements PreAnalyzedField.PreAnalyzedParser
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_KEY |
static String |
FLAGS_KEY |
static String |
OFFSET_END_KEY |
static String |
OFFSET_START_KEY |
static String |
PAYLOAD_KEY |
static String |
POSINCR_KEY |
static String |
STRING_KEY |
static String |
TOKEN_KEY |
static String |
TOKENS_KEY |
static String |
TYPE_KEY |
static String |
VERSION |
static String |
VERSION_KEY |
Constructor and Description |
---|
JsonPreAnalyzedParser() |
Modifier and Type | Method and Description |
---|---|
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
PreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource) . |
public static final String VERSION
public static final String VERSION_KEY
public static final String STRING_KEY
public static final String BINARY_KEY
public static final String TOKENS_KEY
public static final String TOKEN_KEY
public static final String OFFSET_START_KEY
public static final String OFFSET_END_KEY
public static final String POSINCR_KEY
public static final String PAYLOAD_KEY
public static final String TYPE_KEY
public static final String FLAGS_KEY
public PreAnalyzedField.ParseResult parse(Reader reader, AttributeSource parent) throws IOException
PreAnalyzedField.PreAnalyzedParser
parse
in interface PreAnalyzedField.PreAnalyzedParser
reader
- input to read fromparent
- parent who will own the resulting states (tokens with attributes)IOException
- if a parsing error or IO error occurspublic String toFormattedString(Field f) throws IOException
PreAnalyzedField.PreAnalyzedParser
PreAnalyzedField.PreAnalyzedParser.parse(Reader, AttributeSource)
.toFormattedString
in interface PreAnalyzedField.PreAnalyzedParser
f
- field instanceIOException
- If there is a low-level I/O error.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.