/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 edu.indiana.soic.ts.utils; public class Constants { public static final String STOCK_TABLE_NAME = "Stock2004_2014Table"; public static final String STOCK_TABLE_CF = "Stock2004_2014CF"; public static final String STOCK_DATES_TABLE = "StockDatesTable"; public static final String STOCK_DATES_CF = "StockDatesCF"; public static final String REGRESSION_TABLE_NAME = "RegressionTable"; public static final String REGRESSION_TABLE_CF = "RegressionTableCF"; public static final String REGRESSION_TABLE_QUALIFIER = "RegressionTableQualifier"; public static final String ID_COLUMN = "id"; public static final String DATE_COLUMN = "date"; public static final String SYMBOL_COLUMN = "symbol"; public static final String PRICE_COLUMN = "price"; public static final String CAP_COLUMN = "cap"; public static final byte[] STOCK_TABLE_NAME_BYTES = STOCK_TABLE_NAME.getBytes(); public static final byte[] STOCK_TABLE_CF_BYTES = STOCK_TABLE_CF.getBytes(); public static final byte[] STOCK_DATES_TABLE_BYTES = STOCK_DATES_TABLE.getBytes(); public static final byte[] STOCK_DATES_CF_BYTES = STOCK_DATES_CF.getBytes(); public static final byte[] ID_COLUMN_BYTES = ID_COLUMN.getBytes(); public static final byte[] DATE_COLUMN_BYTES = DATE_COLUMN.getBytes(); public static final byte[] SYMBOL_COLUMN_BYTES = SYMBOL_COLUMN.getBytes(); public static final byte[] PRICE_COLUMN_BYTES = PRICE_COLUMN.getBytes(); public static final byte[] CAP_COLUMN_BYTES = CAP_COLUMN.getBytes(); public static final String HDFS_INPUT_PATH = "hdfs://156.56.179.122:9000/input"; public static final String HDFS_OUTPUT_PATH = "hdfs://156.56.179.122:9000/output/"; public static final String HDFS_HOME_PATH = "hdfs://156.56.179.122:9000/"; public class Job { public static final String START_DATE = "start_date"; public static final String END_DATE = "end_date"; public static final String NO_OF_DAYS = "no_of_days"; } public class Distance { public static final String FUNCTION = "distance.func"; public static final String TYPE = "distance.type"; } }