public static class FsDatasetSpi.FsVolumeReferences extends Object implements Iterable<FsVolumeSpi>, Closeable
| Constructor and Description | 
|---|
| FsDatasetSpi.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. | 
public FsDatasetSpi.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 © 2022 Apache Software Foundation. All rights reserved.