org.elasticsearch.action.admin.indices.segments
Class ShardSegments

java.lang.Object
  extended by org.elasticsearch.action.support.broadcast.BroadcastShardOperationResponse
      extended by org.elasticsearch.action.admin.indices.segments.ShardSegments
All Implemented Interfaces:
java.lang.Iterable<Segment>, Streamable

public class ShardSegments
extends BroadcastShardOperationResponse
implements java.lang.Iterable<Segment>


Constructor Summary
ShardSegments(ShardRouting shardRouting, java.util.List<Segment> segments)
           
 
Method Summary
 java.util.List<Segment> getSegments()
           
 ShardRouting getShardRouting()
           
 java.util.Iterator<Segment> iterator()
           
 void readFrom(StreamInput in)
           
static ShardSegments readShardSegments(StreamInput in)
           
 java.util.List<Segment> segments()
           
 ShardRouting shardRouting()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastShardOperationResponse
getIndex, getShardId, index, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardSegments

public ShardSegments(ShardRouting shardRouting,
                     java.util.List<Segment> segments)
Method Detail

iterator

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

shardRouting

public ShardRouting shardRouting()

getShardRouting

public ShardRouting getShardRouting()

segments

public java.util.List<Segment> segments()

getSegments

public java.util.List<Segment> getSegments()

readShardSegments

public static ShardSegments readShardSegments(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
Overrides:
readFrom in class BroadcastShardOperationResponse
Throws:
java.io.IOException

writeTo

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