Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCSVParsingError = errors.New("Encountered an Error parsing the CSV file. Check the file and try again")
ErrCSVParsingError is an error if the CSV presents an error while being parsed.
var ErrInvalidColumnIndex = errors.New("Column index in the SQL expression is invalid")
ErrInvalidColumnIndex is an error if you provide a column index which is not valid.
var ErrJSONParsingError = errors.New("Encountered an error parsing the JSON file. Check the file and try again")
ErrJSONParsingError is an error if while parsing the JSON an error arises.
var ErrParseInvalidPathComponent = errors.New("The SQL expression contains an invalid path component")
ErrParseInvalidPathComponent is an error that occurs if there is an invalid path component.
var ErrTruncatedInput = errors.New("Object decompression failed. Check that the object is properly compressed using the format specified in the request")
ErrTruncatedInput is an error if the object is not compressed properly and an error occurs during decompression.
Functions ¶
func ProcessSize ¶
ProcessSize - this function processes size so that we can calculate bytes BytesProcessed.
func StringInSlice ¶
StringInSlice - this function finds whether a string is in a list
Types ¶
type Progress ¶
type Progress struct { XMLName xml.Name `xml:"Progress" json:"-"` BytesScanned int64 `xml:"BytesScanned"` BytesProcessed int64 `xml:"BytesProcessed"` BytesReturned int64 `xml:"BytesReturned"` }
Progress represents a struct that represents the format for XML of the progress messages
type Select ¶
type Select interface { Type() Type OutputType() Type Read() ([]byte, error) Header() []string HasHeader() bool OutputFieldDelimiter() string OutputRecordDelimiter() string UpdateBytesProcessed(int64) Expression() string UpdateBytesReturned(int64) CreateStatXML() (string, error) CreateProgressXML() (string, error) ColNameErrs(columnNames []string) error Progress() bool }
Select Interface helper methods, implementing features needed for https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html