hsyuan commented on a change in pull request #1591: [CALCITE-3510] Implement  
Redis adapter
URL: https://github.com/apache/calcite/pull/1591#discussion_r353970688
 
 

 ##########
 File path: 
redis/src/main/java/org/apache/calcite/adapter/redis/RedisDataType.java
 ##########
 @@ -0,0 +1,91 @@
+/*
+ * 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.calcite.adapter.redis;
+
+/**
+ * All available data type for Redis.
+ */
+public enum RedisDataType {
+
+  /**
+   * Strings are the most basic kind of Redis value. Redis Strings are binary 
safe,
+   * this means that a Redis string can contain any kind of data, for instance 
a JPEG image
+   * or a serialized Ruby object.
+   * A String value can be at max 512 Megabytes in length.
+   */
+  STRING("string"),
+
+  /**
+   * Redis Hashes are maps between string fields and string values.
+   */
+  HASH("hash"),
+
+  /**
+   * Redis Lists are simply lists of strings, sorted by insertion order.
+   */
+  LIST("list"),
+
+  /**
+   * Redis Sets are an unordered collection of Strings.
+   */
+  SET("set"),
+
+  /**
+   * Redis Sorted Sets are, similarly to Redis Sets, non repeating collections 
of Strings.
+   * The difference is that every member of a Sorted Set is associated with 
score,
+   * that is used in order to take the sorted set ordered,
+   * from the smallest to the greatest score.
+   * While members are unique, scores may be repeated.
+   */
+  SORTED_SET("zset"),
+
+  /**
+   * HyperLogLog is a probabilistic data structure used in order to count 
unique things.
+   */
+  HYPER_LOG_LOG(""),
 
 Review comment:
   Did you leave it empty string on purpose?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to