IBasicDB, ICollection, SerializableMonsterCLI, MonsterLoadCLIpublic class MonsterClient extends Object implements ICollection, IBasicDB, Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
collection |
|
protected String |
connection |
|
protected String |
database |
|
protected OutputType |
output |
|
protected String |
password |
|
protected int |
port |
|
boolean |
quiet |
|
protected String |
username |
| Constructor | Description |
|---|---|
MonsterClient() |
|
MonsterClient(String r) |
|
MonsterClient(String connection,
int port,
long connectionid) |
|
MonsterClient(String connection,
int port,
String username,
String password) |
protected String database
protected String collection
protected String password
protected String username
protected String connection
protected int port
public boolean quiet
protected OutputType output
public MonsterClient(String connection, int port, String username, String password) throws NoDatabaseException
NoDatabaseExceptionpublic MonsterClient(String connection, int port, long connectionid) throws NoDatabaseException
NoDatabaseExceptionpublic MonsterClient()
public MonsterClient(String r)
public MonsterClient clone()
public long getInternalConnectionID()
public void interrupt(long connectionID)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic void connect(String connection, int port, long connectionid)
public void disconnect()
throws Exception
disconnect in interface IBasicDBdisconnect in interface ICollectionExceptionpublic static Document toDocument(ByteBuffer bb)
public IBasicDB useDatabase(String db)
useDatabase in interface IBasicDBpublic IBasicDB useCollection(String coll)
useCollection in interface IBasicDBpublic DBCursor listDatabaseNames()
listDatabaseNames in interface IBasicDBpublic DBCursor listCollectionNames()
listCollectionNames in interface IBasicDBpublic String createDatabase(String db)
createDatabase in interface IBasicDBpublic String createCollection(String coll)
createCollection in interface IBasicDBpublic Document describeCollection(String coll)
describeCollection in interface IBasicDBpublic String createCollection(String coll, String hashKey)
createCollection in interface IBasicDBpublic String createCollection(String coll, Document ranges)
createCollection in interface IBasicDBpublic String createFuzzyCollection(String name, String definitionFile, String ruleSetPath)
createFuzzyCollection in interface IBasicDBpublic String createFuzzyCollection(String name, String definitionFile, String ruleSetPath, String hashKey)
createFuzzyCollection in interface IBasicDBpublic String createFuzzyCollection(String name, String definitionFile, String ruleSetPath, Document ranges)
createFuzzyCollection in interface IBasicDBpublic String createCollection(Document collDoc)
createCollection in interface IBasicDBpublic DBCursor pushDocInner(String database, String collection, String command, Document send) throws Exception
Exceptionpublic Stream<Document> pushDocInnerStream(String database, String collection, String command, Document send)
public DBCursor pushDoc(String database, String collection, String command, Object... docs)
public DBCursor pushDoc(String database, String collection, String command, String nextParts, Object... docs)
public Stream<Document> pushDocStream(String database, String collection, String command, String nextParts, Object... docs)
public void createIndex(Document fields, Document options)
createIndex in interface ICollectionpublic void createIndex(Document fields)
createIndex in interface IBasicDBcreateIndex in interface ICollectionpublic void createUniqueIndex(Document fields)
createUniqueIndex in interface ICollectionpublic DBCursor find(Document query)
find in interface IBasicDBfind in interface ICollectionpublic DBCursor find()
find in interface IBasicDBfind in interface ICollectionpublic DBCursor findFuzzy(Document filter)
findFuzzy in interface ICollectionpublic DBCursor findFuzzy(String textQuery)
findFuzzy in interface ICollectionpublic Document save(Document doc)
save in interface ICollectionpublic Document insertOne(Document newDocument)
insertOne in interface IBasicDBinsertOne in interface ICollectionpublic long count(Document query)
count in interface IBasicDBcount in interface ICollectionpublic Document findOneAndReplace(Document filter, Document replacement, Document options)
findOneAndReplace in interface IBasicDBfindOneAndReplace in interface ICollectionpublic Document findOneAndReplace(Document filter, Document replacement)
findOneAndReplace in interface IBasicDBfindOneAndReplace in interface ICollectionpublic Document findOneAndUpdate(Document filter, Document amendments)
findOneAndUpdate in interface ICollectionpublic Document findOneAndUpdate(Document filter, Document amendments, Document options)
findOneAndUpdate in interface IBasicDBfindOneAndUpdate in interface ICollectionpublic Document updateOne(Document filter, Document amendments)
updateOne in interface IBasicDBupdateOne in interface ICollectionpublic Document updateOne(Document filter, Document amendments, Document options)
updateOne in interface IBasicDBupdateOne in interface ICollectionpublic int updateMany(Document filter, Document amendments, Document options)
updateMany in interface ICollectionpublic int updateMany(Document filter, Document amendments)
updateMany in interface ICollectionpublic int insertMany(List<Document> listRecs)
insertMany in interface IBasicDBinsertMany in interface ICollectionpublic Document findOneAndDelete(Document filter)
findOneAndDelete in interface IBasicDBfindOneAndDelete in interface ICollectionpublic Document deleteOne(Document filter)
deleteOne in interface IBasicDBdeleteOne in interface ICollectionpublic int deleteMany(Document filter)
deleteMany in interface IBasicDBdeleteMany in interface ICollectionpublic Stream<Document> aggregate(List<Document> in, List<Document> pipeline)
aggregate in interface ICollectionpublic Document aggregateMetadata(List<Document> in, List<Document> pipeline)
aggregateMetadata in interface ICollectionpublic Document aggregateMetadata(List<Document> pipeline)
aggregateMetadata in interface ICollectionpublic Stream<Document> aggregate(List<Document> pipeline, Document options)
aggregate in interface ICollectionpublic Stream<Document> aggregate(List<Document> pipeline)
aggregate in interface IBasicDBaggregate in interface ICollectionpublic DBCursor listIndexes()
listIndexes in interface IBasicDBlistIndexes in interface ICollectionpublic void dropCollection()
dropCollection in interface IBasicDBpublic void dropDatabase()
dropDatabase in interface IBasicDBpublic String currentDatabase()
currentDatabase in interface IBasicDBpublic void rebuildIndex(String name)
rebuildIndex in interface ICollectionpublic void dropIndex(String name)
dropIndex in interface ICollectionpublic int saveMany(List<Document> records)
saveMany in interface ICollectionpublic boolean isConnected()
public void setExplaining(boolean explain)
setExplaining in interface ICollectionpublic void addTrigger(String name)
addTrigger in interface ICollectionpublic DBCursor find(Document query, Document explain)
find in interface ICollectionpublic DBCursor executeCommand(String command, User user, Session session)
executeCommand in interface ICollectionpublic void drop()
drop in interface ICollectionpublic void shutdown()
public <TResult> Iterable<TResult> distinct(String fieldName, Class<TResult> resultClass)
distinct in interface IBasicDBdistinct in interface ICollectionpublic Document getDocument(Object pointer)
getDocument in interface ICollectionpublic Document getIndexPrefixSubMap(String indexName, String key, boolean b)
getIndexPrefixSubMap in interface ICollectionpublic Document keyCount(String indexName)
keyCount in interface ICollectionpublic Document conceptCount(String indexName)
conceptCount in interface ICollectionpublic Document getStandardised(String indexName, String id)
getStandardised in interface ICollectionpublic boolean isRemoteView()
public MonsterClient setRemoteView(boolean remoteView)
public int getNodeNum()
getNodeNum in interface IBasicDBpublic void saveTable(Document def)
saveTable in interface ICollectionpublic void setAutoMatch(boolean def)
setAutoMatch in interface ICollectionpublic Document getTable(String def)
getTable in interface ICollectionpublic void deleteTable(String name)
deleteTable in interface ICollectionpublic void saveConceptGroup(Document def)
saveConceptGroup in interface ICollectionpublic void deleteConceptGroup(String name)
deleteConceptGroup in interface ICollectionpublic void saveConcept(Document def)
saveConcept in interface ICollectionpublic void deleteConcept(String purposeName, String purposeColumn)
deleteConcept in interface ICollectionpublic void saveConceptMapping(Document def)
saveConceptMapping in interface ICollectionpublic void deleteConceptMapping(Document def)
deleteConceptMapping in interface ICollectionpublic void saveQualityRule(Document def)
saveQualityRule in interface IBasicDBpublic DBCursor findQualityRules(Document def)
findQualityRules in interface IBasicDBpublic void saveMatchRule(Document def)
saveMatchRule in interface ICollectionpublic void saveMatchRules(List<Document> defs)
saveMatchRules in interface ICollectionpublic void deleteMatchRule(long order)
deleteMatchRule in interface ICollectionpublic void saveFuzzyIndex(Document def)
saveFuzzyIndex in interface ICollectionpublic void deleteFuzzyIndex(String name)
deleteFuzzyIndex in interface ICollectionpublic void removeFuzzy()
removeFuzzy in interface ICollectionpublic void setRuleSetPath(String path)
setRuleSetPath in interface IBasicDBpublic void saveRuleSet(String path)
saveRuleSet in interface IBasicDBpublic void setRuleSet(com.entitystream.identiza.wordlist.RuleSetMap map)
setRuleSet in interface IBasicDBpublic Document getDefinition()
getDefinition in interface IBasicDBgetDefinition in interface ICollectionpublic void updateDefinition(Document def)
updateDefinition in interface IBasicDBupdateDefinition in interface ICollectionpublic void updateDelta(Document def)
updateDelta in interface ICollectionpublic DBCursor findRelationships(Document filter)
findRelationships in interface IBasicDBfindRelationships in interface ICollectionpublic DBCursor findTasks(Document filter)
findTasks in interface IBasicDBfindTasks in interface ICollectionpublic void resolveTask(Document document)
resolveTask in interface IBasicDBresolveTask in interface ICollectionpublic Document saveRelationship(Document relationship)
saveRelationship in interface IBasicDBsaveRelationship in interface ICollectionpublic DBCursor aggregateTasks(ArrayList<Document> andlist)
aggregateTasks in interface IBasicDBaggregateTasks in interface ICollectionpublic Document updateTask(String id, Document doc)
updateTask in interface IBasicDBupdateTask in interface ICollectionpublic <TResult> Iterable<TResult> distinctRelationship(String fieldName, Class<TResult> resultClass)
distinctRelationship in interface IBasicDBdistinctRelationship in interface ICollectionpublic Document updateRelationship(Document document, Document setUpdate, Document options)
updateRelationship in interface IBasicDBupdateRelationship in interface ICollectionpublic DBCursor peekQueue()
peekQueue in interface ICollectionpublic void deleteTasks(Document document)
deleteTasks in interface IBasicDBdeleteTasks in interface ICollectionpublic void deleteRelationships(Document document)
deleteRelationships in interface IBasicDBdeleteRelationships in interface ICollectionpublic void setScriptCode(String code)
setScriptCode in interface IBasicDBcode - public void setScriptPath(String path)
setScriptPath in interface IBasicDBpublic OutputType getOutputType()
public void setOutputType(OutputType o)
public Stream<Document> findStream(Document query)
findStream in interface ICollectionpublic Map<Integer,ICollection> getReplicaConnections()
getReplicaConnections in interface ICollectionpublic Stream<Document> getNodes()
getNodes in interface ICollectionpublic Stream<Document> match(Document asDocument, Stream<Document> in, Document options)
match in interface ICollectionpublic Stream<Document> analyse(Document asDocument, Stream<Document> in, Document options)
analyse in interface ICollectionpublic Stream<Document> limit(long long1, Stream<Document> in, Document options)
limit in interface ICollectionpublic Stream<Document> lookup(Document asDocument, Stream<Document> in, Document options)
lookup in interface ICollectionpublic Stream<Document> join(Document asDocument, Stream<Document> in, Document options)
join in interface ICollectionpublic Stream<Document> minus(Document asDocument, Stream<Document> in, Document options)
minus in interface ICollectionpublic Stream<Document> skip(long long1, Stream<Document> in, Document options)
skip in interface ICollectionpublic Stream<Document> group(Document asDocument, Stream<Document> in, Document options)
group in interface ICollectionpublic Stream<Document> out(String string, Stream<Document> in, Document options)
out in interface ICollectionpublic Stream<Document> sort(Document asDocument, Stream<Document> in, Document options)
sort in interface ICollectionpublic Stream<Document> bucket(Document asDocument, Stream<Document> in, Document options)
bucket in interface ICollectionpublic Stream<Document> fuzzySearch(String string, Stream<Document> in, Document options)
fuzzySearch in interface ICollectionpublic Stream<Document> fuzzyMatch(Document asDocument, Stream<Document> in, Document options)
fuzzyMatch in interface ICollectionpublic Stream<Document> unwind(Document asDocument, Stream<Document> in, Document options)
unwind in interface ICollectionpublic Stream<Document> spinOut(Document asDocument, Stream<Document> in, Document options)
spinOut in interface ICollectionpublic Stream<Document> getRelated(Document asDocument, Stream<Document> in, Document options)
getRelated in interface ICollectionpublic Stream<Document> rematch(Document asDocument, Stream<Document> in, Document options)
rematch in interface ICollectionpublic Stream<Document> classifierBuild(Document asDocument, Stream<Document> in, Document options)
classifierBuild in interface ICollectionpublic Stream<Document> classifierPredict(Document asDocument, Stream<Document> in, Document options)
classifierPredict in interface ICollectionpublic Stream<Document> arrf(Document asDocument, Stream<Document> in, Document options)
arrf in interface ICollectionpublic Stream<Document> classifierTree(Document asDocument, Stream<Document> in, Document options)
classifierTree in interface ICollectionpublic Stream<Document> coerce(Document asDocument, Stream<Document> in, Document options)
coerce in interface ICollectionpublic Stream<Document> compare(Document asDocument, Stream<Document> in, Document options)
compare in interface ICollectionpublic Stream<Document> count(Document asDocument, Stream<Document> in, Document options)
count in interface ICollectionpublic Stream<Document> first(Document asDocument, Stream<Document> in, Document options)
first in interface ICollectionpublic Stream<Document> last(Document asDocument, Stream<Document> in, Document options)
last in interface ICollectionpublic Stream<Document> between(Document asDocument, Stream<Document> in, Document options)
between in interface ICollectionpublic Stream<Document> cluster(Document asDocument, Stream<Document> in, Document options)
cluster in interface ICollectionpublic Stream<Document> project(Document asDocument, Stream<Document> in, Document options)
project in interface ICollectionpublic Stream<Document> evaluate(Document asDocument, Stream<Document> in, Document options)
evaluate in interface ICollectionpublic Map<Document,List<Document>> split(List<Document> list, Stream<Document> in, Document options)
split in interface ICollectionpublic Database getDatabase()
getDatabase in interface ICollectionpublic String getTrigger()
getTrigger in interface ICollectionpublic Document fuzzyMatch(Document matchNode, List<com.entitystream.identiza.entity.resolve.metadata.IIndex> matchIndexes)
fuzzyMatch in interface ICollectionpublic void connect(String value)
value - public String getAddress()
public DBCursor traverseTop(Document from, String relType)
traverseTop in interface ICollectionpublic Stream<Document> writeRel(Document options, Stream<Document> in, Document goptions)
writeRel in interface ICollectionpublic Stream<Document> script(Document scriptStatements, Stream<Document> in, Document stageoptions)
script in interface ICollectionpublic DBCursor getMatchTypes()
getMatchTypes in interface ICollectionpublic void saveFuzzyIndexes(List<Document> def)
saveFuzzyIndexes in interface ICollectionpublic DBCursor getFlows()
getFlows in interface ICollectionpublic DBCursor getBooks()
getBooks in interface ICollectionpublic DBCursor getFlow(String name)
getFlow in interface ICollectionpublic Stream<Document> validate(String type, Stream<Document> in, Document goptions)
validate in interface ICollectionpublic Stream<Document> task(Document options, Stream<Document> in, Document globalOptions)
task in interface ICollectionpublic Document saveTask(Document task)
saveTask in interface ICollectionpublic Stream<Document> getDeltas()
getDeltas in interface ICollectionCopyright © 2020. All rights reserved.