org.elasticsearch.indices.store
Class TransportNodesListShardStoreMetaData.StoreFilesMetaData
java.lang.Object
org.elasticsearch.indices.store.TransportNodesListShardStoreMetaData.StoreFilesMetaData
- All Implemented Interfaces:
- Iterable<StoreFileMetaData>, Streamable
- Enclosing class:
- TransportNodesListShardStoreMetaData
public static class TransportNodesListShardStoreMetaData.StoreFilesMetaData
- extends Object
- implements Iterable<StoreFileMetaData>, Streamable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportNodesListShardStoreMetaData.StoreFilesMetaData
public TransportNodesListShardStoreMetaData.StoreFilesMetaData(boolean allocated,
ShardId shardId,
Map<String,StoreFileMetaData> files)
allocated
public boolean allocated()
shardId
public ShardId shardId()
totalSizeInBytes
public long totalSizeInBytes()
iterator
public Iterator<StoreFileMetaData> iterator()
- Specified by:
iterator
in interface Iterable<StoreFileMetaData>
fileExists
public boolean fileExists(String name)
file
public StoreFileMetaData file(String name)
readStoreFilesMetaData
public static TransportNodesListShardStoreMetaData.StoreFilesMetaData readStoreFilesMetaData(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.