File tree Expand file tree Collapse file tree 4 files changed +44
-1
lines changed
src/main/java/com/arangodb/entity/arangosearch Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 2323
2424/**
2525 * @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
2628 */
2729public enum ArangoSearchCompression {
30+
31+ /**
32+ * (default): use LZ4 fast compression.
33+ */
2834 lz4 ("lz4" ),
35+
36+ /**
37+ * disable compression to trade space for speed.
38+ */
2939 none ("none" );
3040
3141 private final String value ;
Original file line number Diff line number Diff line change 2727/**
2828 * @author Mark Vollmary
2929 * @author Heiko Kernbach
30+ * @author Michele Rastelli
31+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
3032 */
3133public class ArangoSearchProperties {
3234
@@ -94,6 +96,11 @@ public void addPrimarySort(final PrimarySort... primarySorts) {
9496 this .primarySorts .addAll (Arrays .asList (primarySorts ));
9597 }
9698
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+ */
97104 public ArangoSearchCompression getPrimarySortCompression () {
98105 return primarySortCompression ;
99106 }
@@ -102,6 +109,12 @@ public void setPrimarySortCompression(ArangoSearchCompression primarySortCompres
102109 this .primarySortCompression = primarySortCompression ;
103110 }
104111
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+ */
105118 public Collection <StoredValue > getStoredValues () {
106119 return storedValues ;
107120 }
Original file line number Diff line number Diff line change 2727
2828/**
2929 * @author Mark Vollmary
30+ * @author Michele Rastelli
31+ * @see <a href="https://www.arangodb.com/docs/stable/http/views-arangosearch.html">API Documentation</a>
3032 */
3133public class ArangoSearchPropertiesEntity extends ViewEntity {
3234
@@ -96,12 +98,20 @@ public Collection<PrimarySort> getPrimarySort() {
9698 }
9799
98100 /**
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
100104 */
101105 public ArangoSearchCompression getPrimarySortCompression () {
102106 return properties .getPrimarySortCompression ();
103107 }
104108
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+ */
105115 public Collection <StoredValue > getStoredValues () {
106116 return properties .getStoredValues ();
107117 }
Original file line number Diff line number Diff line change 2525
2626/**
2727 * @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
2830 */
2931public class StoredValue {
3032
@@ -40,10 +42,18 @@ public StoredValue(List<String> fields) {
4042 this (fields , null );
4143 }
4244
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+ */
4350 public List <String > getFields () {
4451 return fields ;
4552 }
4653
54+ /**
55+ * @return defines the compression type used for the internal column-store
56+ */
4757 public ArangoSearchCompression getCompression () {
4858 return compression ;
4959 }
You can’t perform that action at this time.
0 commit comments