Class ShardSegments
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.segments.ShardSegments
-
- All Implemented Interfaces:
java.lang.Iterable<Segment>,Streamable
public class ShardSegments extends java.lang.Object implements Streamable, java.lang.Iterable<Segment>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfCommitted()intgetNumberOfSearch()java.util.List<Segment>getSegments()ShardRoutinggetShardRouting()java.util.Iterator<Segment>iterator()voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.static ShardSegmentsreadShardSegments(StreamInput in)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.
-
-
-
Method Detail
-
iterator
public java.util.Iterator<Segment> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Segment>
-
getShardRouting
public ShardRouting getShardRouting()
-
getSegments
public java.util.List<Segment> getSegments()
-
getNumberOfCommitted
public int getNumberOfCommitted()
-
getNumberOfSearch
public int getNumberOfSearch()
-
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
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
-