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 |
---|---|
(package private) java.lang.CharSequence[] |
getValuesByField() |
(package private) void |
init() |
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)
void init()
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
java.lang.CharSequence[] getValuesByField()