Class FileQueryOptions
- java.lang.Object
-
- com.azure.storage.file.datalake.options.FileQueryOptions
-
public class FileQueryOptions extends Object
Optional parameters for File Query.
-
-
Constructor Summary
Constructors Constructor Description FileQueryOptions(String expression)
Constructs aFileQueryOptions
.FileQueryOptions(String expression, OutputStream outputStream)
Constructs aFileQueryOptions
.
-
Method Summary
-
-
-
Constructor Detail
-
FileQueryOptions
public FileQueryOptions(String expression)
Constructs aFileQueryOptions
.- Parameters:
expression
- The query expression.
-
FileQueryOptions
public FileQueryOptions(String expression, OutputStream outputStream)
Constructs aFileQueryOptions
.- Parameters:
expression
- The query expression.outputStream
- Gets the OutputStream where the downloaded data will be written.
-
-
Method Detail
-
getExpression
public String getExpression()
Gets the query expression.- Returns:
- the query expression.
-
getOutputStream
public OutputStream getOutputStream()
Gets the outputStream where the downloaded data will be written.- Returns:
- the outputStream.
-
getInputSerialization
public FileQuerySerialization getInputSerialization()
Gets the input serialization.- Returns:
- the input serialization.
-
setInputSerialization
public FileQueryOptions setInputSerialization(FileQuerySerialization inputSerialization)
Sets the input serialization.- Parameters:
inputSerialization
- The input serialization.- Returns:
- the updated FileQueryOptions object.
-
getOutputSerialization
public FileQuerySerialization getOutputSerialization()
Gets the output serialization.- Returns:
- the output serialization.
-
setOutputSerialization
public FileQueryOptions setOutputSerialization(FileQuerySerialization outputSerialization)
Sets the output serialization.- Parameters:
outputSerialization
- The output serialization.- Returns:
- the updated FileQueryOptions object.
-
getRequestConditions
public DataLakeRequestConditions getRequestConditions()
Gets the request conditions.- Returns:
- the request conditions.
-
setRequestConditions
public FileQueryOptions setRequestConditions(DataLakeRequestConditions requestConditions)
Sets the request conditions.- Parameters:
requestConditions
- The request conditions.- Returns:
- the updated FileQueryOptions object.
-
getErrorConsumer
public Consumer<FileQueryError> getErrorConsumer()
Gets the error consumer.- Returns:
- the error consumer.
-
setErrorConsumer
public FileQueryOptions setErrorConsumer(Consumer<FileQueryError> errorConsumer)
Sets the error consumer.- Parameters:
errorConsumer
- The error consumer.- Returns:
- the updated FileQueryOptions object.
-
getProgressConsumer
public Consumer<FileQueryProgress> getProgressConsumer()
Gets the progress consumer.- Returns:
- the progress consumer.
-
setProgressConsumer
public FileQueryOptions setProgressConsumer(Consumer<FileQueryProgress> progressConsumer)
Sets the progress consumer.- Parameters:
progressConsumer
- The progress consumer.- Returns:
- the updated FileQueryOptions object.
-
-