Builds or creates RecordKey objects based on a given record.
More...
Builds or creates RecordKey objects based on a given record.
- Template Parameters
-
T | The type of record to build keys off of. |
Definition at line 11 of file RecordKeyBuilder.cs.
◆ RecordKeyBuilder()
◆ build()
Build a RecordKey object based on a record.
- Parameters
-
record | The object based on which the key is to be built. |
- Returns
- The record key that helps is routing this record correctly.
Definition at line 277 of file RecordKeyBuilder.cs.
◆ buildExpression()
Build an expression to be passed to getRecords in the option.
The expression is based on the record provided, but only values of shard columns will be used, the rest will be ignored.
- Parameters
-
record | The object based on which the expression is to be built. |
- Returns
- The record key that helps is routing this record correctly.
Definition at line 403 of file RecordKeyBuilder.cs.
◆ hasKey()
Returns whether this builder builds any routing keys.
That is, if there are any routing columns in the relevant record type.
- Returns
- Bool value indicating if this builder builds keys.
Definition at line 490 of file RecordKeyBuilder.cs.
◆ hasSameKey()
Returns if other is equivalent to this builder.
- Parameters
-
other | The other key builder. |
- Returns
- Whether the other builder is the same as this one.
Definition at line 502 of file RecordKeyBuilder.cs.
The documentation for this class was generated from the following file: