Package | Description |
---|---|
com.indexdata.torus2 | |
com.indexdata.torus2.exception | |
com.indexdata.torus2.model | |
com.indexdata.torus2.rw | |
com.indexdata.torus2.rw.impl |
Modifier and Type | Class and Description |
---|---|
class |
RealmClient.RealmClientException |
Modifier and Type | Method and Description |
---|---|
List<Record.Layer> |
RealmClient.cacheRecords(String parentUrl,
RealmClient.RealmResponse res,
RealmReaderWriter rw,
ParentRealm pr) |
Record |
Realm.createMasterRecord(Record master) |
ParentRealm |
Realm.createParentRealm(ParentRealm pr) |
static Realm |
Realm.createRealm(RealmDefinition rd,
com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
String host,
String proto,
Date startupDate,
ExecutorService pool) |
Record |
Realm.createRealmRecord(Record initial) |
void |
Realm.deleteMasterRecord(String id) |
void |
Realm.deleteParentRealm(String prId) |
void |
Realm.deleteRealmRecord(String id) |
static void |
Realm.destroyRealm(String realmName,
com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
String host,
String proto) |
List<Record.Layer> |
RealmClient.fetchAndCacheRecords(String parentUrl,
int depth,
ParentRealm pr,
RealmReaderWriter rw,
Date lastRefreshed) |
Callable<List<Record.Layer>> |
RealmClient.fetchAndCacheRecordsAsync(String parentUrl,
int depth,
ParentRealm pr,
RealmReaderWriter rw,
Date lastRefreshed) |
ResultSet |
Realm.getAllRecords(org.z3950.zing.cql.CQLNode query,
List<Realm.LayerType> layerNames,
List<String> facetNames) |
Record |
Realm.getMasterRecord(String id) |
ParentRealm |
Realm.getParentRealm(String prId) |
List<ParentRealm> |
Realm.getParentRealms() |
Record |
Realm.getRealmRecord(String id,
List<Realm.LayerType> layerNames) |
ResultSet |
Realm.getRealmRecords(org.z3950.zing.cql.CQLNode query,
List<Realm.LayerType> layerNames,
List<String> facetNames) |
Record |
Realm.getWorldRecord(String id) |
ResultSet |
Realm.getWorldRecords(org.z3950.zing.cql.CQLNode query,
List<String> facetNames,
int recursive) |
List<RealmDefinition> |
Realm.listAllRealms() |
List<Record> |
Realm.listMasterRecords() |
static Realm |
Realm.openRealm(String realmName,
com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
String host,
String proto,
Date startupDate,
ExecutorService pool) |
Record |
Realm.updateMasterRecord(String id,
Record updateRec) |
ParentRealm |
Realm.updateParentRealm(String prId,
ParentRealm pr) |
static Realm |
Realm.updateRealm(RealmDefinition rd,
com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
String host,
String proto,
Date startupDate,
ExecutorService pool) |
Record |
Realm.updateRealmRecord(String id,
Record update) |
Modifier and Type | Class and Description |
---|---|
class |
NotFoundException
So why this class? I find it way cleaner to percolate that from the
lowest-level and then throw 404 in the container rather than checking
for nulls on each level.
|
Modifier and Type | Method and Description |
---|---|
URL |
ParentRealm.resolveUrl(String host) |
Modifier and Type | Method and Description |
---|---|
boolean |
RealmReaderWriter.create(RealmDefinition rd)
Creates a new new realm store.
|
void |
RealmReaderWriter.deleteCachedAsOriginal(String id) |
void |
RealmReaderWriter.deleteMasterRecord(String id) |
void |
RealmReaderWriter.deleteOverrideRecord(String id) |
void |
RealmReaderWriter.deleteParentRealm(String prId) |
void |
RealmReaderWriter.deleteWorldRecordsByParentId(String prId) |
void |
RealmReaderWriter.destroy()
Destroys the underlying record store;
|
static RealmReaderWriter |
RealmRWFactory.getRealmRW(String realmName,
com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
String host,
String proto) |
boolean |
RealmReaderWriter.isCachedAsParent()
In case the realm serves as parent to other realms within the same torus
installation, the following function allows for fast propagation of changes
to child realms.
|
List<RealmDefinition> |
RealmReaderWriter.listRealms()
List all realms available within the torus.
|
boolean |
RealmReaderWriter.open()
Attempts to open the realm store pointed to by this instance.
|
Record.Layer |
RealmReaderWriter.readMasterRecord(String id) |
List<Record.Layer> |
RealmReaderWriter.readMasterRecords() |
Record.Layer |
RealmReaderWriter.readOverrideRecord(String id)
Retrieve override record by id.
|
List<Record.Layer> |
RealmReaderWriter.readOverrideRecords()
Retrieve a list of override records within this realm, the query
parameter is used ONLY to early filter out false matches, that is
records that CONTAIN a given query field but the value DOES NOT match.
|
ParentRealm |
RealmReaderWriter.readParentRealm(String prId) |
List<ParentRealm> |
RealmReaderWriter.readParentRealms() |
Record.Layer |
RealmReaderWriter.readWorldRecord(String realmUniqueId)
Retrieve world (within a set of parents) record by id.
|
Pair<List<Record.Layer>,Date> |
RealmReaderWriter.readWorldRecordsForParent(String prId)
Retrieve a time-stamped list of records for a parent specified within this realm,
|
boolean |
RealmReaderWriter.update(RealmDefinition rd)
Updates realm meta-data.
|
Record.Layer |
RealmReaderWriter.updateCachedAsOriginal(Record.Layer original) |
Record.Layer |
RealmReaderWriter.writeMasterRecord(Record.Layer record) |
Record.Layer |
RealmReaderWriter.writeMasterRecord(String id,
Record.Layer record) |
Record.Layer |
RealmReaderWriter.writeOverrideRecord(Record.Layer over)
The method is to write new record to the record store.
|
Record.Layer |
RealmReaderWriter.writeOverrideRecord(String id,
Record.Layer over)
Write data to the existing record.
|
ParentRealm |
RealmReaderWriter.writeParentRealm(ParentRealm pr) |
ParentRealm |
RealmReaderWriter.writeParentRealm(String prId,
ParentRealm pr) |
List<Record.Layer> |
RealmReaderWriter.writeWorldRecordsForParent(List<Record.Layer> recs,
String prId)
Stores parent records for the given parent, updates each world record
with an ID unique to this realm (so world records can be looked up without
specifying parent)
|
List<Record.Layer> |
RealmReaderWriter.writeWorldRecordsForParent(List<Record.Layer> recs,
String prId,
Date timestamp) |
Constructor and Description |
---|
CachingReaderWriter(RealmReaderWriter rw,
String host,
String proto,
boolean honorProto,
boolean honorAuth,
boolean honorPort) |
Copyright © 2008-2015 Index Data. All Rights Reserved.