public class HighlightField extends Object implements Streamable
Constructor and Description |
---|
HighlightField(String name,
Text[] fragments) |
Modifier and Type | Method and Description |
---|---|
Text[] |
fragments()
The highlighted fragments.
|
Text[] |
getFragments()
The highlighted fragments.
|
String |
getName()
The name of the field highlighted.
|
String |
name()
The name of the field highlighted.
|
void |
readFrom(StreamInput in) |
static HighlightField |
readHighlightField(StreamInput in) |
String |
toString() |
void |
writeTo(StreamOutput out) |
public String name()
public String getName()
public Text[] fragments()
public Text[] getFragments()
public static HighlightField readHighlightField(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.