org.elasticsearch.search.internal
Class InternalSearchHitField

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

public class InternalSearchHitField
extends java.lang.Object
implements SearchHitField


Constructor Summary
InternalSearchHitField(java.lang.String name, java.util.List<java.lang.Object> values)
           
 
Method Summary
 java.lang.String getName()
          The name of the field.
 java.lang.Object getValue()
          The first value of the hit.
 java.util.List<java.lang.Object> getValues()
          The field values.
 java.util.Iterator<java.lang.Object> iterator()
           
 java.lang.String name()
          The name of the field.
 void readFrom(StreamInput in)
           
static InternalSearchHitField readSearchHitField(StreamInput in)
           
 java.lang.Object value()
          The first value of the hit.
 java.util.List<java.lang.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(java.lang.String name,
                              java.util.List<java.lang.Object> values)
Method Detail

name

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

Specified by:
name in interface SearchHitField

getName

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

Specified by:
getName in interface SearchHitField

value

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

Specified by:
value in interface SearchHitField

getValue

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

Specified by:
getValue in interface SearchHitField

values

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

Specified by:
values in interface SearchHitField

getValues

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

Specified by:
getValues in interface SearchHitField

iterator

public java.util.Iterator<java.lang.Object> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Object>

readSearchHitField

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

readFrom

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

writeTo

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