Class PartitionStrategy.Builder

    • Method Detail

      • includeMetaProperties

        public PartitionStrategy.Builder includeMetaProperties​(boolean includeMetaProperties)
        Set to true if the VertexProperty instances should get assigned to partitions. This has the effect of hiding properties within a particular partition so that in order for the VertexProperty to be seen both the parent Vertex and the VertexProperty must have readable partitions defined in the strategy.

        When setting this to true (it is false by default) it is important that the Graph support the meta-properties feature. If it does not errors will ensue.

      • writePartition

        public PartitionStrategy.Builder writePartition​(String writePartition)
        Specifies the name of the partition to write when adding vertices, edges and vertex properties. This name can be any user defined value. It is only possible to write to a single partition at a time.
      • partitionKey

        public PartitionStrategy.Builder partitionKey​(String partitionKey)
        Specifies the partition key name. This is the property key that contains the partition value. It may a good choice to index on this key in certain cases (in graphs that support such things). This value must be specified for the PartitionStrategy to be constructed properly.
      • readPartitions

        public PartitionStrategy.Builder readPartitions​(List<String> readPartitions)
        Specifies the partition of the graph to read from. It is possible to assign multiple partition keys so as to read from multiple partitions at the same time.
      • readPartitions

        public PartitionStrategy.Builder readPartitions​(String... readPartitions)
        Specifies the partition of the graph to read from. It is possible to assign multiple partition keys so as to read from multiple partitions at the same time.