private ResultSetBuilder(QueryOptions options, boolean isJson, GroupMaker groupMaker) { this.resultSet = new ResultSet(getResultMetadata(isJson).copy(), new ArrayList<List<ByteBuffer>>()); this.protocolVersion = options.getProtocolVersion(); this.selectors = newSelectors(options); this.groupMaker = groupMaker; this.timestamps = collectTimestamps ? new long[columns.size()] : null; this.ttls = collectTTLs ? new int[columns.size()] : null; this.isJson = isJson; // We use MIN_VALUE to indicate no timestamp and -1 for no ttl if (timestamps != null) Arrays.fill(timestamps, Long.MIN_VALUE); if (ttls != null) Arrays.fill(ttls, -1); }
private ResultSetBuilder(QueryOptions options, boolean isJson, GroupMaker groupMaker) { this.resultSet = new ResultSet(getResultMetadata(isJson).copy(), new ArrayList<List<ByteBuffer>>()); this.protocolVersion = options.getProtocolVersion(); this.selectors = newSelectors(options); this.groupMaker = groupMaker; this.timestamps = collectTimestamps ? new long[columns.size()] : null; this.ttls = collectTTLs ? new int[columns.size()] : null; this.isJson = isJson; // We use MIN_VALUE to indicate no timestamp and -1 for no ttl if (timestamps != null) Arrays.fill(timestamps, Long.MIN_VALUE); if (ttls != null) Arrays.fill(ttls, -1); }
private ResultSetBuilder(QueryOptions options, boolean isJson, GroupMaker groupMaker) { this.resultSet = new ResultSet(getResultMetadata(isJson).copy(), new ArrayList<List<ByteBuffer>>()); this.protocolVersion = options.getProtocolVersion(); this.selectors = newSelectors(options); this.groupMaker = groupMaker; this.timestamps = collectTimestamps ? new long[columns.size()] : null; this.ttls = collectTTLs ? new int[columns.size()] : null; this.isJson = isJson; // We use MIN_VALUE to indicate no timestamp and -1 for no ttl if (timestamps != null) Arrays.fill(timestamps, Long.MIN_VALUE); if (ttls != null) Arrays.fill(ttls, -1); }