summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2018-02-02 13:10:30 +0100
committerGeir Storli <geirst@oath.com>2018-02-02 13:50:00 +0100
commit0c29fb32d7263487ce5d722e95e2fb89166b00c8 (patch)
treea36bb045c70c7281b30d839ae46814bba5106500 /document
parent711bf1a14c15796e7be2fa96f30d0ad816465288 (diff)
Define and use fixed bucket spaces in Java code.
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/FixedBucketSpaces.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/document/src/main/java/com/yahoo/document/FixedBucketSpaces.java b/document/src/main/java/com/yahoo/document/FixedBucketSpaces.java
new file mode 100644
index 00000000000..a225f5aa088
--- /dev/null
+++ b/document/src/main/java/com/yahoo/document/FixedBucketSpaces.java
@@ -0,0 +1,16 @@
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.document;
+
+/**
+ * Minimal repository of bucket spaces hard coded for default and global distributions.
+ *
+ * @author geirst
+ */
+public class FixedBucketSpaces {
+ public static String defaultSpace() {
+ return "default";
+ }
+ public static String globalSpace() {
+ return "global";
+ }
+}