public class DiskBoundaries
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Directories.DataDirectory> |
directories |
com.google.common.collect.ImmutableList<PartitionPosition> |
positions |
| Constructor and Description |
|---|
DiskBoundaries(Directories.DataDirectory[] directories,
int diskVersion) |
DiskBoundaries(Directories.DataDirectory[] directories,
java.util.List<PartitionPosition> positions,
long ringVersion,
int diskVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Directories.DataDirectory |
getCorrectDiskForSSTable(SSTableReader sstable) |
int |
getDiskIndex(SSTableReader sstable) |
int |
hashCode() |
void |
invalidate() |
boolean |
isOutOfDate()
check if the given disk boundaries are out of date due not being set or to having too old diskVersion/ringVersion
|
java.lang.String |
toString() |
public final java.util.List<Directories.DataDirectory> directories
public final com.google.common.collect.ImmutableList<PartitionPosition> positions
public DiskBoundaries(Directories.DataDirectory[] directories, int diskVersion)
public DiskBoundaries(Directories.DataDirectory[] directories, java.util.List<PartitionPosition> positions, long ringVersion, int diskVersion)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isOutOfDate()
public void invalidate()
public int getDiskIndex(SSTableReader sstable)
public Directories.DataDirectory getCorrectDiskForSSTable(SSTableReader sstable)
Copyright © 2018 The Apache Software Foundation