Class JsonInputFormat

    • Method Detail

      • isKeepNullColumns

        public boolean isKeepNullColumns()
      • isAssumeNewlineDelimited

        public boolean isAssumeNewlineDelimited()
      • isUseJsonNodeReader

        public boolean isUseJsonNodeReader()
      • getWeightedSize

        public long getWeightedSize​(String path,
                                    long size)
        Description copied from interface: InputFormat
        Computes the weighted size of a given input object of the underyling input format type, weighted for its cost during ingestion. The weight calculated is dependent on the format type and compression type (CompressionUtils.Format) used if any. Uncompressed newline delimited json is used as baseline with scale factor 1. This means that when computing the byte weight that an uncompressed newline delimited json input object has towards ingestion, we take the file size as is, 1:1.
        Parameters:
        path - The path of the input object. Used to tell whether any compression is used.
        size - The size of the input object in bytes.
        Returns:
        The weighted size of the input object.
      • withLineSplittable

        public JsonInputFormat withLineSplittable​(boolean lineSplittable)
        Create a new JsonInputFormat object based on the given parameter sub-classes may need to override this method to create an object with correct sub-class type