Class CreateCollectionRequest
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoRequest
pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest
pt.unl.fct.di.novasys.babel.protocols.storage.requests.CreateCollectionRequest
A request issued by the application to create a collection in a given
keyspace. The request contains information about the keyspace in question as
well as the collection that is going to be created.
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoIPC.Type -
Field Summary
FieldsFields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest
EMPTY_MSG -
Constructor Summary
ConstructorsConstructorDescriptionCreateCollectionRequest(String keySpace, String collection) Creates a create collection request with the keyspace, the collection identifier and a set of optional properties for the creation of he collection.CreateCollectionRequest(String keySpace, String collection, String opID) Creates a create collection request with the keyspace, the collection identifier.CreateCollectionRequest(String keySpace, String collection, String opID, Properties properties) Creates a create collection request with the keySpace, the collection identifier and a set of optional properties for the creation of he collection.CreateCollectionRequest(String keySpace, String collection, Properties properties) Creates a create collection request with the keyspace, the collection identifier and a set of optional properties for the creation of he collection. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection identifier.Gets the properties for the creation of the collection.Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest
getKeySpace, getOpID, hasOpIDMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoRequest
getIdMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
getType
-
Field Details
-
REQUEST_ID
public static final short REQUEST_ID- See Also:
-
-
Constructor Details
-
CreateCollectionRequest
Creates a create collection request with the keyspace, the collection identifier and a set of optional properties for the creation of he collection.- Parameters:
keySpace- the keyspace of the collection.collection- the collection identifier.properties- optional properties for the creation of the collection.
-
CreateCollectionRequest
Creates a create collection request with the keyspace, the collection identifier and a set of optional properties for the creation of he collection.- Parameters:
keySpace- the keyspace of the collection.collection- the collection identifier.
-
CreateCollectionRequest
public CreateCollectionRequest(String keySpace, String collection, String opID, Properties properties) Creates a create collection request with the keySpace, the collection identifier and a set of optional properties for the creation of he collection. Additionally, a operationID is passed to identify the operation that issued this request.- Parameters:
keySpace- the keySpace of the collection.collection- the collection identifier.opID- the unique operation identifier that issued this requestproperties- optional properties for the creation of the collection.
-
CreateCollectionRequest
Creates a create collection request with the keyspace, the collection identifier. Additionally, a operationID is passed to identify the operation that issed this request.- Parameters:
keySpace- the keySpace of the collection.collection- the collection identifier.opID- the unique operation identifier that issued this request
-
-
Method Details
-
getProperties
Gets the properties for the creation of the collection. If no properties were passed in the constructor, this method returns null.- Returns:
- the properties of the collection, or null if none were passed in the constructor.
-
getCollection
Gets the collection identifier.- Returns:
- the collection identifier.
-