Class DumpCat

java.lang.Object
org.apache.drill.exec.client.DumpCat

public class DumpCat extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Used to ensure the param "batch" is a non-negative number.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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-nullable
    protected void
    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
    main(String[] args)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DumpCat

      public DumpCat()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • doQuery

      protected void doQuery(FileInputStream input) throws Exception
      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