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
@@ -36,11 +38,14 @@ public class ArangoSearchProperties {
3638 private ConsolidationPolicy consolidationPolicy ;
3739 private final Collection <PrimarySort > primarySorts ;
3840 private final Collection <CollectionLink > links ;
41+ private ArangoSearchCompression primarySortCompression ;
42+ private final Collection <StoredValue > storedValues ;
3943
4044 public ArangoSearchProperties () {
4145 super ();
4246 links = new ArrayList <>();
4347 primarySorts = new ArrayList <>();
48+ storedValues = new ArrayList <>();
4449 }
4550
4651 public Long getCommitIntervalMsec () {
@@ -90,4 +95,32 @@ public Collection<PrimarySort> getPrimarySort() {
9095 public void addPrimarySort (final PrimarySort ... primarySorts ) {
9196 this .primarySorts .addAll (Arrays .asList (primarySorts ));
9297 }
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+ */
104+ public ArangoSearchCompression getPrimarySortCompression () {
105+ return primarySortCompression ;
106+ }
107+
108+ public void setPrimarySortCompression (ArangoSearchCompression primarySortCompression ) {
109+ this .primarySortCompression = primarySortCompression ;
110+ }
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+ */
118+ public Collection <StoredValue > getStoredValues () {
119+ return storedValues ;
120+ }
121+
122+ public void addStoredValues (final StoredValue ... storedValues ) {
123+ this .storedValues .addAll (Arrays .asList (storedValues ));
124+ }
125+
93126}
0 commit comments