This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fa18c99ee Clarify PartitionStrategy read and write partition behavior 
in reference docs
1fa18c99ee is described below

commit 1fa18c99ee63b2274e49ef48b80fdbb3ac2c0aad
Author: Stephen Mallette <[email protected]>
AuthorDate: Fri Sep 11 21:35:11 2026 +0000

    Clarify PartitionStrategy read and write partition behavior in reference 
docs
    
    Document that elements written through a partitioned traversal source are
    automatically tagged with its writePartition, that a source reads only
    elements whose partitionKey value is in its readPartitions, and that 
elements
    without the partitionKey (such as the pre-existing modern vertices) are 
hidden
    from a source that restricts its read partitions. Also state that
    includeMetaProperties defaults to false.
    
    Assisted-by: Kiro:claude-opus-4.8
---
 docs/src/reference/the-traversal.asciidoc | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/src/reference/the-traversal.asciidoc 
b/docs/src/reference/the-traversal.asciidoc
index 11604bc95e..f536b490a8 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -7266,6 +7266,13 @@ gA.V()
 gB.V()
 ----
 
+Elements written through a partitioned traversal source are automatically 
tagged with that source's `writePartition`,
+which is why the vertex added through "gA" carries a `_partition` value of "a" 
and the vertex added through "gB"
+carries a value of "b". When reading, a traversal source returns only those 
elements whose `partitionKey` value is
+contained in its `readPartitions` set. Elements that do not carry the 
`partitionKey` property, such as the six
+pre-existing vertices of the modern graph, are treated as belonging to no 
readable partition and are therefore hidden
+from a source that restricts its read partitions.
+
 The following examples demonstrate the above `PartitionStrategy` definition 
for "strategyA" in other programming
 languages:
 
@@ -7291,7 +7298,8 @@ strategyA = PartitionStrategy(partitionKey="_partition", 
writePartition="a", rea
 ----
 
 Partitions may also extend to `VertexProperty` elements if the `Graph` can 
support meta-properties and if the
-`includeMetaProperties` value is set to `true` when the `PartitionStrategy` is 
built.  The `partitionKey` will be
+`includeMetaProperties` value is set to `true` when the `PartitionStrategy` is 
built. This behavior is disabled by
+default, as `includeMetaProperties` defaults to `false`.  The `partitionKey` 
will be
 stored in the meta-properties of the `VertexProperty` and blind the traversal 
to those properties.  Please note that
 the `VertexProperty` will only be hidden by way of the `Traversal` itself.  
For example, calling `Vertex.property(k)`
 bypasses the context of the `PartitionStrategy` and will thus allow all 
properties to be accessed.

Reply via email to