Package com.gpudb.filesystem.ingest
Class IngestOptions
java.lang.Object
com.gpudb.filesystem.ingest.IngestOptions
Method 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
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:setTextQuoteCharacter
Setter method for text quote characterParameters:textQuoteCharacter- - a String value for the text quote character to be setReturns:- the current instance ofIngestOptions