public class BinaryDataRequest extends java.lang.Object implements DataRequest
SplusDataRequest
object and is used to pass an array
of 0 or more input arguments to the server together with the desired result serialization type.Constructor and Description |
---|
BinaryDataRequest()
Constructs an empty object.
|
BinaryDataRequest(BinaryArgument... arguments)
Constructs an object by passing a list of binary arguments.
|
BinaryDataRequest(SerializationType resultSerializationType,
BinaryArgument... arguments)
Constructs an object by passing both the result serialization type and a list of
arguments.
|
BinaryDataRequest(SerializationType resultSerializationType,
java.lang.String[] variablesToReturn,
BinaryArgument... arguments)
Constructs an object by passing both the result serialization type, a list of variables to return, and a list of
arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BinaryArgument argument)
Adds an argument to the list.
|
BinaryArgument |
getArgument(int index)
Retrieves the binary argument at the position of the specified index.
|
int |
getArgumentCount()
Retrieves the number of arguments.
|
java.util.List<BinaryArgument> |
getArguments()
Retrieves the list of binary arguments.
|
SerializationType |
getResultSerializationType()
Retrieves the serialization type specified for the data results in the
BinaryDataRequest object.
|
java.lang.String[] |
getVariablesToReturn()
Returns the list of the variables that need to be returned to the client as a result of request execution.
|
public BinaryDataRequest(BinaryArgument... arguments)
arguments
- The list of arguments.public BinaryDataRequest(SerializationType resultSerializationType, BinaryArgument... arguments)
resultSerializationType
- The type of serialization of the result object.variablesToReturn
- list of variables to returnarguments
- The list of arguments.java.lang.IllegalArgumentException
- if the serialization type is not specified.public BinaryDataRequest(SerializationType resultSerializationType, java.lang.String[] variablesToReturn, BinaryArgument... arguments)
resultSerializationType
- The type of serialization of the result object.variablesToReturn
- list of variables to returnarguments
- The list of arguments.java.lang.IllegalArgumentException
- if the serialization type is not specified.public BinaryDataRequest()
public void add(BinaryArgument argument)
argument
- The argument to add.public int getArgumentCount()
getArgumentCount
in interface DataRequest
public SerializationType getResultSerializationType()
getResultSerializationType
in interface DataRequest
getSerializationType
public java.util.List<BinaryArgument> getArguments()
getArgument
public BinaryArgument getArgument(int index)
getArgument
in interface DataRequest
index
- The position of the argument.getArguments
public java.lang.String[] getVariablesToReturn()
DataRequest
getVariablesToReturn
in interface DataRequest