Class CreateHdfsStorageOptions.Builder

  • Enclosing class:
    CreateHdfsStorageOptions

    public static class CreateHdfsStorageOptions.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String bucketDisplayName,
                       java.lang.String bucketType,
                       java.lang.String hmsThriftUri,
                       java.lang.Long hmsThriftPort,
                       java.lang.String coreSite,
                       java.lang.String hdfsSite,
                       java.lang.String kerberos,
                       java.lang.String catalogName,
                       java.lang.String catalogType)
        Instantiates a new builder with required properties.
        Parameters:
        bucketDisplayName - the bucketDisplayName
        bucketType - the bucketType
        hmsThriftUri - the hmsThriftUri
        hmsThriftPort - the hmsThriftPort
        coreSite - the coreSite
        hdfsSite - the hdfsSite
        kerberos - the kerberos
        catalogName - the catalogName
        catalogType - the catalogType
    • Method Detail

      • build

        public CreateHdfsStorageOptions build()
        Builds a CreateHdfsStorageOptions.
        Returns:
        the new CreateHdfsStorageOptions instance
      • bucketDisplayName

        public CreateHdfsStorageOptions.Builder bucketDisplayName​(java.lang.String bucketDisplayName)
        Set the bucketDisplayName.
        Parameters:
        bucketDisplayName - the bucketDisplayName
        Returns:
        the CreateHdfsStorageOptions builder
      • bucketType

        public CreateHdfsStorageOptions.Builder bucketType​(java.lang.String bucketType)
        Set the bucketType.
        Parameters:
        bucketType - the bucketType
        Returns:
        the CreateHdfsStorageOptions builder
      • hmsThriftUri

        public CreateHdfsStorageOptions.Builder hmsThriftUri​(java.lang.String hmsThriftUri)
        Set the hmsThriftUri.
        Parameters:
        hmsThriftUri - the hmsThriftUri
        Returns:
        the CreateHdfsStorageOptions builder
      • hmsThriftPort

        public CreateHdfsStorageOptions.Builder hmsThriftPort​(long hmsThriftPort)
        Set the hmsThriftPort.
        Parameters:
        hmsThriftPort - the hmsThriftPort
        Returns:
        the CreateHdfsStorageOptions builder
      • coreSite

        public CreateHdfsStorageOptions.Builder coreSite​(java.lang.String coreSite)
        Set the coreSite.
        Parameters:
        coreSite - the coreSite
        Returns:
        the CreateHdfsStorageOptions builder
      • hdfsSite

        public CreateHdfsStorageOptions.Builder hdfsSite​(java.lang.String hdfsSite)
        Set the hdfsSite.
        Parameters:
        hdfsSite - the hdfsSite
        Returns:
        the CreateHdfsStorageOptions builder
      • kerberos

        public CreateHdfsStorageOptions.Builder kerberos​(java.lang.String kerberos)
        Set the kerberos.
        Parameters:
        kerberos - the kerberos
        Returns:
        the CreateHdfsStorageOptions builder
      • catalogName

        public CreateHdfsStorageOptions.Builder catalogName​(java.lang.String catalogName)
        Set the catalogName.
        Parameters:
        catalogName - the catalogName
        Returns:
        the CreateHdfsStorageOptions builder
      • catalogType

        public CreateHdfsStorageOptions.Builder catalogType​(java.lang.String catalogType)
        Set the catalogType.
        Parameters:
        catalogType - the catalogType
        Returns:
        the CreateHdfsStorageOptions builder
      • krb5Config

        public CreateHdfsStorageOptions.Builder krb5Config​(java.lang.String krb5Config)
        Set the krb5Config.
        Parameters:
        krb5Config - the krb5Config
        Returns:
        the CreateHdfsStorageOptions builder
      • hiveKeytab

        public CreateHdfsStorageOptions.Builder hiveKeytab​(java.io.InputStream hiveKeytab)
        Set the hiveKeytab.
        Parameters:
        hiveKeytab - the hiveKeytab
        Returns:
        the CreateHdfsStorageOptions builder
      • hiveKeytabContentType

        public CreateHdfsStorageOptions.Builder hiveKeytabContentType​(java.lang.String hiveKeytabContentType)
        Set the hiveKeytabContentType.
        Parameters:
        hiveKeytabContentType - the hiveKeytabContentType
        Returns:
        the CreateHdfsStorageOptions builder
      • hdfsKeytab

        public CreateHdfsStorageOptions.Builder hdfsKeytab​(java.io.InputStream hdfsKeytab)
        Set the hdfsKeytab.
        Parameters:
        hdfsKeytab - the hdfsKeytab
        Returns:
        the CreateHdfsStorageOptions builder
      • hdfsKeytabContentType

        public CreateHdfsStorageOptions.Builder hdfsKeytabContentType​(java.lang.String hdfsKeytabContentType)
        Set the hdfsKeytabContentType.
        Parameters:
        hdfsKeytabContentType - the hdfsKeytabContentType
        Returns:
        the CreateHdfsStorageOptions builder
      • hiveServerPrincipal

        public CreateHdfsStorageOptions.Builder hiveServerPrincipal​(java.lang.String hiveServerPrincipal)
        Set the hiveServerPrincipal.
        Parameters:
        hiveServerPrincipal - the hiveServerPrincipal
        Returns:
        the CreateHdfsStorageOptions builder
      • hiveClientPrincipal

        public CreateHdfsStorageOptions.Builder hiveClientPrincipal​(java.lang.String hiveClientPrincipal)
        Set the hiveClientPrincipal.
        Parameters:
        hiveClientPrincipal - the hiveClientPrincipal
        Returns:
        the CreateHdfsStorageOptions builder
      • hdfsPrincipal

        public CreateHdfsStorageOptions.Builder hdfsPrincipal​(java.lang.String hdfsPrincipal)
        Set the hdfsPrincipal.
        Parameters:
        hdfsPrincipal - the hdfsPrincipal
        Returns:
        the CreateHdfsStorageOptions builder
      • description

        public CreateHdfsStorageOptions.Builder description​(java.lang.String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the CreateHdfsStorageOptions builder
      • createdOn

        public CreateHdfsStorageOptions.Builder createdOn​(java.lang.String createdOn)
        Set the createdOn.
        Parameters:
        createdOn - the createdOn
        Returns:
        the CreateHdfsStorageOptions builder
      • authInstanceId

        public CreateHdfsStorageOptions.Builder authInstanceId​(java.lang.String authInstanceId)
        Set the authInstanceId.
        Parameters:
        authInstanceId - the authInstanceId
        Returns:
        the CreateHdfsStorageOptions builder
      • hiveKeytab

        public CreateHdfsStorageOptions.Builder hiveKeytab​(java.io.File hiveKeytab)
                                                    throws java.io.FileNotFoundException
        Set the hiveKeytab.
        Parameters:
        hiveKeytab - the hiveKeytab
        Returns:
        the CreateHdfsStorageOptions builder
        Throws:
        java.io.FileNotFoundException - if the file could not be found
      • hdfsKeytab

        public CreateHdfsStorageOptions.Builder hdfsKeytab​(java.io.File hdfsKeytab)
                                                    throws java.io.FileNotFoundException
        Set the hdfsKeytab.
        Parameters:
        hdfsKeytab - the hdfsKeytab
        Returns:
        the CreateHdfsStorageOptions builder
        Throws:
        java.io.FileNotFoundException - if the file could not be found