protected static class UnifiedHighlighter.LimitedStoredFieldVisitor extends StoredFieldVisitor
StoredFieldVisitor.Status
Modifier and Type | Field and Description |
---|---|
protected int |
currentField |
protected java.lang.String[] |
fields |
protected int |
maxLength |
protected java.lang.CharSequence[] |
values |
protected char |
valueSeparator |
Constructor and Description |
---|
LimitedStoredFieldVisitor(java.lang.String[] fields,
char valueSeparator,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
StoredFieldVisitor.Status |
needsField(FieldInfo fieldInfo)
Hook before processing a field.
|
void |
stringField(FieldInfo fieldInfo,
byte[] byteValue)
Process a string field; the provided byte[] value is a UTF-8 encoded string value.
|
binaryField, doubleField, floatField, intField, longField
protected final java.lang.String[] fields
protected final char valueSeparator
protected final int maxLength
protected java.lang.CharSequence[] values
protected int currentField
public LimitedStoredFieldVisitor(java.lang.String[] fields, char valueSeparator, int maxLength)
public void stringField(FieldInfo fieldInfo, byte[] byteValue) throws java.io.IOException
StoredFieldVisitor
stringField
in class StoredFieldVisitor
java.io.IOException
public StoredFieldVisitor.Status needsField(FieldInfo fieldInfo) throws java.io.IOException
StoredFieldVisitor
StoredFieldVisitor.Status
representing whether
they need that particular field or not, or to stop processing
entirely.needsField
in class StoredFieldVisitor
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.