public final class PageKey extends Object
Constructor and Description |
---|
PageKey(String key)
Creates a new instance from a raw string, which is expected to contain 3 parts, each representing a piece of information
|
PageKey(String parentId,
String offset,
long blockSize) |
Modifier and Type | Method and Description |
---|---|
long |
getBlockSize()
Returns the size of the block
|
Integer |
getOffsetInt()
Returns the integer representation of the offset, if the offset is convertible to an integer.
|
String |
getOffsetString()
Returns the offset of the block, which semantically represents a pointer to the start of the block.
|
String |
getParentId()
Returns the id of the document which owns the block and effectively the list of children,
|
String |
toString() |
public PageKey(String key)
key
- a non-null
stringIllegalArgumentException
- if the string is not correctly formed.public long getBlockSize()
public String getOffsetString()
non-null
Stringpublic Integer getOffsetInt()
null
is returned.public String getParentId()
non-null
StringCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.