Skip to content

Commit b36e0ef

Browse files
committed
javadoc upd
1 parent 1285877 commit b36e0ef

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

src/main/java/com/arangodb/entity/arangosearch/ArangoSearchCompression.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,19 @@
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
*/
2729
public 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;

src/main/java/com/arangodb/entity/arangosearch/ArangoSearchProperties.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
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
*/
3133
public 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
}

src/main/java/com/arangodb/entity/arangosearch/ArangoSearchPropertiesEntity.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
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
*/
3133
public 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
}

src/main/java/com/arangodb/entity/arangosearch/StoredValue.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
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
*/
2931
public 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
}

0 commit comments

Comments
 (0)