@GridDirectCollection(Message.class) private Collection<Message> x;
/** * @param field Field. * @param opt Case option. * @param colAnn Collection annotation. * @param mapAnn Map annotation. */ private void writeField(Field field, int opt, @Nullable GridDirectCollection colAnn, @Nullable GridDirectMap mapAnn) { assert field != null; assert opt >= 0; write.add(builder().a("case ").a(opt).a(":").toString()); indent++; GridCodegenConverter fldPreproc = field.getAnnotation(GridCodegenConverter.class); String getExp = (fldPreproc != null && !fldPreproc.get().isEmpty())? fldPreproc.get(): field.getName(); Class<?> writeType = (fldPreproc != null && !fldPreproc.type().equals(GridCodegenConverter.Default.class))? fldPreproc.type(): field.getType(); returnFalseIfWriteFailed(writeType, field.getName(), colAnn != null ? colAnn.value() : null, mapAnn != null ? mapAnn.keyType() : null, mapAnn != null ? mapAnn.valueType() : null, false, getExp); write.add(EMPTY); write.add(builder().a("writer.incrementState();").toString()); write.add(EMPTY); indent--; }
@GridDirectCollection(PartitionUpdateCountersMessage.class) private Collection<PartitionUpdateCountersMessage> updCntrs;
/** * @param field Field. * @param opt Case option. * @param colAnn Collection annotation. * @param mapAnn Map annotation. */ private void readField(Field field, int opt, @Nullable GridDirectCollection colAnn, @Nullable GridDirectMap mapAnn) { assert field != null; assert opt >= 0; read.add(builder().a("case ").a(opt).a(":").toString()); indent++; GridCodegenConverter fldPreproc = field.getAnnotation(GridCodegenConverter.class); String setExp = (fldPreproc != null && !fldPreproc.get().isEmpty())? fldPreproc.set(): ""; Class<?> writeType = (fldPreproc != null && !fldPreproc.type().equals(GridCodegenConverter.Default.class))? fldPreproc.type(): field.getType(); returnFalseIfReadFailed(writeType, field.getName(), colAnn != null ? colAnn.value() : null, mapAnn != null ? mapAnn.keyType() : null, mapAnn != null ? mapAnn.valueType() : null, setExp); read.add(EMPTY); read.add(builder().a("reader.incrementState();").toString()); read.add(EMPTY); indent--; }
@GridDirectCollection(GridCacheEntryInfo.class) private List<GridCacheEntryInfo> infos;
@GridDirectCollection(byte[].class) private Collection<byte[]> encKeys;
@GridDirectCollection(UUID.class) private Collection<UUID> uuids;
@GridDirectCollection(Message.class) private Collection<M> msgs;
@GridDirectCollection(KeyCacheObject.class) private List<KeyCacheObject> nearKeys;
@GridDirectCollection(KeyCacheObject.class) private List<KeyCacheObject> keys; @GridDirectCollection(Message.class) private List<Message> vals;
@GridDirectCollection(int.class) private List<Integer> nearValsIdxs; @GridDirectCollection(int.class) private List<Integer> nearSkipIdxs; @GridDirectCollection(CacheObject.class) private List<CacheObject> nearVals;
@GridDirectCollection(KeyCacheObject.class) private List<KeyCacheObject> keys; @GridDirectCollection(GridCacheVersion.class) private List<GridCacheVersion> vers; @GridDirectCollection(KeyCacheObject.class) private List<KeyCacheObject> nearKeys; @GridDirectCollection(GridCacheVersion.class) private List<GridCacheVersion> nearVers;
@GridDirectCollection(GridLongList.class) private List<GridLongList> assigns; @GridDirectCollection(GridLongList.class) private List<GridLongList> idealAssigns;
@GridDirectCollection(Message.class) @GridToStringInclude private List<GridH2ValueMessage> vals;
@GridDirectCollection(value = TxLock.class) private List<TxLock> txLocks = new ArrayList<>();
@GridDirectCollection(TestMessage1.class) private Collection<TestMessage1> entries = new ArrayList<>();
@GridDirectCollection(IgniteTxKey.class) private Collection<IgniteTxKey> nearEvicted; @GridDirectCollection(int.class) private Collection<Integer> invalidParts; @GridDirectCollection(GridCacheEntryInfo.class) private List<GridCacheEntryInfo> preloadEntries;
@GridDirectCollection(GridCacheVersion.class) protected Collection<GridCacheVersion> vers;
@GridDirectCollection(IgfsFileAffinityRange.class) private Collection<IgfsFileAffinityRange> fragmentRanges;
@GridDirectCollection(Message.class) @GridToStringInclude private List<GridH2RowMessage> rows;