org.apache.blur.thrift.generated
Enum TableDescriptor._Fields

java.lang.Object
  extended by java.lang.Enum<TableDescriptor._Fields>
      extended by org.apache.blur.thrift.generated.TableDescriptor._Fields
All Implemented Interfaces:
Serializable, Comparable<TableDescriptor._Fields>, TFieldIdEnum
Enclosing class:
TableDescriptor

public static enum TableDescriptor._Fields
extends Enum<TableDescriptor._Fields>
implements TFieldIdEnum

The set of fields this struct contains, along with convenience methods for finding and manipulating them.


Enum Constant Summary
BLOCK_CACHING
          Should block cache be enable or disabled for this table.
BLOCK_CACHING_FILE_TYPES
          The files extensions that you would like to allow block cache to cache.
CLUSTER
          The cluster where this table should be created.
DEFAULT_MISSING_FIELD_LESS_INDEXING
          If strict is not enabled, defines whether or not field less indexing is enabled on the newly created fields.
DEFAULT_MISSING_FIELD_PROPS
          If strict is not enabled, defines the properties to be used in the new field creation.
DEFAULT_MISSING_FIELD_TYPE
          If strict is not enabled, the default field type.
ENABLED
          Is the table enabled or not, enabled by default.
NAME
          The table name.
PRE_CACHE_COLS
          This is a list of fields to prefetch into the blockcache.
READ_ONLY
          If a table is set to be readonly, that means that mutates through Thrift are NOT allowed.
SHARD_COUNT
          The number of shards within the given table.
SIMILARITY_CLASS
          Sets the similarity class in Lucene.
STRICT_TYPES
          Whether strict types are enabled or not (default).
TABLE_PROPERTIES
          The table properties that can modify the default behavior of the table.
TABLE_URI
          The location where the table should be stored this can be "file:///" for a local instance of Blur or "hdfs://" for a distributed installation of Blur.
 
Method Summary
static TableDescriptor._Fields findByName(String name)
          Find the _Fields constant that matches name, or null if its not found.
static TableDescriptor._Fields findByThriftId(int fieldId)
          Find the _Fields constant that matches fieldId, or null if its not found.
static TableDescriptor._Fields findByThriftIdOrThrow(int fieldId)
          Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
 String getFieldName()
          Get the field's name, exactly as in the IDL.
 short getThriftFieldId()
          Get the Thrift field id for the named field.
static TableDescriptor._Fields valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TableDescriptor._Fields[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ENABLED

public static final TableDescriptor._Fields ENABLED
Is the table enabled or not, enabled by default.


SHARD_COUNT

public static final TableDescriptor._Fields SHARD_COUNT
The number of shards within the given table.


TABLE_URI

public static final TableDescriptor._Fields TABLE_URI
The location where the table should be stored this can be "file:///" for a local instance of Blur or "hdfs://" for a distributed installation of Blur.


CLUSTER

public static final TableDescriptor._Fields CLUSTER
The cluster where this table should be created.


NAME

public static final TableDescriptor._Fields NAME
The table name.


SIMILARITY_CLASS

public static final TableDescriptor._Fields SIMILARITY_CLASS
Sets the similarity class in Lucene.


BLOCK_CACHING

public static final TableDescriptor._Fields BLOCK_CACHING
Should block cache be enable or disabled for this table.


BLOCK_CACHING_FILE_TYPES

public static final TableDescriptor._Fields BLOCK_CACHING_FILE_TYPES
The files extensions that you would like to allow block cache to cache. If null (default) everything is cached.


READ_ONLY

public static final TableDescriptor._Fields READ_ONLY
If a table is set to be readonly, that means that mutates through Thrift are NOT allowed. However updates through MapReduce are allowed and in fact they are only allowed if the table is in readOnly mode.


PRE_CACHE_COLS

public static final TableDescriptor._Fields PRE_CACHE_COLS
This is a list of fields to prefetch into the blockcache. The format of the entries should be family dot column, "family.column".


TABLE_PROPERTIES

public static final TableDescriptor._Fields TABLE_PROPERTIES
The table properties that can modify the default behavior of the table. TODO: Document all options.


STRICT_TYPES

public static final TableDescriptor._Fields STRICT_TYPES
Whether strict types are enabled or not (default). If they are enabled no column can be added without first having it's type defined.


DEFAULT_MISSING_FIELD_TYPE

public static final TableDescriptor._Fields DEFAULT_MISSING_FIELD_TYPE
If strict is not enabled, the default field type.


DEFAULT_MISSING_FIELD_LESS_INDEXING

public static final TableDescriptor._Fields DEFAULT_MISSING_FIELD_LESS_INDEXING
If strict is not enabled, defines whether or not field less indexing is enabled on the newly created fields.


DEFAULT_MISSING_FIELD_PROPS

public static final TableDescriptor._Fields DEFAULT_MISSING_FIELD_PROPS
If strict is not enabled, defines the properties to be used in the new field creation.

Method Detail

values

public static TableDescriptor._Fields[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TableDescriptor._Fields c : TableDescriptor._Fields.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TableDescriptor._Fields valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

findByThriftId

public static TableDescriptor._Fields findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.


findByThriftIdOrThrow

public static TableDescriptor._Fields findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.


findByName

public static TableDescriptor._Fields findByName(String name)
Find the _Fields constant that matches name, or null if its not found.


getThriftFieldId

public short getThriftFieldId()
Description copied from interface: TFieldIdEnum
Get the Thrift field id for the named field.

Specified by:
getThriftFieldId in interface TFieldIdEnum

getFieldName

public String getFieldName()
Description copied from interface: TFieldIdEnum
Get the field's name, exactly as in the IDL.

Specified by:
getFieldName in interface TFieldIdEnum


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.