Class QueryEntity
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.cache.QueryEntity
-
- All Implemented Interfaces:
Externalizable,Serializable
public class QueryEntity extends VisorDataTransferObject
Data transfer object forQueryEntity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryEntity()Create data transfer object for given cache type metadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAliases()List<QueryIndex>getGroups()StringgetKeyFieldName()List<String>getKeyFields()StringgetKeyType()Map<String,String>getQueryFields()StringgetTableName()StringgetValueFieldName()StringgetValueType()static List<QueryEntity>list(Collection<QueryEntity> qryEntities)protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Method Detail
-
list
public static List<QueryEntity> list(Collection<QueryEntity> qryEntities)
- Parameters:
qryEntities- Collection of query entities.- Returns:
- Data transfer object for query entities.
-
getKeyType
public String getKeyType()
- Returns:
- Key class used to store key in cache.
-
getValueType
public String getValueType()
- Returns:
- Value class used to store value in cache.
-
getQueryFields
public Map<String,String> getQueryFields()
- Returns:
- Fields to be queried, in addition to indexed fields.
-
getTableName
public String getTableName()
- Returns:
- Table name.
-
getKeyFieldName
public String getKeyFieldName()
- Returns:
- Key name. Can be used in field list to denote the key as a whole.
-
getValueFieldName
public String getValueFieldName()
- Returns:
- Value name. Can be used in field list to denote the entire value.
-
getGroups
public List<QueryIndex> getGroups()
- Returns:
- Fields to create group indexes for.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-