File tree 4 files changed +44
-1
lines changed
src/main/java/com/arangodb/entity/arangosearch
4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 23
23
24
24
/**
25
25
* @author Michele Rastelli
26
+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
27
+ * @since ArangoDB 3.7
26
28
*/
27
29
public enum ArangoSearchCompression {
30
+
31
+ /**
32
+ * (default): use LZ4 fast compression.
33
+ */
28
34
lz4 ("lz4" ),
35
+
36
+ /**
37
+ * disable compression to trade space for speed.
38
+ */
29
39
none ("none" );
30
40
31
41
private final String value ;
Original file line number Diff line number Diff line change 27
27
/**
28
28
* @author Mark Vollmary
29
29
* @author Heiko Kernbach
30
+ * @author Michele Rastelli
31
+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
30
32
*/
31
33
public class ArangoSearchProperties {
32
34
@@ -94,6 +96,11 @@ public void addPrimarySort(final PrimarySort... primarySorts) {
94
96
this .primarySorts .addAll (Arrays .asList (primarySorts ));
95
97
}
96
98
99
+ /**
100
+ * @return Defines how to compress the primary sort data (introduced in v3.7.0). ArangoDB v3.5 and v3.6 always
101
+ * compress the index using LZ4.
102
+ * @since ArangoDB 3.7
103
+ */
97
104
public ArangoSearchCompression getPrimarySortCompression () {
98
105
return primarySortCompression ;
99
106
}
@@ -102,6 +109,12 @@ public void setPrimarySortCompression(ArangoSearchCompression primarySortCompres
102
109
this .primarySortCompression = primarySortCompression ;
103
110
}
104
111
112
+ /**
113
+ * @return An array of objects to describe which document attributes to store in the View index. It can then cover
114
+ * search queries, which means the data can be taken from the index directly and accessing the storage engine can be
115
+ * avoided.
116
+ * @since ArangoDB 3.7
117
+ */
105
118
public Collection <StoredValue > getStoredValues () {
106
119
return storedValues ;
107
120
}
Original file line number Diff line number Diff line change 27
27
28
28
/**
29
29
* @author Mark Vollmary
30
+ * @author Michele Rastelli
31
+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
30
32
*/
31
33
public class ArangoSearchPropertiesEntity extends ViewEntity {
32
34
@@ -96,12 +98,20 @@ public Collection<PrimarySort> getPrimarySort() {
96
98
}
97
99
98
100
/**
99
- * @return how to compress the primary sort data
101
+ * @return Defines how to compress the primary sort data (introduced in v3.7.0). ArangoDB v3.5 and v3.6 always
102
+ * compress the index using LZ4.
103
+ * @since ArangoDB 3.7
100
104
*/
101
105
public ArangoSearchCompression getPrimarySortCompression () {
102
106
return properties .getPrimarySortCompression ();
103
107
}
104
108
109
+ /**
110
+ * @return An array of objects to describe which document attributes to store in the View index. It can then cover
111
+ * search queries, which means the data can be taken from the index directly and accessing the storage engine can be
112
+ * avoided.
113
+ * @since ArangoDB 3.7
114
+ */
105
115
public Collection <StoredValue > getStoredValues () {
106
116
return properties .getStoredValues ();
107
117
}
Original file line number Diff line number Diff line change 25
25
26
26
/**
27
27
* @author Michele Rastelli
28
+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
29
+ * @since ArangoDB 3.7
28
30
*/
29
31
public class StoredValue {
30
32
@@ -40,10 +42,18 @@ public StoredValue(List<String> fields) {
40
42
this (fields , null );
41
43
}
42
44
45
+ /**
46
+ * @return an array of strings with one or more document attribute paths. The specified attributes are placed into a
47
+ * single column of the index. A column with all fields that are involved in common search queries is ideal for
48
+ * performance. The column should not include too many unneeded fields however.
49
+ */
43
50
public List <String > getFields () {
44
51
return fields ;
45
52
}
46
53
54
+ /**
55
+ * @return defines the compression type used for the internal column-store
56
+ */
47
57
public ArangoSearchCompression getCompression () {
48
58
return compression ;
49
59
}
You can’t perform that action at this time.
0 commit comments