|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Query
Method Summary | ||
---|---|---|
void |
close()
Closes the files that associated with the query object |
|
java.util.List<java.lang.Integer> |
getAllEntityInstanceIds()
Returns all the Entity Instances Id |
|
java.util.List<EntityInstance> |
getAllEntityInstances()
Returns all the EntitiyInstances in the concept-net |
|
java.util.List<java.lang.Short> |
getAllEntityTypeIds()
Returns all entity type ids |
|
java.util.List<java.lang.Integer> |
getAllInstanceIds()
Returns all the Entity and Relation Instances Id |
|
java.util.List<java.lang.Integer> |
getAllRelationInstanceIds()
Returns all the Relation Instances Id |
|
java.util.List<RelationInstance> |
getAllRelationInstances()
Returns all the RelationInstances in the concept-net |
|
java.util.List<java.lang.Short> |
getAllRelationTypeIds()
Returns all relation type ids |
|
java.util.List<java.lang.Short> |
getAllTypeIds()
Returns all type ids |
|
java.util.List<EntityInstance> |
getEntityInstances(java.lang.Short typeId)
Returns all the entity instances of specified Type |
|
java.util.List<EntityInstance> |
getEntityInstances(java.lang.String typeName)
Returns all the entity instances of specified Type |
|
Instance |
getInstance(int instanceId)
Returns the instance for the specified instance id |
|
java.util.List<java.lang.Integer> |
getInstanceIds(short typeId)
Returns the instance ids for the specified Type id |
|
java.util.List<java.lang.Integer> |
getInstanceIds(java.lang.String typeName)
Returns the instance ids for the specified Type name |
|
|
getInstanceIds(java.lang.String typeName,
java.lang.String attributeName,
K value)
Returns the existing Instance ids from
the concept-nets.The instance id is retrieved based on the type with the specified attribute name and its value. |
|
InstanceMetaItem |
getInstanceMetaItem(int instanceId)
Returns the instance meta item of the specified instance id |
|
java.util.List<Instance> |
getInstances(java.util.List<java.lang.Integer> instanceIds)
Returns the instances for the specified instance id |
|
java.util.List<Instance> |
getInstances(java.lang.Short typeId)
Returns all the instances for the specified Type |
|
java.util.List<Instance> |
getInstances(java.lang.String typeName)
Returns all the instances for the specified Type |
|
|
getInstances(java.lang.String typeName,
java.lang.String attributeName,
K value)
Returns the existing Instance from
the concept-nets.The instance is retrieved based on the type with the specified attribute name and its value. |
|
int |
getLeftEntityId(int relationInstanceId)
Returns the left associated entity id of the given relation id |
|
java.util.List<java.lang.Integer> |
getRelatedInstanceIds(int instanceId)
Returns the instance ids based on the relation association of the specified instance |
|
java.util.List<java.lang.Integer> |
getRelatedInstanceIds(int instanceId,
java.lang.String relationTypeName)
Returns the related Instance ids for the specified entity instance id and filtered by relation type name |
|
java.util.List<java.lang.Integer> |
getRelationIds(int instanceId)
Returns the associated relations Ids of an entity instance id |
|
java.util.List<java.lang.Integer> |
getRelationIds(int instanceId,
java.lang.String relationTypeName)
Returns the associated relations Ids of an entity instance id and filtered by relation type name |
|
java.util.List<RelationInstance> |
getRelationInstances(java.lang.Short typeId)
Returns all the relation instances of specified Type |
|
java.util.List<RelationInstance> |
getRelationInstances(java.lang.String typeName)
Returns all the relation instances of specified Type |
|
int |
getRightEntityId(int relationInstanceId)
Returns the right associated entity id of the given relation id |
|
Type |
getType(java.lang.String typeName)
Returns Type for the specified type name |
|
short |
getTypeId(int instanceId)
Returns the type id of the specified instance |
|
short |
getTypeId(java.lang.String typeName)
Returns the type id of the specified type name |
|
java.lang.String |
getTypeName(short typeId)
Returns the type name for the specified type id |
Method Detail |
---|
void close() throws java.io.IOException
java.io.IOException
- if file operation failsjava.util.List<java.lang.Integer> getAllEntityInstanceIds()
java.util.List<EntityInstance> getAllEntityInstances()
EntityInstance
java.util.List<java.lang.Short> getAllEntityTypeIds()
java.util.List<java.lang.Integer> getAllInstanceIds()
java.util.List<java.lang.Integer> getAllRelationInstanceIds()
java.util.List<RelationInstance> getAllRelationInstances()
RelationInstance
java.util.List<java.lang.Short> getAllRelationTypeIds()
java.util.List<java.lang.Short> getAllTypeIds()
java.util.List<EntityInstance> getEntityInstances(java.lang.Short typeId)
typeId
- type id
EntityInstance
java.util.List<EntityInstance> getEntityInstances(java.lang.String typeName)
typeName
- type name
EntityInstance
Instance getInstance(int instanceId)
instanceId
- instance id
java.util.List<java.lang.Integer> getInstanceIds(short typeId)
typeId
- type id
java.util.List<java.lang.Integer> getInstanceIds(java.lang.String typeName)
typeName
- type name
<K extends java.lang.Comparable<K>> java.util.List<java.lang.Integer> getInstanceIds(java.lang.String typeName, java.lang.String attributeName, K value)
Instance
ids from
the concept-nets.NULL
, if Instance
does not exists.
typeName
- type nameattributeName
- instance's attribute namevalue
- the attribute value
InstanceMetaItem getInstanceMetaItem(int instanceId)
instanceId
- instance id
InstanceMetaItem
java.util.List<Instance> getInstances(java.util.List<java.lang.Integer> instanceIds)
instanceIds
- list of instance ids
java.util.List<Instance> getInstances(java.lang.Short typeId)
typeId
- type id
Instance
java.util.List<Instance> getInstances(java.lang.String typeName)
typeName
- type name
Instance
<K extends java.lang.Comparable<K>> java.util.List<Instance> getInstances(java.lang.String typeName, java.lang.String attributeName, K value)
Instance
from
the concept-nets.NULL
, if Instance
does not exists.
typeName
- type nameattributeName
- instance's attribute namevalue
- the attribute value
Instance
listint getLeftEntityId(int relationInstanceId)
relationInstanceId
- relation instance id
java.util.List<java.lang.Integer> getRelatedInstanceIds(int instanceId)
instanceId
- entity instance id
java.util.List<java.lang.Integer> getRelatedInstanceIds(int instanceId, java.lang.String relationTypeName)
instanceId
- entity instance id whose relations are to be fetchedrelationTypeName
- relation type name to filter the instance's relations
java.util.List<java.lang.Integer> getRelationIds(int instanceId)
instanceId
- entity instance id whose relations are to be fetched
java.util.List<java.lang.Integer> getRelationIds(int instanceId, java.lang.String relationTypeName)
instanceId
- entity instance id whose relations are to be fetchedrelationTypeName
- relation type name to filter the instance's relations
java.util.List<RelationInstance> getRelationInstances(java.lang.Short typeId)
typeId
- type id
RelationInstance
java.util.List<RelationInstance> getRelationInstances(java.lang.String typeName)
typeName
- type name
RelationInstance
int getRightEntityId(int relationInstanceId)
relationInstanceId
- relation instance id
Type getType(java.lang.String typeName)
Type
short getTypeId(int instanceId)
instanceId
- instance id
short getTypeId(java.lang.String typeName)
typeName
- type name
java.lang.String getTypeName(short typeId)
typeId
- Type id
Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |