java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<FsVolumeSpi>public static class FsDatasetSpi.FsVolumeReferences extends java.lang.Object implements java.lang.Iterable<FsVolumeSpi>, java.io.Closeable
| Constructor | Description |
|---|---|
FsVolumeReferences(java.util.List<S> curVolumes) |
| Modifier and Type | Method | 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.
|
java.util.Iterator<FsVolumeSpi> |
iterator() |
|
int |
size() |
Get the number of volumes.
|
public java.util.Iterator<FsVolumeSpi> iterator()
iterator in interface java.lang.Iterable<FsVolumeSpi>public int size()
public FsVolumeSpi get(int index)
public FsVolumeReference getReference(int index)
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.