Interface RFile.WriterOptions

  • All Known Subinterfaces:
    RFile.WriterFSOptions
    Enclosing class:
    RFile

    public static interface RFile.WriterOptions
    This is an intermediate interface in a larger builder pattern. Supports setting optional parameters for creating a RFile and building a RFileWriter.
    Since:
    1.8.0
    • Method Detail

      • withSampler

        RFile.WriterOptions withSampler​(SamplerConfiguration samplerConf)
        An option to store sample data in the generated RFile.
        Parameters:
        samplerConf - configuration to use when generating sample data.
        Returns:
        this
        Throws:
        IllegalArgumentException - if table properties were previously specified and the table properties also specify a sampler.
      • withVisibilityCacheSize

        RFile.WriterOptions withVisibilityCacheSize​(int maxSize)
        Parameters:
        maxSize - As keys are added to an RFile the visibility field is validated. Validating the visibility field requires parsing it. In order to make validation faster, previously seen visibilities are cached. This option allows setting the maximum size of this cache.
        Returns:
        this