1
- /*
2
- * Copyright 2017 ObjectBox Ltd. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
1
// automatically generated by the FlatBuffers compiler, do not modify
18
2
19
3
package io .objectbox .model ;
@@ -60,8 +44,12 @@ public final class ModelProperty extends Table {
60
44
public String nameSecondary () { int o = __offset (18 ); return o != 0 ? __string (o + bb_pos ) : null ; }
61
45
public ByteBuffer nameSecondaryAsByteBuffer () { return __vector_as_bytebuffer (18 , 1 ); }
62
46
public ByteBuffer nameSecondaryInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 18 , 1 ); }
47
+ /**
48
+ * For value-based indexes, this defines the maximum length of the value stored for indexing
49
+ */
50
+ public long maxIndexValueLength () { int o = __offset (20 ); return o != 0 ? (long )bb .getInt (o + bb_pos ) & 0xFFFFFFFFL : 0L ; }
63
51
64
- public static void startModelProperty (FlatBufferBuilder builder ) { builder .startObject (8 ); }
52
+ public static void startModelProperty (FlatBufferBuilder builder ) { builder .startObject (9 ); }
65
53
public static void addId (FlatBufferBuilder builder , int idOffset ) { builder .addStruct (0 , idOffset , 0 ); }
66
54
public static void addName (FlatBufferBuilder builder , int nameOffset ) { builder .addOffset (1 , nameOffset , 0 ); }
67
55
public static void addType (FlatBufferBuilder builder , int type ) { builder .addShort (2 , (short )type , (short )0 ); }
@@ -70,6 +58,7 @@ public final class ModelProperty extends Table {
70
58
public static void addTargetEntity (FlatBufferBuilder builder , int targetEntityOffset ) { builder .addOffset (5 , targetEntityOffset , 0 ); }
71
59
public static void addVirtualTarget (FlatBufferBuilder builder , int virtualTargetOffset ) { builder .addOffset (6 , virtualTargetOffset , 0 ); }
72
60
public static void addNameSecondary (FlatBufferBuilder builder , int nameSecondaryOffset ) { builder .addOffset (7 , nameSecondaryOffset , 0 ); }
61
+ public static void addMaxIndexValueLength (FlatBufferBuilder builder , long maxIndexValueLength ) { builder .addInt (8 , (int )maxIndexValueLength , (int )0L ); }
73
62
public static int endModelProperty (FlatBufferBuilder builder ) {
74
63
int o = builder .endObject ();
75
64
return o ;
0 commit comments