Interface CopyInParser (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface CopyInParserCommon interface for parsers that implement one or more of the PostgreSQL COPY formats.
Static Methods
create(SessionState sessionState, CopyStatement.Format format, CSVFormat csvFormat, PipedInputStream inputStream, boolean hasHeader)
publicstaticCopyInParsercreate(SessionStatesessionState,CopyStatement.Formatformat,CSVFormatcsvFormat,PipedInputStreaminputStream,booleanhasHeader)Creates a CopyInParser for the given format. The csvFormat argument is only required for non-binary formats.
Name
Description
csvFormat
org.apache.commons.csv.CSVFormat Type
Description
Exceptions
Type
Description
Methods
close()
publicabstractvoidclose()Closes this parser and releases any resources associated with it.
Type
Description
iterator()
publicabstractIterator<CopyRecord>iterator()Returns an iterator of COPY records.
Type
Description