use of org.apache.ignite.internal.processors.datastreamer.DataStreamerEntry in project ignite by apache.
the class ClientDataStreamerReader method read.
/**
* Reads an entry.
*
* @param reader Data reader.
* @return Streamer entry.
*/
public static Collection<DataStreamerEntry> read(BinaryReaderExImpl reader) {
int entriesCnt = reader.readInt();
if (entriesCnt == 0)
return null;
Collection<DataStreamerEntry> entries = new ArrayList<>(entriesCnt);
for (int i = 0; i < entriesCnt; i++) {
entries.add(new DataStreamerEntry(readCacheObject(reader, true), readCacheObject(reader, false)));
}
return entries;
}
Aggregations