public class BookmarkField extends StringField implements java.lang.Cloneable
Message
consisting of the bookmark.
This is the AMPS Bookmark for the Message.Modifier and Type | Field and Description |
---|---|
protected java.util.zip.CRC32 |
c |
static int |
MAX_BOOKMARK_LENGTH |
static int |
MAX_TIMESTAMP_LENGTH |
static int |
MIN_TIMESTAMP_LENGTH |
static char |
SEPARATOR_CHAR
The character used to separate components of a bookmark, and to
separate bookmarks from each other in a list.
|
LATIN1, LATIN1_ZERO
Modifier | Constructor and Description |
---|---|
|
BookmarkField() |
protected |
BookmarkField(byte[] buffer,
int position,
int length) |
Modifier and Type | Method and Description |
---|---|
BookmarkField |
clone()
Provides a way to duplicate this object and retain its specific type (and hashcode() implementation).
|
BookmarkField |
copy()
Constructs a new Field and sets its value to a deep copy of this instance.
|
boolean |
equals(java.lang.Object object_)
Default implementation for
Object.equals(java.lang.Object) for a Field. |
protected int |
getConversionBufInitialSize()
Overrides the base classes' initial default size for the byte and
char conversion buffers used by this instance.
|
long |
getPublisherId()
Gets the publisher id for this bookmark.
|
long |
getSequenceNumber()
Gets the sequence number for this bookmark.
|
int |
hashCode()
Default implementation of
Object.hashCode() for a Field. |
boolean |
isRange()
Indicates whether this bookmark value appears to be a range,
using only a simple check for brackets or parentheses.
|
boolean |
isTimestamp()
Indicates whether this bookmark value appears to be a timestamp.
|
getValue, getValue, getValue, setValue, setValue, setValue
public static final char SEPARATOR_CHAR
public static final int MAX_BOOKMARK_LENGTH
public static final int MAX_TIMESTAMP_LENGTH
public static final int MIN_TIMESTAMP_LENGTH
protected final java.util.zip.CRC32 c
protected BookmarkField(byte[] buffer, int position, int length)
public BookmarkField()
protected int getConversionBufInitialSize()
getConversionBufInitialSize
in class StringField
public boolean isTimestamp()
public boolean isRange()
public long getPublisherId()
public long getSequenceNumber()
public int hashCode()
Field
Object.hashCode()
for a Field.public BookmarkField clone()
clone
in class java.lang.Object
public BookmarkField copy()
Field
public boolean equals(java.lang.Object object_)
Field
Object.equals(java.lang.Object)
for a Field. For two Fields to be considered equal,
their values must have the same length and all bytes in the value must be equal.