⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constantsfortest.java

📁 分布式全文搜索工具包 可以支持集群 主要使用java開發 比較方便使用
💻 JAVA
字号:
/** * 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 org.apache.hadoop.contrib.dlucene;import junit.framework.TestCase;import org.apache.lucene.document.Field;public abstract class ConstantsForTest extends TestCase {  public static final String INDEX = "INDEX";  public static final String NAMENODE = "namenode";  public static final String[] RACKS = {"/rackA", "/rackB"};  public static final String[] MACHINES = {"ringo", "george", "paul", "john", "stu"};  public static final boolean USE_RAM_INDEX_FOR_TESTS = true;    public static final String DATANODE_ADDRESS_ONE = MACHINES[0] + ":7001";  public static final String DATANODE_ADDRESS_TWO = MACHINES[1] + ":7002";    public static final String[] NAME = {"fred flintstone", "barney rubble", "gordon brown", "tony blair", "john smith", "michael howard", "boris johnson", "john prescott", "ken livingstone"};  public static final String[] FORENAME = {"fred", "barney", "gordon", "tony", "john", "michael", "boris", "john"};  public static final String[] SURNAME = {"flintstone", "rubble", "brown", "blair", "smith", "howard", "johnson", "prescott"};  public static final String FIELD_KEY = "name";    public static final Field exampleField = new Field("name", NAME[0], Field.Store.YES,      Field.Index.TOKENIZED);    public final static String UNKNOWN_INDEX = "someUnknownIndex";    public final static String FIELD = "name";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -