@Override public long getRowCount() { long count = sequence.getRowCount(); if (count < skip) return -1; return count == skip ? 0 : count - skip; }
@Override public long getRowCount() { long count = sequence.getRowCount(); if (count < 0L) return -1; return count < maxRows ? count : maxRows; }
@Override public long getRowCount() { long count = sequence.getRowCount(); if (count < 0L) return -1; return count < maxRows ? count : maxRows; }
@Override public final long getSize() { return sequence.getRowCount(); } }
@Override public long getRowCount() { return delegate.getRowCount(); }
@Override public long getRowCount() { long count = sequence.getRowCount(); if (count < skip) return -1; return count == skip ? 0 : count - skip; }
@Override public final long getSize() { return sequence.getRowCount(); } }
@Override public long getRowCount() { return original.getRowCount(); }
@Override public long getRowCount() { return rows.getRowCount(); }
@Override public long getRowCount() { return second.getRowCount(); }
@Override public long getRowCount() { return first.getRowCount(); }
@Override public long getRowCount() { return first.getRowCount(); }
@Override public long getRowCount() { return rows.getRowCount(); }
@Override public long getRowCount() { return delegate.getRowCount(); }
@Override public long getRowCount() { return original.getRowCount(); }
@Override public long getRowCount() { return second.getRowCount(); }
@Override public long getRowCount() { initialize(); return dependentQuery.getRowCount(); }
@Override public long getRowCount() { initialize(); return dependentQuery.getRowCount(); }
@SuppressWarnings( "unchecked" ) public CountableSequence( String workspaceName, NodeSequence original, BufferManager bufferMgr, CachedNodeSupplier nodeCache, boolean useHeap ) { this.original = original; this.workspaceName = workspaceName; this.width = original.width(); assert !original.isEmpty(); assert original.getRowCount() == -1; assert original.width() != 0; // Create the row factory ... this.rowFactory = BufferedRows.serializer(nodeCache, width); // Create the buffer into which we'll place the rows with null keys ... Serializer<BufferedRow> rowSerializer = (Serializer<BufferedRow>)BufferedRows.serializer(nodeCache, width); buffer = bufferMgr.createQueueBuffer(rowSerializer).useHeap(useHeap).make(); }
@SuppressWarnings( "unchecked" ) public CountableSequence( String workspaceName, NodeSequence original, BufferManager bufferMgr, CachedNodeSupplier nodeCache, boolean useHeap ) { this.original = original; this.workspaceName = workspaceName; this.width = original.width(); assert !original.isEmpty(); assert original.getRowCount() == -1; assert original.width() != 0; // Create the row factory ... this.rowFactory = BufferedRows.serializer(nodeCache, width); // Create the buffer into which we'll place the rows with null keys ... Serializer<BufferedRow> rowSerializer = (Serializer<BufferedRow>)BufferedRows.serializer(nodeCache, width); buffer = bufferMgr.createQueueBuffer(rowSerializer).useHeap(useHeap).make(); }