You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/07/18 09:03:17 UTC

[GitHub] [ignite-3] ygerzhedovich commented on a diff in pull request #944: IGNITE-16870 Extend Schema with ability to specify function as default value generator

ygerzhedovich commented on code in PR #944:
URL: https://github.com/apache/ignite-3/pull/944#discussion_r923117673


##########
modules/api/src/main/java/org/apache/ignite/schema/definition/DefaultValueDefinition.java:
##########
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.schema.definition;
+
+import java.util.Objects;
+
+/**
+ * Definition of value provider to use as default.
+ */
+@SuppressWarnings("PublicInnerClass")
+public class DefaultValueDefinition {
+    /**
+     * Defines value provider as functional provider.
+     *
+     * @param name Name of the function to invoke to generate the value
+     * @return Default value definition.
+     * @see DefaultValueGenerators

Review Comment:
   ```suggestion
        * @see DefaultValueGenerator
   ```



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org