Package com.gpudb.filesystem.ingest
Class IngestOptions
java.lang.Object
com.gpudb.filesystem.ingest.IngestOptions
Nested Class Summary
Nested ClassesMethod Summary
Modifier and TypeMethodDescriptionlongReturns the value of ‘bad_record_table_limit’Returns the value of ‘bad_record_table_name’Gets the ‘column_format’ as a Map representing a JSONGets the set of column names to loadGets the set of column names to skipGets a Map of default column formatsGetter forErrorHandlingModeGetter method for all the options setbooleanbooleanvoidvoidvoidvoidsetBadRecordTableLimit(long badRecordTableLimit) Sets the value of ‘bad_record_table_limit’setBadRecordTableName(String badRecordTableName) Sets the value of ‘bad_record_table_name’.setColumnFormats(Map<String, org.apache.commons.lang3.tuple.Pair<String, String>> columnFormats) Sets the column formatssetColumnsToLoad(Set<String> columnsToLoad) Sets the set of column names to loadsetColumnsToSkip(Set<String> columnsToSkip) Sets the column names to skipsetDefaultColumnFormats(Map<String, String> defaultColumnFormats) Sets the default column formatssetErrorHandlingMode(ErrorHandlingMode errorHandlingMode) setFileType(FileType fileType) setPrimaryKeys(List<String> primaryKeys) setShardKeys(List<String> shardKeys) setTextCommentString(String textCommentString) setTextDelimiter(String textDelimiter) setTextEscapeCharacter(String textEscapeCharacter) setTextHasHeader(boolean textHasHeader) setTextHeaderPropertyDelimiter(String textHeaderPropertyDelimiter) setTextNullString(String textNullString) setTextQuoteCharacter(String textQuoteCharacter) Setter method for text quote charactersetTruncateTable(boolean truncateTable) setTypeInferenceMode(TypeInferenceMode typeInferenceMode)
Method Details
setBadRecordTableName
Sets the value of ‘bad_record_table_name’.getBadRecordTableLimit
public long getBadRecordTableLimit()Returns the value of ‘bad_record_table_limit’Returns:- a long valueSee Also:setBadRecordTableLimit
Sets the value of ‘bad_record_table_limit’setColumnFormats
public IngestOptions setColumnFormats(Map<String, org.apache.commons.lang3.tuple.Pair<String, String>> columnFormats) throws com.fasterxml.jackson.core.JsonProcessingException Sets the column formatsParameters:columnFormats- - A Map of String to a Pair of StringsReturns:- anIngestOptionsobjectThrows:com.fasterxml.jackson.core.JsonProcessingException- - when conversion to JSON failsSee Also:setColumnsToLoad
public IngestOptions setColumnsToLoad(Set<String> columnsToLoad) throws GPUdbException, com.fasterxml.jackson.core.JsonProcessingException Sets the set of column names to loadParameters:columnsToLoad- - a Set of column namesReturns:anIngestOptionsobjectThrows:GPUdbException- - when names of columns to skip and load overlapcom.fasterxml.jackson.core.JsonProcessingException- - when JSON conversion failsSee Also:setColumnsToSkip
Sets the column names to skipsetDefaultColumnFormats
public IngestOptions setDefaultColumnFormats(Map<String, String> defaultColumnFormats) throws com.fasterxml.jackson.core.JsonProcessingException Sets the default column formatsParameters:defaultColumnFormats- - a Map of string to StringReturns:anIngestOptionsobjectThrows:com.fasterxml.jackson.core.JsonProcessingExceptionSee Also:setErrorHandlingMode
setFileType
setPrimaryKeys
setShardKeys
setTextCommentString
setTextDelimiter
setTextEscapeCharacter
isTextHasHeader
public boolean isTextHasHeader()setTextHasHeader
setTextHeaderPropertyDelimiter
setTextNullString
setTextQuoteCharacter
Setter method for text quote characterParameters:textQuoteCharacter- - a String value for the text quote character to be setReturns:- the current instance ofIngestOptionsisTruncateTable
public boolean isTruncateTable()setTruncateTable
getTypeInferenceMode
setTypeInferenceMode