OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org.opensplice.dds.sub.SelectorImpl< TYPE > Class Template Reference
Inheritance diagram for org.opensplice.dds.sub.SelectorImpl< TYPE >:
Inheritance graph
Collaboration diagram for org.opensplice.dds.sub.SelectorImpl< TYPE >:
Collaboration graph

Public Member Functions

 SelectorImpl (OsplServiceEnvironment environment, AbstractDataReader< TYPE > reader)
 
Selector< TYPE > Content (String queryExpression, List< String > queryParameters)
 
Selector< TYPE > Content (String queryExpression, String... queryParameters)
 
Selector< TYPE > dataState (DataState state)
 
ReadCondition< TYPE > getCondition ()
 
DataState getDataState ()
 
ServiceEnvironment getEnvironment ()
 
InstanceHandle getInstance ()
 
int getMaxSamples ()
 
String getQueryExpression ()
 
List< String > getQueryParameters ()
 
Selector< TYPE > instance (InstanceHandle handle)
 
Selector< TYPE > maxSamples (int max)
 
Selector< TYPE > nextInstance (boolean retrieveNextInstance)
 
Iterator< TYPE > read ()
 
List< Sample< TYPE > > read (List< Sample< TYPE >> samples)
 
List< Sample< T > > read (List< Sample< T >> samples)
 This operation works the same as the DataReader#read(List), except that it is performed on this Selector with possible filters set. More...
 
boolean retrieveNextInstance ()
 
Iterator< TYPE > take ()
 
List< Sample< TYPE > > take (List< Sample< TYPE >> samples)
 
List< Sample< T > > take (List< Sample< T >> samples)
 This operation works the same as the DataReader#take(List), except that it is performed on this Selector with possible filters set. More...
 

Protected Member Functions

void finalize ()
 

Detailed Description

Definition at line 39 of file SelectorImpl.java.

Constructor & Destructor Documentation

◆ SelectorImpl()

Definition at line 50 of file SelectorImpl.java.

Member Function Documentation

◆ Content() [1/2]

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.Content ( String  queryExpression,
List< String >  queryParameters 
)

Definition at line 211 of file SelectorImpl.java.

◆ Content() [2/2]

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.Content ( String  queryExpression,
String...  queryParameters 
)

Definition at line 222 of file SelectorImpl.java.

◆ dataState()

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.dataState ( DataState  state)

Definition at line 158 of file SelectorImpl.java.

◆ finalize()

void org.opensplice.dds.sub.SelectorImpl< TYPE >.finalize ( )
protected

Definition at line 303 of file SelectorImpl.java.

◆ getCondition()

ReadCondition<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.getCondition ( )

Definition at line 275 of file SelectorImpl.java.

◆ getDataState()

Definition at line 253 of file SelectorImpl.java.

◆ getEnvironment()

Definition at line 118 of file SelectorImpl.java.

◆ getInstance()

Definition at line 243 of file SelectorImpl.java.

◆ getMaxSamples()

int org.opensplice.dds.sub.SelectorImpl< TYPE >.getMaxSamples ( )

Definition at line 270 of file SelectorImpl.java.

◆ getQueryExpression()

String org.opensplice.dds.sub.SelectorImpl< TYPE >.getQueryExpression ( )

Definition at line 259 of file SelectorImpl.java.

◆ getQueryParameters()

List<String> org.opensplice.dds.sub.SelectorImpl< TYPE >.getQueryParameters ( )

Definition at line 265 of file SelectorImpl.java.

◆ instance()

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.instance ( InstanceHandle  handle)

Definition at line 123 of file SelectorImpl.java.

◆ maxSamples()

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.maxSamples ( int  max)

Definition at line 231 of file SelectorImpl.java.

◆ nextInstance()

Selector<TYPE> org.opensplice.dds.sub.SelectorImpl< TYPE >.nextInstance ( boolean  retrieveNextInstance)

Definition at line 135 of file SelectorImpl.java.

◆ read() [1/3]

Definition at line 283 of file SelectorImpl.java.

◆ read() [2/3]

List<Sample<TYPE> > org.opensplice.dds.sub.SelectorImpl< TYPE >.read ( List< Sample< TYPE >>  samples)

Definition at line 288 of file SelectorImpl.java.

◆ read() [3/3]

List<Sample<T> > org.omg.dds.sub.DataReader< TYPE >.Selector< T >.read ( List< Sample< T >>  samples)
inherited

This operation works the same as the DataReader#read(List), except that it is performed on this Selector with possible filters set.

Parameters
samplesThe collection where the results of the read are stored in
Returns
A samples collection
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.AlreadyClosedExceptionThe corresponding DataWriter has been closed.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

◆ retrieveNextInstance()

boolean org.opensplice.dds.sub.SelectorImpl< TYPE >.retrieveNextInstance ( )

Definition at line 248 of file SelectorImpl.java.

◆ take() [1/3]

Definition at line 293 of file SelectorImpl.java.

◆ take() [2/3]

List<Sample<TYPE> > org.opensplice.dds.sub.SelectorImpl< TYPE >.take ( List< Sample< TYPE >>  samples)

Definition at line 298 of file SelectorImpl.java.

◆ take() [3/3]

List<Sample<T> > org.omg.dds.sub.DataReader< TYPE >.Selector< T >.take ( List< Sample< T >>  samples)
inherited

This operation works the same as the DataReader#take(List), except that it is performed on this Selector with possible filters set.

Parameters
samplesThe collection where the results of the take are stored in
Returns
A samples collection
Exceptions
org.omg.dds.core.DDSExceptionAn internal error has occurred.
org.omg.dds.core.AlreadyClosedExceptionThe corresponding DataWriter has been closed.
org.omg.dds.core.OutOfResourcesExceptionThe Data Distribution Service ran out of resources to complete this operation.

The documentation for this class was generated from the following file: