timoninmaxim commented on a change in pull request #9604:
URL: https://github.com/apache/ignite/pull/9604#discussion_r762794014
##########
File path: modules/core/src/main/java/org/apache/ignite/cache/QueryEntity.java
##########
@@ -669,6 +687,74 @@ public QueryEntity addQueryField(String fullName, String
type, String alias) {
return this;
}
+ /**
+ * Returns INLINE_SIZE for PK index.
+ *
+ * @return INLINE_SIZE for PK index.
+ */
+ public int getPrimaryKeyInlineSize() {
+ return pkInlineSize != null ? pkInlineSize : -1;
+ }
+
+ /**
+ * Sets INLINE_SIZE for PK index. Implemented at the child.
+ *
+ * @param pkInlineSize INLINE_SIZE for PK index.
+ * @return {@code this} for chaining.
+ */
+ public QueryEntity setPrimaryKeyInlineSize(int pkInlineSize) {
+ this.pkInlineSize = pkInlineSize;
+
+ return this;
+ }
+
+ /**
+ * Returns INLINE_SIZE for affinity field index.
+ *
+ * @return INLINE_SIZE for affinity field index.
+ */
+ public int getAffinityFieldInlineSize() {
+ return affFieldInlineSize != null ? affFieldInlineSize : -1;
+ }
+
+ /**
+ * Sets INLINE_SIZE for AFFINITY_KEY index. Implemented at the child.
+ *
+ * @param affFieldInlineSize INLINE_SIZE for AFFINITY_KEY index.
+ * @return {@code this} for chaining.
+ */
+ public QueryEntity setAffinityKeyInlineSize(int affFieldInlineSize) {
+ this.affFieldInlineSize = affFieldInlineSize;
+
+ return this;
+ }
+
+ /**
+ * The property is used for composite primary key.
+ *
+ * @return {@code true} if the PK index is created on fields of PK;
+ * {@code false} in case the PK index is created on the whole key
(composite binary object).
+ * {@code null} - compatible behavior (unwrap for a table created by SQL
and wrapped key for a table created by API).
+ */
+ public Boolean getUnwrapPrimaryKeyFields() {
+ return unwrapPk;
+ }
+
+ /**
+ * The property is used for composite primary key.
+ *
+ * @param unwrapPk {@code true} if the PK index is created on fields of PK;
+ * {@code false} in case the PK index is created on the whole key
(composite binary object).
Review comment:
Redundant tabs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]