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:
- Iterable<Segment>, Streamable
public class ShardSegments
- extends BroadcastShardOperationResponse
- implements 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,
List<Segment> segments)
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.