1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing, software13 * 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 and16 * limitations under the License.17 */18package org.apache.giraph.io.gora.constants;
1920import org.apache.giraph.conf.StrConfOption;
2122/**23 * Constants used all over Giraph for configuration specific for Gora24 */25// CHECKSTYLE: stop InterfaceIsTypeCheck26publicinterfaceGiraphGoraConstants {
27/** Gora data store class which provides data access. */28StrConfOption GIRAPH_GORA_DATASTORE_CLASS =
29newStrConfOption("giraph.gora.datastore.class", null,
30"Gora DataStore class to access to data from. " +
31"- required");
3233/** Gora key class to query the data store. */34StrConfOption GIRAPH_GORA_KEY_CLASS =
35newStrConfOption("giraph.gora.key.class", null,
36"Gora Key class to query the datastore. " +
37"- required");
3839/** Gora persistent class to query the data store. */40StrConfOption GIRAPH_GORA_PERSISTENT_CLASS =
41newStrConfOption("giraph.gora.persistent.class", null,
42"Gora Persistent class to read objects from Gora. " +
43"- required");
4445/** Gora start key to query the datastore. */46StrConfOption GIRAPH_GORA_START_KEY =
47newStrConfOption("giraph.gora.start.key", null,
48"Gora start key to query the datastore. ");
4950/** Gora end key to query the datastore. */51StrConfOption GIRAPH_GORA_END_KEY =
52newStrConfOption("giraph.gora.end.key", null,
53"Gora end key to query the datastore. ");
5455/** Gora data store class which provides data access. */56StrConfOption GIRAPH_GORA_KEYS_FACTORY_CLASS =
57newStrConfOption("giraph.gora.keys.factory.class", null,
58"Keys factory to convert strings into desired keys" +
59"- required");
6061// OUTPUT62/** Gora data store class which provides data access. */63StrConfOption GIRAPH_GORA_OUTPUT_DATASTORE_CLASS =
64newStrConfOption("giraph.gora.output.datastore.class", null,
65"Gora DataStore class to write data to. " +
66"- required");
6768/** Gora key class to query the data store. */69StrConfOption GIRAPH_GORA_OUTPUT_KEY_CLASS =
70newStrConfOption("giraph.gora.output.key.class", null,
71"Gora Key class to write to datastore. " +
72"- required");
7374/** Gora persistent class to query the data store. */75StrConfOption GIRAPH_GORA_OUTPUT_PERSISTENT_CLASS =
76newStrConfOption("giraph.gora.output.persistent.class", null,
77"Gora Persistent class to write to Gora. " +
78"- required");
79 }
80// CHECKSTYLE: resume InterfaceIsTypeCheck