/* * Copyright 2010 Bizosys Technologies Limited * * Licensed to the Bizosys Technologies Limited (Bizosys) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The Bizosys 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 com.bizosys.hsearch.schema; /** * Schema Constants * @author karan * */ public class IOConstants { /** * ALL TABLES */ public static final String TABLE_DICTIONARY = "dictionary"; public static final String TABLE_IDMAP = "idmap"; public static final String TABLE_PREVIEW = "preview"; public static final String TABLE_CONTENT = "content"; public static final String TABLE_CONFIG = "config"; /** * COLUMN - SEARCH : Read this IO Section During Search */ public static final String SEARCH = "S"; public static final byte[] SEARCH_BYTES = SEARCH.getBytes(); public static final String ACL = "a"; public static final byte[] ACL_BYTES = ACL.getBytes(); public static final byte[] ACL_HEADER = "a".getBytes(); public static final char ACL_HEADER_0 = 'a'; public static final byte[] ACL_DETAIL = "b".getBytes(); public static final char ACL_DETAIL_0 = 'b'; public static final String META = "m"; public static final byte[] META_BYTES = META.getBytes(); public static final byte[] META_HEADER = "m".getBytes(); public static final char META_HEADER_0 = 'm'; public static final byte[] META_DETAIL = "n".getBytes(); public static final char META_DETAIL_0 = 'n'; /** * COLUMN - TEASER : Read this Section During Search Page Display */ public static final String TEASER = "T"; public static final byte[] TEASER_BYTES = TEASER.getBytes(); public static final byte[] TEASER_HEADER = "t".getBytes(); public static final char TEASER_HEADER_0 = 't'; public static final byte[] TEASER_DETAIL = "u".getBytes(); public static final char TEASER_DETAIL_0 = 'u'; public static final String TEASER_ID = "id"; public static final String TEASER_URL = "url"; public static final String TEASER_TITLE = "title"; public static final String TEASER_CACHE = "teaser"; public static final String TEASER_PREVIEW = "preview"; /** * Read this Section During Original Data */ public static final char CONTENT_FIELDS = 'd'; public static final byte[] CONTENT_FIELDS_BYTES = "d".getBytes(); public static final char CONTENT_CITATION = 'C'; public static final byte[] CONTENT_CITATION_BYTES = "C".getBytes(); public static final char CONTENT_CITATION_TO = 't'; public static final byte[] CONTENT_CITATION_TO_BYTES = "t".getBytes(); public static final char CONTENT_CITATION_FROM = 'f'; public static final byte[] CONTENT_CITATION_FROM_BYTES = "f".getBytes(); /** * Dictionary */ public static final String DICTIONARY = "d"; public static final byte[] DICTIONARY_BYTES = DICTIONARY.getBytes(); public static final String DICTIONARY_TERM = "t"; public static final byte[] DICTIONARY_TERM_BYTES = DICTIONARY_TERM.getBytes(); /** * Config Bytes */ public static final String NAME_VALUE = "n"; public static final byte[] NAME_VALUE_BYTES = NAME_VALUE.getBytes(); //Limits public static final short BUCKET_PACKING_LIMIT = 8192; }