public static class FsDatasetSpi.FsVolumeReferences extends Object implements Iterable<FsVolumeSpi>, Closeable
| Constructor and Description |
|---|
FsVolumeReferences(List<S> curVolumes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FsVolumeSpi |
get(int index)
Get the volume for a given index.
|
FsVolumeReference |
getReference(int index)
Get the reference for a given index.
|
Iterator<FsVolumeSpi> |
iterator() |
int |
size()
Get the number of volumes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FsVolumeReferences(List<S> curVolumes)
public Iterator<FsVolumeSpi> iterator()
iterator in interface Iterable<FsVolumeSpi>public int size()
public FsVolumeSpi get(int index)
public FsVolumeReference getReference(int index)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.