Package org.apache.drill.exec.client
Class DumpCat
java.lang.Object
org.apache.drill.exec.client.DumpCat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Used to ensure the param "batch" is a non-negative number. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doBatch
(FileInputStream input, int targetBatchNum, boolean showHeader) Batch mode: $drill-dumpcat --file=local:///tmp/drilltrace/[queryid]_[tag]_[majorid]_[minor]_[operator] --batch=123 --include-headers=true Records: 1/1 Average Record Size: 8 bytes Total Data Size: 8 bytes Schema Information name: col1, minor_type: int4, data_mode: nullable name: col2, minor_type: int4, data_mode: non-nullableprotected void
doQuery
(FileInputStream input) Querymode: $drill-dumpcat --file=local:///tmp/drilltrace/[queryid]_[tag]_[majorid]_[minor]_[operator] Batches: 135 Records: 53,214/53,214 // the first one is the selected records.static void
-
Constructor Details
-
DumpCat
public DumpCat()
-
-
Method Details
-
main
- Throws:
Exception
-
doQuery
Querymode: $drill-dumpcat --file=local:///tmp/drilltrace/[queryid]_[tag]_[majorid]_[minor]_[operator] Batches: 135 Records: 53,214/53,214 // the first one is the selected records. The second number is the total number of records. Selected Records: 53,214 Average Record Size: 74 bytes Total Data Size: 12,345 bytes Number of Empty Batches: 1 Schema changes: 1 Schema change batch indices: 0- Throws:
Exception
-
doBatch
protected void doBatch(FileInputStream input, int targetBatchNum, boolean showHeader) throws Exception Batch mode: $drill-dumpcat --file=local:///tmp/drilltrace/[queryid]_[tag]_[majorid]_[minor]_[operator] --batch=123 --include-headers=true Records: 1/1 Average Record Size: 8 bytes Total Data Size: 8 bytes Schema Information name: col1, minor_type: int4, data_mode: nullable name: col2, minor_type: int4, data_mode: non-nullable- Parameters:
targetBatchNum
-- Throws:
Exception
-