Class Inspector


  • public class Inspector
    extends java.lang.Object
    Inspector reads HDFS files.
    Author:
    J.Hrivnac
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.logging.log4j.Logger log
      Logging .
    • Constructor Summary

      Constructors 
      Constructor Description
      Inspector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String inspect​(java.lang.String action, java.lang.String fn, int min, int max)
      Read/search HDFS files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static org.apache.logging.log4j.Logger log
        Logging .
    • Method Detail

      • inspect

        public java.lang.String inspect​(java.lang.String action,
                                        java.lang.String fn,
                                        int min,
                                        int max)
                                 throws java.lang.Exception
        Read/search HDFS files.
        Parameters:
        action - The type of file or reauired action: count, time, map, mapkey, mapkeylimits, seq, csv, txt.
        fn - The file or directory (for MapFiles.
        min - The first row to show (negative gives 0).
        max - The last row to show (0 or negative gives maximum value).
        Throws:
        java.lang.Exception