|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LongerShortString>
org.neo4j.kernel.impl.nioneo.store.LongerShortString
public enum LongerShortString
Supports encoding alphanumerical and SP . - + , ' : / _
(This version assumes 14bytes property block, instead of 8bytes)
| Enum Constant Summary | |
|---|---|
ALPHANUM
Alpha-numerical characters space and underscore. |
|
ALPHASYM
Alpha-numerical characters space and underscore. |
|
DATE
Binary coded decimal with punctuation. |
|
EMAIL
Lower-case characters with punctuation. |
|
EUROPEAN
The most common European characters (latin-1 but with less punctuation). |
|
LOWER
Lower-case characters with punctuation. |
|
NUMERICAL
Binary coded decimal with punctuation. |
|
UPPER
Upper-case characters with punctuation. |
|
URI
Lower-case characters, digits and punctuation and symbols. |
|
| Method Summary | |
|---|---|
static int |
calculateNumberOfBlocksUsed(int encoding,
int length)
|
static int |
calculateNumberOfBlocksUsed(long firstBlock)
|
static String |
decode(PropertyBlock block)
Decode a short string represented as a long[] |
static boolean |
encode(int keyId,
String string,
PropertyBlock target,
int payloadSize)
Encodes a short string. |
static LongerShortString |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LongerShortString[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static boolean |
writeLatin1Characters(String string,
Bits bits)
|
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LongerShortString NUMERICAL
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- 0 1 2 3 4 5 6 7 8 9 SP . - + , '
public static final LongerShortString DATE
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- 0 1 2 3 4 5 6 7 8 9 SP - : / + ,
public static final LongerShortString UPPER
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- SP A B C D E F G H I J K L M N O
1- P Q R S T U V W X Y Z _ . - : /
public static final LongerShortString LOWER
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- SP a b c d e f g h i j k l m n o
1- p q r s t u v w x y z _ . - : /
public static final LongerShortString EMAIL
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- , a b c d e f g h i j k l m n o
1- p q r s t u v w x y z _ . - + @
public static final LongerShortString URI
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- SP a b c d e f g h i j k l m n o
1- p q r s t u v w x y z
2- 0 1 2 3 4 5 6 7 8 9 _ . - : / +
3- , ' @ | ; * ? & % # ( ) $ < > =
public static final LongerShortString ALPHANUM
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- SP A B C D E F G H I J K L M N O
1- P Q R S T U V W X Y Z 0 1 2 3 4
2- _ a b c d e f g h i j k l m n o
3- p q r s t u v w x y z 5 6 7 8 9
public static final LongerShortString ALPHASYM
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- SP A B C D E F G H I J K L M N O
1- P Q R S T U V W X Y Z _ . - : /
2- ; a b c d e f g h i j k l m n o
3- p q r s t u v w x y z + , ' @ |
public static final LongerShortString EUROPEAN
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -A -B -C -D -E -F
0- À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
1- Ð Ñ Ò Ó Ô Õ Ö . Ø Ù Ú Û Ü Ý Þ ß
2- à á â ã ä å æ ç è é ê ë ì í î ï
3- ð ñ ò ó ô õ ö - ø ù ú û ü ý þ ÿ
4- SP A B C D E F G H I J K L M N O
5- P Q R S T U V W X Y Z 0 1 2 3 4
6- _ a b c d e f g h i j k l m n o
7- p q r s t u v w x y z 5 6 7 8 9
| Method Detail |
|---|
public static LongerShortString[] values()
for (LongerShortString c : LongerShortString.values()) System.out.println(c);
public static LongerShortString valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public static boolean encode(int keyId,
String string,
PropertyBlock target,
int payloadSize)
string - the string to encode.target - the property record to store the encoded string in
true if the string could be encoded as a short
string, false if it couldn't.public static String decode(PropertyBlock block)
data - the value to decode to a short string.
public static boolean writeLatin1Characters(String string,
Bits bits)
public static int calculateNumberOfBlocksUsed(long firstBlock)
public static int calculateNumberOfBlocksUsed(int encoding,
int length)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||