다음을 통해 공유


FileQueryOptions Class

  • java.lang.Object
    • com.azure.storage.file.datalake.options.FileQueryOptions

public class FileQueryOptions

Optional parameters for File Query.

Constructor Summary

Constructor Description
FileQueryOptions(String expression)

Constructs a FileQueryOptions.

FileQueryOptions(String expression, OutputStream outputStream)

Constructs a FileQueryOptions.

Method Summary

Modifier and Type Method and Description
Consumer<FileQueryError> getErrorConsumer()

Gets the error consumer.

String getExpression()

Gets the query expression.

FileQuerySerialization getInputSerialization()

Gets the input serialization.

FileQuerySerialization getOutputSerialization()

Gets the output serialization.

OutputStream getOutputStream()

Gets the outputStream where the downloaded data will be written.

Consumer<FileQueryProgress> getProgressConsumer()

Gets the progress consumer.

DataLakeRequestConditions getRequestConditions()

Gets the request conditions.

FileQueryOptions setErrorConsumer(Consumer<FileQueryError> errorConsumer)

Sets the error consumer.

FileQueryOptions setInputSerialization(FileQuerySerialization inputSerialization)

Sets the input serialization.

FileQueryOptions setOutputSerialization(FileQuerySerialization outputSerialization)

Sets the output serialization.

FileQueryOptions setProgressConsumer(Consumer<FileQueryProgress> progressConsumer)

Sets the progress consumer.

FileQueryOptions setRequestConditions(DataLakeRequestConditions requestConditions)

Sets the request conditions.

Methods inherited from java.lang.Object

Constructor Details

FileQueryOptions

public FileQueryOptions(String expression)

Constructs a FileQueryOptions.

Parameters:

expression - The query expression.

FileQueryOptions

public FileQueryOptions(String expression, OutputStream outputStream)

Constructs a FileQueryOptions.

Parameters:

expression - The query expression.
outputStream - Gets the OutputStream where the downloaded data will be written.

Method Details

getErrorConsumer

public Consumer getErrorConsumer()

Gets the error consumer.

Returns:

the error consumer.

getExpression

public String getExpression()

Gets the query expression.

Returns:

the query expression.

getInputSerialization

public FileQuerySerialization getInputSerialization()

Gets the input serialization.

Returns:

the input serialization.

getOutputSerialization

public FileQuerySerialization getOutputSerialization()

Gets the output serialization.

Returns:

the output serialization.

getOutputStream

public OutputStream getOutputStream()

Gets the outputStream where the downloaded data will be written.

Returns:

the outputStream.

getProgressConsumer

public Consumer getProgressConsumer()

Gets the progress consumer.

Returns:

the progress consumer.

getRequestConditions

public DataLakeRequestConditions getRequestConditions()

Gets the request conditions.

Returns:

the request conditions.

setErrorConsumer

public FileQueryOptions setErrorConsumer(Consumer errorConsumer)

Sets the error consumer.

Parameters:

errorConsumer - The error consumer.

Returns:

the updated FileQueryOptions object.

setInputSerialization

public FileQueryOptions setInputSerialization(FileQuerySerialization inputSerialization)

Sets the input serialization.

Parameters:

inputSerialization - The input serialization.

Returns:

the updated FileQueryOptions object.

setOutputSerialization

public FileQueryOptions setOutputSerialization(FileQuerySerialization outputSerialization)

Sets the output serialization.

Parameters:

outputSerialization - The output serialization.

Returns:

the updated FileQueryOptions object.

setProgressConsumer

public FileQueryOptions setProgressConsumer(Consumer progressConsumer)

Sets the progress consumer.

Parameters:

progressConsumer - The progress consumer.

Returns:

the updated FileQueryOptions object.

setRequestConditions

public FileQueryOptions setRequestConditions(DataLakeRequestConditions requestConditions)

Sets the request conditions.

Parameters:

requestConditions - The request conditions.

Returns:

the updated FileQueryOptions object.

Applies to