MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbIndexScanOperation.java
1 /*
2  Copyright 2010 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 /*
19  * NdbIndexScanOperation.java
20  */
21 
22 package com.mysql.ndbjtie.ndbapi;
23 
24 import java.nio.ByteBuffer;
25 
26 import com.mysql.jtie.Wrapper;
27 
29 {
30  public final native boolean getSorted() /*_const_*/;
31  public final native boolean getDescending() /*_const_*/;
32  public /*_virtual_*/ native int readTuples(int/*_LockMode_*/ lock_mode /*_= LM_Read_*/, int/*_Uint32_*/ scan_flags /*_= 0_*/, int/*_Uint32_*/ parallel /*_= 0_*/, int/*_Uint32_*/ batch /*_= 0_*/);
33  public interface /*_enum_*/ BoundType
34  {
35  int BoundLE = 0,
36  BoundLT = 1,
37  BoundGE = 2,
38  BoundGT = 3,
39  BoundEQ = 4;
40  }
41  public interface /*_enum_*/ NotSpecified
42  {
43  int MaxRangeNo = 0xfff;
44  }
45  public final native int setBound(String/*_const char *_*/ attr, int type, ByteBuffer/*_const void *_*/ value);
46  public final native int setBound(int/*_Uint32_*/ anAttrId, int type, ByteBuffer/*_const void *_*/ aValue);
47  public final native int end_of_bound(int/*_Uint32_*/ range_no /*_= 0_*/);
48  public final native int get_range_no();
49  public interface /*_struct_*/ IndexBoundConst
50  {
51  String/*_const char *_*/ low_key();
52  int/*_Uint32_*/ low_key_count();
53  boolean low_inclusive();
54  String/*_const char *_*/ high_key();
55  int/*_Uint32_*/ high_key_count();
56  boolean high_inclusive();
57  int/*_Uint32_*/ range_no();
58  }
59  static public class /*_struct_*/ IndexBound extends Wrapper implements IndexBoundConst
60  {
61  public final native String/*_const char *_*/ low_key();
62  public final native int/*_Uint32_*/ low_key_count();
63  public final native boolean low_inclusive();
64  public final native String/*_const char *_*/ high_key();
65  public final native int/*_Uint32_*/ high_key_count();
66  public final native boolean high_inclusive();
67  public final native int/*_Uint32_*/ range_no();
68  public final native void low_key(String/*_const char *_*/ p0);
69  public final native void low_key_count(int/*_Uint32_*/ p0);
70  public final native void low_inclusive(boolean p0);
71  public final native void high_key(String/*_const char *_*/ p0);
72  public final native void high_key_count(int/*_Uint32_*/ p0);
73  public final native void high_inclusive(boolean p0);
74  public final native void range_no(int/*_Uint32_*/ p0);
75  static public final native IndexBound create();
76  static public final native void delete(IndexBound p0);
77  }
78  public final native int setBound(NdbRecordConst/*_const NdbRecord *_*/ key_record, IndexBoundConst/*_const IndexBound &_*/ bound);
79 }