|
| 1 | +/* |
| 2 | + * DISCLAIMER |
| 3 | + * |
| 4 | + * Copyright 2016 ArangoDB GmbH, Cologne, Germany |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * you may not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + * |
| 18 | + * Copyright holder is ArangoDB GmbH, Cologne, Germany |
| 19 | + */ |
| 20 | + |
| 21 | +package com.arangodb.entity; |
| 22 | + |
| 23 | +import com.arangodb.entity.arangosearch.AnalyzerFeature; |
| 24 | +import com.arangodb.entity.arangosearch.ConsolidationPolicy; |
| 25 | +import com.arangodb.entity.arangosearch.StoredValue; |
| 26 | + |
| 27 | +import java.util.Collection; |
| 28 | +import java.util.Set; |
| 29 | + |
| 30 | +/** |
| 31 | + * TODO: add documentation |
| 32 | + * |
| 33 | + * @author Michele Rastelli |
| 34 | + * @see <a href="https://www.arangodb.com/docs/stable/http/indexes-inverted.html">API Documentation</a> |
| 35 | + * @since ArangoDB 3.10 |
| 36 | + */ |
| 37 | +public class InvertedIndexEntity implements Entity { |
| 38 | + |
| 39 | + private String id; |
| 40 | + private Boolean isNewlyCreated; |
| 41 | + private Boolean unique; |
| 42 | + private Boolean sparse; |
| 43 | + private Long version; |
| 44 | + private Integer code; |
| 45 | + private IndexType type; |
| 46 | + private String name; |
| 47 | + private Collection<InvertedIndexField> fields; |
| 48 | + private Boolean searchField; |
| 49 | + private Collection<StoredValue> storedValues; |
| 50 | + private InvertedIndexPrimarySort primarySort; |
| 51 | + private String analyzer; |
| 52 | + private Set<AnalyzerFeature> features; |
| 53 | + private Boolean includeAllFields; |
| 54 | + private Boolean trackListPositions; |
| 55 | + private Long cleanupIntervalStep; |
| 56 | + private Long commitIntervalMsec; |
| 57 | + private Long consolidationIntervalMsec; |
| 58 | + private ConsolidationPolicy consolidationPolicy; |
| 59 | + private Long writebufferIdle; |
| 60 | + private Long writebufferActive; |
| 61 | + private Long writebufferSizeMax; |
| 62 | + |
| 63 | + public String getId() { |
| 64 | + return id; |
| 65 | + } |
| 66 | + |
| 67 | + public Boolean getIsNewlyCreated() { |
| 68 | + return isNewlyCreated; |
| 69 | + } |
| 70 | + |
| 71 | + public Boolean getUnique() { |
| 72 | + return unique; |
| 73 | + } |
| 74 | + |
| 75 | + public Boolean getSparse() { |
| 76 | + return sparse; |
| 77 | + } |
| 78 | + |
| 79 | + public Long getVersion() { |
| 80 | + return version; |
| 81 | + } |
| 82 | + |
| 83 | + public Integer getCode() { |
| 84 | + return code; |
| 85 | + } |
| 86 | + |
| 87 | + public IndexType getType() { |
| 88 | + return type; |
| 89 | + } |
| 90 | + |
| 91 | + public String getName() { |
| 92 | + return name; |
| 93 | + } |
| 94 | + |
| 95 | + public Collection<InvertedIndexField> getFields() { |
| 96 | + return fields; |
| 97 | + } |
| 98 | + |
| 99 | + public Boolean getSearchField() { |
| 100 | + return searchField; |
| 101 | + } |
| 102 | + |
| 103 | + public Collection<StoredValue> getStoredValues() { |
| 104 | + return storedValues; |
| 105 | + } |
| 106 | + |
| 107 | + public InvertedIndexPrimarySort getPrimarySort() { |
| 108 | + return primarySort; |
| 109 | + } |
| 110 | + |
| 111 | + public String getAnalyzer() { |
| 112 | + return analyzer; |
| 113 | + } |
| 114 | + |
| 115 | + public Set<AnalyzerFeature> getFeatures() { |
| 116 | + return features; |
| 117 | + } |
| 118 | + |
| 119 | + public Boolean getIncludeAllFields() { |
| 120 | + return includeAllFields; |
| 121 | + } |
| 122 | + |
| 123 | + public Boolean getTrackListPositions() { |
| 124 | + return trackListPositions; |
| 125 | + } |
| 126 | + |
| 127 | + public Long getCleanupIntervalStep() { |
| 128 | + return cleanupIntervalStep; |
| 129 | + } |
| 130 | + |
| 131 | + public Long getCommitIntervalMsec() { |
| 132 | + return commitIntervalMsec; |
| 133 | + } |
| 134 | + |
| 135 | + public Long getConsolidationIntervalMsec() { |
| 136 | + return consolidationIntervalMsec; |
| 137 | + } |
| 138 | + |
| 139 | + public ConsolidationPolicy getConsolidationPolicy() { |
| 140 | + return consolidationPolicy; |
| 141 | + } |
| 142 | + |
| 143 | + public Long getWritebufferIdle() { |
| 144 | + return writebufferIdle; |
| 145 | + } |
| 146 | + |
| 147 | + public Long getWritebufferActive() { |
| 148 | + return writebufferActive; |
| 149 | + } |
| 150 | + |
| 151 | + public Long getWritebufferSizeMax() { |
| 152 | + return writebufferSizeMax; |
| 153 | + } |
| 154 | +} |
0 commit comments