18 package com.mysql.clusterj.tie;
20 import java.util.List;
22 import com.mysql.clusterj.core.store.Column;
24 import com.mysql.clusterj.core.util.I18NHelper;
25 import com.mysql.clusterj.core.util.Logger;
26 import com.mysql.clusterj.core.util.LoggerFactoryService;
27 import com.mysql.clusterj.tie.DbImpl.BufferManager;
29 import com.mysql.ndbjtie.ndbapi.NdbScanOperation;
34 class ScanResultDataImpl
extends ResultDataImpl {
37 static final I18NHelper local = I18NHelper
38 .getInstance(ScanResultDataImpl.class);
41 static final Logger logger = LoggerFactoryService.getFactory()
42 .getInstance(ScanResultDataImpl.class);
48 protected final int RESULT_READY = 0;
49 protected final int SCAN_FINISHED = 1;
50 protected final int CACHE_EMPTY = 2;
53 int maximumColumnId,
int bufferSize,
int[]
offsets,
int[] lengths,
int maximumColumnLength,
54 BufferManager bufferManager) {
55 super(ndbScanOperation, storeColumns, maximumColumnId, bufferSize, offsets, lengths,
56 bufferManager,
false);
57 this.ndbScanOperation = ndbScanOperation;
61 public boolean next() {
64 boolean fetch =
false;
67 int result = ndbScanOperation.
nextResult(fetch, force);
72 ndbScanOperation.close(
true,
true);
78 Utility.throwError(result, ndbScanOperation.getNdbError());