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 SimpleIngestManagerbuild()build - returns a new instance of SimpleIngestManager using the information set in this builder objectStringgetAccount()getAccount - returns the name of the account this builder will inject into the IngestManagerStringgetHostName()KeyPairgetKeypair()getKeyPair - returns the key-pair we're using for authenticationStringgetPipe()getPipe - get the pipe for the ingest manager this builder will createStringgetUser()getUser - get the user who will be loading using the ingest serviceStringgetUserAgentSuffix()Get the set user agent suffix.SimpleIngestManager.BuildersetAccount(String account)setAccount - set the account for the ingest manager and return this builderSimpleIngestManager.BuildersetHostName(String hostName)SimpleIngestManager.BuildersetKeypair(KeyPair keypair)setKeypair - sets the RSA 2048 bit keypair we'll be using for token signingSimpleIngestManager.BuildersetPipe(String pipe)setTable - sets the pipe which the SimpleIngestManager will be usingSimpleIngestManager.BuildersetUser(String user)setUser - sets the user who will be loading with the ingest managerSimpleIngestManager.BuildersetUserAgentSuffix(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
-
-