|
5 | 5 | == Introduction |
6 | 6 |
|
7 | 7 | Properties contain the actual data inside a <<nodes#, node>>. |
8 | | -Properties use a key-value format. |
9 | | - |
10 | | -The key must be unique within the node, and the value must have a specific <<indexing#value_types, valueType>>, such as ``String``, or ``GeoPoint``. |
11 | | -The valueType is used to index the property correctly, and does the basic validation. |
| 8 | +Properties use a key-value format |
12 | 9 |
|
| 10 | +The key must be unique within the node, and the value must have a specific <<#value_types, valueType>>, such as ``String``, or ``GeoPoint``. |
13 | 11 |
|
14 | 12 | == Property anatomy |
15 | 13 | Examples of what a property might look like: |
@@ -40,11 +38,87 @@ person.age = 39 |
40 | 38 | person.birth-date = localDate("1975-17-10") |
41 | 39 | ---- |
42 | 40 |
|
43 | | -In the example above, the property `person` is of the ValueType `Set`. |
| 41 | +In the example above, the property `person` is of the <<#value_type, Value type >> `Set`. |
44 | 42 | Sets are special in the way that they don't hold actual values, but rather act as containers for other properties. |
45 | 43 |
|
46 | | -Properties are of a specific <<indexing#value_types, ValueType>>. |
47 | | -ValueTypes are used for validation and securing correct <<indexing#, indexing>>. |
| 44 | +[#value_types] |
| 45 | +== Value types |
| 46 | + |
| 47 | +Each property has a specific value type. These are the primitive data types in the XP storage |
| 48 | +The value type enables the data storage to handle both validation and <<indexing#,indexing>> of the property. |
| 49 | + |
| 50 | +Below is the complete list of all supported value-types. |
| 51 | + |
| 52 | +[cols="1,1,1,2"] |
| 53 | +|=== |
| 54 | +|Value Type |Example |Default indexing |Comment |
| 55 | + |
| 56 | +|String |
| 57 | +|My String |
| 58 | +|text |
| 59 | +|String of characters within UTF charset |
| 60 | + |
| 61 | +|BinaryReference |
| 62 | +|a-binary-reference |
| 63 | +|text |
| 64 | +|Handle for accessing a binary |
| 65 | + |
| 66 | +|Boolean |
| 67 | +|true |
| 68 | +|text |
| 69 | +|A value representing ``true`` or ``false`` |
| 70 | + |
| 71 | +|Double |
| 72 | +|11.5 |
| 73 | +|number, text |
| 74 | +|Double-precision 64-bit IEEE 754 floating point. |
| 75 | + |
| 76 | +|GeoPoint |
| 77 | +|59.9090442,10.7423389 |
| 78 | +|geoPoint, text |
| 79 | +|Represents a geographical point on earth, given in latitude and longitude. |
| 80 | + |
| 81 | +|Instant |
| 82 | +|2015-03-16T10:00:02Z |
| 83 | +|datetime, text |
| 84 | +|A single point on the time-line (may include subsecond up to 9 digits). |
| 85 | + |
| 86 | +|LocalTime |
| 87 | +|10:00:03 |
| 88 | +|text |
| 89 | +|A time representation without date or timezone(nor subsecond). |
| 90 | + |
| 91 | +|LocalDate |
| 92 | +|2015-03-16 |
| 93 | +|datetime, text |
| 94 | +|A date representation. Will be indexed with UTC timezone offset. |
| 95 | + |
| 96 | +|LocalDateTime |
| 97 | +|2015-03-16T10:00:02 |
| 98 | +|datetime, text |
| 99 | +|A date-time representation without timezone. Will be indexed with UTC timezone offset. |
| 100 | + |
| 101 | +|Long |
| 102 | +|1234 |
| 103 | +|number, text |
| 104 | +|64-bit two's complement integer. |
| 105 | + |
| 106 | +|Reference |
| 107 | +|0b7f7720-6ab1-4a37-8edc-731b7e4f439e |
| 108 | +|text |
| 109 | +|Holds a reference to other nodes in the same repository. |
| 110 | + |
| 111 | +|Set |
| 112 | +| |
| 113 | +|Not indexed |
| 114 | +|Holds sub properties as it's value |
| 115 | + |
| 116 | +|XML |
| 117 | +|<some>xml</some> |
| 118 | +|text |
| 119 | +|Any valid XML |
| 120 | +|=== |
| 121 | + |
48 | 122 |
|
49 | 123 | [#sysprops] |
50 | 124 | == System Properties |
|
0 commit comments