blob: 70a9ea31129c961cbf4da5a33abe6dbe29f231a4 [file] [log] [blame]
/*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.server.appsearch.external.localstorage;
/**
* Icing options for AppSearch local-storage. Note, these values are not necessarily the defaults
* set in {@link com.google.android.icing.proto.IcingSearchEngineOptions} proto.
*/
public class DefaultIcingOptionsConfig implements IcingOptionsConfig {
@Override
public int getMaxTokenLength() {
return DEFAULT_MAX_TOKEN_LENGTH;
}
@Override
public int getIndexMergeSize() {
return DEFAULT_INDEX_MERGE_SIZE;
}
@Override
public boolean getDocumentStoreNamespaceIdFingerprint() {
return true;
}
@Override
public float getOptimizeRebuildIndexThreshold() {
return 0.9f;
}
@Override
public int getCompressionLevel() {
return DEFAULT_COMPRESSION_LEVEL;
}
@Override
public boolean getAllowCircularSchemaDefinitions() {
return true;
}
@Override
public boolean getUseReadOnlySearch() {
return true;
}
@Override
public boolean getUsePreMappingWithFileBackedVector() {
return true;
}
@Override
public boolean getUsePersistentHashMap() {
return true;
}
}