Package net.snowflake.ingest
Class SimpleIngestManager.Builder
- java.lang.Object
-
- net.snowflake.ingest.SimpleIngestManager.Builder
-
- Enclosing class:
- SimpleIngestManager
public static class SimpleIngestManager.Builder extends Object
This Builder allows someone to configure a SimpleIngestManager prior to instantiating the manager- Author:
- obabarinsa
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleIngestManager
build()
build - returns a new instance of SimpleIngestManager using the information set in this builder objectString
getAccount()
getAccount - returns the name of the account this builder will inject into the IngestManagerString
getHostName()
KeyPair
getKeypair()
getKeyPair - returns the key-pair we're using for authenticationString
getPipe()
getPipe - get the pipe for the ingest manager this builder will createString
getUser()
getUser - get the user who will be loading using the ingest serviceString
getUserAgentSuffix()
Get the set user agent suffix.SimpleIngestManager.Builder
setAccount(String account)
setAccount - set the account for the ingest manager and return this builderSimpleIngestManager.Builder
setHostName(String hostName)
SimpleIngestManager.Builder
setKeypair(KeyPair keypair)
setKeypair - sets the RSA 2048 bit keypair we'll be using for token signingSimpleIngestManager.Builder
setPipe(String pipe)
setTable - sets the pipe which the SimpleIngestManager will be usingSimpleIngestManager.Builder
setUser(String user)
setUser - sets the user who will be loading with the ingest managerSimpleIngestManager.Builder
setUserAgentSuffix(String userAgentSuffix)
-
-
-
Method Detail
-
getAccount
public String getAccount()
getAccount - returns the name of the account this builder will inject into the IngestManager- Returns:
- account name
-
setAccount
public SimpleIngestManager.Builder setAccount(String account)
setAccount - set the account for the ingest manager and return this builder- Parameters:
account
- the account which will be loading into this table- Returns:
- this builder object
-
getUser
public String getUser()
getUser - get the user who will be loading using the ingest service- Returns:
- the user name
-
setUser
public SimpleIngestManager.Builder setUser(String user)
setUser - sets the user who will be loading with the ingest manager- Parameters:
user
- the user who will be loading- Returns:
- the current builder with the user set
-
getPipe
public String getPipe()
getPipe - get the pipe for the ingest manager this builder will create- Returns:
- the target pipe for this ingest manager
-
setPipe
public SimpleIngestManager.Builder setPipe(String pipe)
setTable - sets the pipe which the SimpleIngestManager will be using- Parameters:
pipe
- the target pipe for the ingest manager- Returns:
- the current builder with the target pipe
-
getKeypair
public KeyPair getKeypair()
getKeyPair - returns the key-pair we're using for authentication- Returns:
- the RSA 2048 key-pair we use to sign tokens
-
setKeypair
public SimpleIngestManager.Builder setKeypair(KeyPair keypair)
setKeypair - sets the RSA 2048 bit keypair we'll be using for token signing- Parameters:
keypair
- the keypair we'll be using for auth- Returns:
- the current builder with the key set
-
getUserAgentSuffix
public String getUserAgentSuffix()
Get the set user agent suffix. (This is in additional to the default one.)It can be null or empty.
-
setUserAgentSuffix
public SimpleIngestManager.Builder setUserAgentSuffix(String userAgentSuffix)
-
getHostName
public String getHostName()
-
setHostName
public SimpleIngestManager.Builder setHostName(String hostName)
-
build
public SimpleIngestManager build()
build - returns a new instance of SimpleIngestManager using the information set in this builder object
-
-