LocalFilePreparer

Extends \PhpDruidIngest\Abstracts\BasePreparer

Class LocalFilePreparer prepares files locally on the file system.

package

PhpDruidIngest\Preparer

Methods

Clean up a prepared ingestion file.

cleanup() : mixed

Response

mixed

Remove a previously written file.

deleteFile(string $filePath) : boolean
throws

Arguments

$filePath

string

Response

boolean

Combine an array of strings into one string with a delimiter.

delimit(array $data, string $delimiter = "\n") : string
throws

If $data is not recognized as an array of strings

Arguments

$data

array

$delimiter

string

Response

string

Get the full path to the locally prepared file.

getPreparedPath() : string

Response

string

prepare

prepare( $data) 
inherited

Arguments

$data

setFilePath

setFilePath( $path) 

Arguments

$path

Write the string data out to a file.

writeFile(string $filePath, string $contents) : integer
throws

$contents

Arguments

$filePath

string

$contents

string

Response

integer

Properties

outputBaseDir

outputBaseDir : 

Type(s)

outputFilename

outputFilename : 

Type(s)