Search in sources :

Example 1 with DataStreamerEntry

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;
}
Also used : ArrayList(java.util.ArrayList) DataStreamerEntry(org.apache.ignite.internal.processors.datastreamer.DataStreamerEntry)

Aggregations

ArrayList (java.util.ArrayList)1 DataStreamerEntry (org.apache.ignite.internal.processors.datastreamer.DataStreamerEntry)1