public int readInt(int offset) { return excerpt.readInt(offset); }
private int size() { return excerpt.readInt(0); }
public int readInt() { return excerpt.readInt(); }
@Override public boolean onExcerpt(@NotNull Excerpt recordExcerpt) { int ptr0 = recordExcerpt.readInt(); if (ptr0 == ptr) { recordExcerpt.readFully(string1); recordExcerpt.readFully(string2); return found = true; } return false; } }
public void lookup(int hashCode, @NotNull Excerpt recordsExcerpt, @NotNull HashRecordIterator iterator) { int bucket = bucket(hashCode); excerpt.index(bucket); for (int i = 0, size = size(); i < size; i++) { excerpt.position(i * PER_ENTRY_SIZE + HEADER_SIZE); int hashCode2 = excerpt.readInt(); if (hashCode != hashCode2) continue; int record = excerpt.readInt(); recordsExcerpt.index(record); if (iterator.onExcerpt(recordsExcerpt)) break; } } }
@Override public void readMarshallable(@NotNull Excerpt in) throws IllegalStateException { // changes often. in.readUTF(clientOrderId); // cachable. instrument = in.readEnum(String.class); price = in.readDouble(); quantity = in.readInt(); side = in.readEnum(Side.class); }
int index = excerpt.readInt(); @SuppressWarnings("unchecked") E e = readElement(excerpt); int index = excerpt.readInt(); List<E> eList = readList(excerpt); underlying.addAll(index, eList); int index = excerpt.readInt(); @SuppressWarnings("unchecked") E e = readElement(excerpt); int index = excerpt.readInt(); E oldElement = underlying.remove(index); if (!notifyOff) int offset = excerpt.readInt(); int size = excerpt.readInt(); int endToRemove = Math.min(size + offset, underlying.size()); if (!notifyOff)
int count = excerpt.readInt(); for (int i = 0; i < count; i++) onExcerptPut(excerpt);
public void readFromEngine(@NotNull Excerpt in, int sourceId) { this.sourceId = in.readInt(); excerptId = in.readLong(); targetReader = sourceId == this.sourceId; writeTimestampMillis = in.readLong(); inWriteTimestamp7 = in.readLong(); inReadTimestamp7Delta = in.readUnsignedInt(); outWriteTimestamp7Delta = in.readUnsignedInt(); outReadTimestamp7Delta = in.readUnsignedInt(); if (outReadTimestamp7Delta == 0 && targetReader) in.writeUnsignedInt(in.position() - 4, outReadTimestamp7Delta = fastTime() - inWriteTimestamp7); } }
if ('T' != type) assertEquals('T', type); int n = excerpt.readInt(); if (i != n) assertEquals(i, n);
if ('T' != type) assertEquals('T', type); int n = excerpt.readInt(); if (i != n) assertEquals(i, n);
if ('T' != type) assertEquals('T', type); int n = excerpt.readInt(); if (i != n) assertEquals(i, n);
public int readInt(int offset) { return excerpt.readInt(offset); }
public int readInt() { return excerpt.readInt(); }
@Override public void nextTuple() { if (excerpt.nextIndex()) { int userId = excerpt.readInt(); int channelId = excerpt.readInt(); int duration = excerpt.readInt(); if (channelId == 0) { // poison, set countdown LATCH. StartStorm.LATCH.countDown(); } else { collector.emit(new Values(userId, channelId, duration)); } } else { // dont busy spin, not actually required here since we have the // poison object. Utils.sleep(500); } }
int count = excerpt.readInt(); for (int i = 0; i < count; i++) onExcerptPut(excerpt);