org.elasticsearch.action.admin.indices.segments
Class ShardSegments
java.lang.Object
org.elasticsearch.action.support.broadcast.BroadcastShardOperationResponse
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShardSegments
public ShardSegments(ShardRouting shardRouting,
java.util.List<Segment> segments)
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