public class Address extends Object
Created by mwei on 1/6/17.
Modifier and Type | Field and Description |
---|---|
static long |
ABORTED
Aborted request constant.
|
static long |
COW_BACKPOINTER
Indicates that the previous entry in the stream belongs
to another stream.
|
static long |
MAX
The maximum address.
|
static long |
NEVER_READ
This is a constant use for initializing addresses before 0 is read.
|
static long |
NO_BACKPOINTER
Constant to indicate that no backpointer is available for
the given stream (due to reset).
|
static long |
NON_ADDRESS |
static long |
NON_EXIST
A non-existing address constant.
|
static long |
NOT_FOUND
Not found constant.
|
static long |
OPTIMISTIC
Optimistic constant.
|
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAddress(long addr)
Returns whether a given address is a valid address or not.
|
static boolean |
isMinAddress(long addr) |
static long |
maxNonAddress() |
static boolean |
nonAddress(long addr)
Returns whether a given address is a valid address or not.
|
public static long NON_ADDRESS
public static final long MAX
public static final long ABORTED
public static final long NOT_FOUND
public static final long OPTIMISTIC
public static final long NO_BACKPOINTER
public static final long NON_EXIST
public static final long NEVER_READ
public static final long COW_BACKPOINTER
public static boolean nonAddress(long addr)
addr
- log addresspublic static boolean isAddress(long addr)
addr
- log addresspublic static boolean isMinAddress(long addr)
public static long maxNonAddress()
Copyright © 2019 CorfuDB. All rights reserved.