use of org.apache.ignite.internal.GridDirectCollection in project ignite by apache.
the class MessageCodeGenerator method processField.
/**
* @param field Field.
* @param opt Case option.
*/
private void processField(Field field, int opt) {
assert field != null;
assert opt >= 0;
GridDirectCollection colAnn = field.getAnnotation(GridDirectCollection.class);
GridDirectMap mapAnn = field.getAnnotation(GridDirectMap.class);
if (colAnn == null && Collection.class.isAssignableFrom(field.getType()))
throw new IllegalStateException("@GridDirectCollection annotation is not provided for field: " + field.getName());
if (mapAnn == null && Map.class.isAssignableFrom(field.getType()))
throw new IllegalStateException("@GridDirectMap annotation is not provided for field: " + field.getName());
writeField(field, opt, colAnn, mapAnn);
readField(field, opt, colAnn, mapAnn);
}
Aggregations