akkapur commented on a change in pull request #1888:
URL: https://github.com/apache/drill/pull/1888#discussion_r419025233



##########
File path: 
contrib/storage-druid/src/main/java/org/apache/drill/exec/store/druid/DruidScanner.java
##########
@@ -0,0 +1,67 @@
+/*
+ * 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.drill.exec.store.druid;
+
+
+import org.apache.drill.exec.store.druid.rest.DruidQueryClient;
+import org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList;
+
+import java.util.List;
+
+public class DruidScanner {
+
+  final DruidQueryClient client;
+  final String dataSource;
+  int batchSizeBytes;
+  long limit;
+  List<String> projectedColumnNames;
+  long scanRequestTimeout;
+
+  public DruidScanner(DruidQueryClient client, String dataSource) {
+
+    this.client = client;
+    this.dataSource = dataSource;
+    this.batchSizeBytes = 1048576;
+    this.limit = 9223372036854775807L;
+    this.projectedColumnNames = null;
+  }
+
+  public DruidScanner setProjectedColumnNames(List<String> columnNames) {
+    if(columnNames != null) {
+      this.projectedColumnNames = ImmutableList.copyOf(columnNames);
+    } else {
+      this.projectedColumnNames = null;
+    }
+
+    return this;
+  }
+
+  public DruidScanner batchSizeBytes(int batchSizeBytes) {
+    this.batchSizeBytes = batchSizeBytes;
+    return this;
+  }
+
+  public DruidScanner limit(long limit) {
+    this.limit = limit;
+    return this;
+  }
+
+  public void GetDruidScannerIterator() {
+
+  }

Review comment:
       I was going to implement [Druid Scan 
Query](https://druid.apache.org/docs/latest/querying/scan-query.html), but may 
be i will do it in another PR, deleting this file for the time being.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to