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:
Iterable<Segment>, Streamable

public class ShardSegments
extends BroadcastShardOperationResponse
implements Iterable<Segment>


Constructor Summary
ShardSegments(ShardRouting shardRouting, List<Segment> segments)
           
 
Method Summary
 List<Segment> getSegments()
           
 ShardRouting getShardRouting()
           
 Iterator<Segment> iterator()
           
 int numberOfCommitted()
           
 int numberOfSearch()
           
 void readFrom(StreamInput in)
           
static ShardSegments readShardSegments(StreamInput in)
           
 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,
                     List<Segment> segments)
Method Detail

iterator

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

shardRouting

public ShardRouting shardRouting()

getShardRouting

public ShardRouting getShardRouting()

segments

public List<Segment> segments()

getSegments

public List<Segment> getSegments()

numberOfCommitted

public int numberOfCommitted()

numberOfSearch

public int numberOfSearch()

readShardSegments

public static ShardSegments readShardSegments(StreamInput in)
                                       throws IOException
Throws:
IOException

readFrom

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

writeTo

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


Copyright © 2009-2012. All Rights Reserved.