|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.service.AbstractClient<T>
com.bigdata.service.LocalDataServiceClient<T>
T - The generic type of the client or service.public class LocalDataServiceClient<T>
Client for a local (embedded) DataService exposed as an
IBigdataFederation. Code written to this API is directly portable to
scale-out IBigdataFederations (but see below).
The IDataService provides full concurrency control and transaction
support, but there is no metadata index so all indices are monolithic (they
are never broken into key-range partitions).
Note: since all indices are stored within the same IDataService you
can write JOINs that enjoy certain optimizations by obtaining a lock on more
than one index at a time. Such JOINs must be written using
AbstractTask rather than IIndexProcedure since the latter
assumes access to a single index at a time. However, such code is not
portable to remote IDataServices nor to a federation that supports
key-range partitioned indices.
LocalDataServiceFederation| Nested Class Summary | |
|---|---|
static interface |
LocalDataServiceClient.Options
Options understood by the LocalDataServiceClient. |
| Field Summary |
|---|
| Fields inherited from class com.bigdata.service.AbstractClient |
|---|
log |
| Constructor Summary | |
|---|---|
LocalDataServiceClient(Properties properties)
|
|
| Method Summary | |
|---|---|
LocalDataServiceFederation<T> |
connect()
Connect to a bigdata federation. |
void |
disconnect(boolean immediateShutdown)
Note: This also shutdown the local IDataService. |
LocalDataServiceFederation<T> |
getFederation()
Return the connected federation, |
boolean |
isConnected()
Return true iff the client is connected to a federation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalDataServiceClient(Properties properties)
properties - LocalDataServiceClient.Options| Method Detail |
|---|
public boolean isConnected()
IBigdataClienttrue iff the client is connected to a federation.
public void disconnect(boolean immediateShutdown)
IDataService.
immediateShutdown - When true an immediate shutdown will be
performed as described above. Otherwise a normal shutdown will
be performed.public LocalDataServiceFederation<T> getFederation()
IBigdataClient
public LocalDataServiceFederation<T> connect()
IBigdataClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||