use of com.hazelcast.internal.iteration.IterationPointer in project hazelcast by hazelcast.
the class AbstractCursor method writeData.
@Override
public void writeData(ObjectDataOutput out) throws IOException {
out.writeInt(pointers.length);
for (IterationPointer pointer : pointers) {
out.writeInt(pointer.getIndex());
out.writeInt(pointer.getSize());
}
out.writeInt(objects.size());
for (T entry : objects) {
writeElement(out, entry);
}
}
use of com.hazelcast.internal.iteration.IterationPointer in project hazelcast by hazelcast.
the class MapFetchWithQueryOperation method readInternal.
@Override
protected void readInternal(ObjectDataInput in) throws IOException {
super.readInternal(in);
fetchSize = in.readInt();
int pointersCount = in.readInt();
pointers = new IterationPointer[pointersCount];
for (int i = 0; i < pointersCount; i++) {
pointers[i] = new IterationPointer(in.readInt(), in.readInt());
}
query = in.readObject();
}
use of com.hazelcast.internal.iteration.IterationPointer in project hazelcast by hazelcast.
the class MapFetchKeysOperation method readInternal.
@Override
protected void readInternal(ObjectDataInput in) throws IOException {
super.readInternal(in);
fetchSize = in.readInt();
int pointersCount = in.readInt();
pointers = new IterationPointer[pointersCount];
for (int i = 0; i < pointersCount; i++) {
pointers[i] = new IterationPointer(in.readInt(), in.readInt());
}
}
use of com.hazelcast.internal.iteration.IterationPointer in project hazelcast by hazelcast.
the class ResultSegment method readData.
@Override
public void readData(ObjectDataInput in) throws IOException {
result = in.readObject();
int pointersCount = in.readInt();
pointers = new IterationPointer[pointersCount];
for (int i = 0; i < pointersCount; i++) {
pointers[i] = new IterationPointer(in.readInt(), in.readInt());
}
}
use of com.hazelcast.internal.iteration.IterationPointer in project hazelcast by hazelcast.
the class StorageImpl method fetchEntries.
@Override
public MapEntriesWithCursor fetchEntries(IterationPointer[] pointers, int size) {
List<Map.Entry<Data, R>> entries = new ArrayList<>(size);
IterationPointer[] newPointers = records.fetchEntries(pointers, size, entries);
List<Map.Entry<Data, Data>> entriesData = new ArrayList<>(entries.size());
for (Map.Entry<Data, R> entry : entries) {
R record = entry.getValue();
Data dataValue = serializationService.toData(record.getValue());
entriesData.add(new AbstractMap.SimpleEntry<>(entry.getKey(), dataValue));
}
return new MapEntriesWithCursor(entriesData, newPointers);
}
Aggregations