@API(value=MAINTAINED) public class FormerIndex extends Object
Constructor and Description |
---|
FormerIndex(Object subspaceKey,
int addedVersion,
int removedVersion,
String formerName) |
FormerIndex(RecordMetaDataProto.FormerIndex proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getAddedVersion()
Get the version at which the index was first added.
|
String |
getFormerName()
Get the name under which the index existed, if known.
|
int |
getRemovedVersion()
Get the version at which the index was removed.
|
Object |
getSubspaceKey()
Get the subspace key formerly occupied by the index.
|
Object |
getSubspaceTupleKey()
Get a
Tuple -encodable version of the subspace key formerly occupied by
the index. |
int |
getVersion()
Deprecated.
|
int |
hashCode() |
RecordMetaDataProto.FormerIndex |
toProto() |
String |
toString() |
public FormerIndex(@Nonnull Object subspaceKey, int addedVersion, int removedVersion, @Nullable String formerName)
public FormerIndex(@Nonnull RecordMetaDataProto.FormerIndex proto)
@Nonnull public Object getSubspaceKey()
@Nonnull public Object getSubspaceTupleKey()
Tuple
-encodable version of the subspace key formerly occupied by
the index. As the subspace key is not guaranteed to be of a Tuple
-encodable type on its own, this
method is preferred over getSubspaceKey()
if one is constructing a key to read or write data
from the database.Tuple
-encodable version of index subspace key@Deprecated public int getVersion()
getRemovedVersion()
getRemovedVersion()
.public int getAddedVersion()
public int getRemovedVersion()
@Nullable public String getFormerName()
@Nonnull public RecordMetaDataProto.FormerIndex toProto()