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.
|
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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.