org.elasticsearch.search.internal
Class InternalSearchHitField

java.lang.Object
  extended by org.elasticsearch.search.internal.InternalSearchHitField
All Implemented Interfaces:
Iterable<Object>, Streamable, SearchHitField

public class InternalSearchHitField
extends Object
implements SearchHitField


Constructor Summary
InternalSearchHitField(String name, List<Object> values)
           
 
Method Summary
 String getName()
          The name of the field.
 Object getValue()
          The first value of the hit.
 List<Object> getValues()
          The field values.
 Iterator<Object> iterator()
           
 String name()
          The name of the field.
 void readFrom(StreamInput in)
           
static InternalSearchHitField readSearchHitField(StreamInput in)
           
 Object value()
          The first value of the hit.
 List<Object> values()
          The field values.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalSearchHitField

public InternalSearchHitField(String name,
                              List<Object> values)
Method Detail

name

public String name()
Description copied from interface: SearchHitField
The name of the field.

Specified by:
name in interface SearchHitField

getName

public String getName()
Description copied from interface: SearchHitField
The name of the field.

Specified by:
getName in interface SearchHitField

value

public Object value()
Description copied from interface: SearchHitField
The first value of the hit.

Specified by:
value in interface SearchHitField

getValue

public Object getValue()
Description copied from interface: SearchHitField
The first value of the hit.

Specified by:
getValue in interface SearchHitField

values

public List<Object> values()
Description copied from interface: SearchHitField
The field values.

Specified by:
values in interface SearchHitField

getValues

public List<Object> getValues()
Description copied from interface: SearchHitField
The field values.

Specified by:
getValues in interface SearchHitField

iterator

public Iterator<Object> iterator()
Specified by:
iterator in interface Iterable<Object>

readSearchHitField

public static InternalSearchHitField readSearchHitField(StreamInput in)
                                                 throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.