I noticed in the source the following column types are documented...
/**
* The field type for the column. The built in types are:
* <ul>
* <li>text - Full text indexing.</li>
* <li>string - Indexed string literal</li>
* <li>int - Converted to an integer and indexed numerically.</li>
* <li>long - Converted to an long and indexed numerically.</li>
* <li>float - Converted to an float and indexed numerically.</li>
* <li>double - Converted to an double and indexed numerically.</li>
* <li>stored - Not indexed, only stored.</li>
* </ul>
*/
When I was looking at blur-query/src/main/java/org/**apache/blur/analysis/
**BaseFieldManager.java I came across this though...
# grep addColumnDefinition blur-query/src/main/java/org/**
apache/blur/analysis/**BaseFieldManager.java
addColumnDefinition(family, name, null,
getDefaultMissingFieldLessInde**xing(), getDefaultMissingFieldType(),
public boolean addColumnDefinition(String family, String columnName,
String subColumnName, boolean fieldLessIndexed,
public void addColumnDefinitionGisPointVec**tor(String family, String
columnName) throws IOException {
addColumnDefinition(family, columnName, null, false,
SpatialPointVectorStrategyFiel**dTypeDefinition.NAME, null);
public void addColumnDefinitionGisRecursiv**ePrefixTree(String family,
String columnName) throws IOException {
addColumnDefinition(family, columnName, null, false,
SpatialRecursivePrefixTreeStra**tegyFieldTypeDefinition.NAME,
public void addColumnDefinitionDate(String family, String columnName,
String format) throws IOException {
addColumnDefinition(family, columnName, null, false,
DateFieldTypeDefinition.NAME, props);
public void addColumnDefinitionInt(String family, String columnName)
throws IOException {
addColumnDefinition(family, columnName, null, false,
IntFieldTypeDefinition.NAME, null);
public void addColumnDefinitionLong(String family, String columnName)
throws IOException {
addColumnDefinition(family, columnName, null, false,
LongFieldTypeDefinition.NAME, null);
public void addColumnDefinitionFloat(**String family, String
columnName) throws IOException {
addColumnDefinition(family, columnName, null, false,
FloatFieldTypeDefinition.NAME, null);
public void addColumnDefinitionDouble(**String family, String
columnName) throws IOException {
addColumnDefinition(family, columnName, null, false,
DoubleFieldTypeDefinition.**NAME, null);
public void addColumnDefinitionString(**String family, String
columnName) throws IOException {
addColumnDefinition(family, columnName, null, false,
StringFieldTypeDefinition.**NAME, null);
public void addColumnDefinitionText(String family, String columnName)
throws IOException {
addColumnDefinition(family, columnName, null, false,
TextFieldTypeDefinition.NAME, null);
public void addColumnDefinitionTextFieldLe**ss(String family, String
columnName) throws IOException {
addColumnDefinition(family, columnName, null, true,
TextFieldTypeDefinition.NAME, null);
I am wondering how to specify these. I would like to programmatically set
column types in certain situations, and I would like to be able to use the
Date column type. Which I have been meaning to ask about....
What is the best way to store a timestamp? What format, column type,
etc... I'm guessing the Date column type, but I do not know how to set it
right now. I noticed that the client (Iface object) has a
addColumnDefinition, but it has different parameters than the above
addColumnDefinition, and it's missing all of the ones for the different
column types.
I have one additional field type I would like to see, which is one for IP
addresses...
* <li>date - Converted to a date and indexing.</li>
* <li>text - Full text indexing.</li>
* <li>string - Indexed string literal</li>
* <li>int - Converted to an integer and indexed numerically.</li>
* <li>long - Converted to an long and indexed numerically.</li>
* <li>float - Converted to an float and indexed numerically.</li>
* <li>double - Converted to an double and indexed numerically.</li>
* <li>ip - Converted to a InetAddress and indexed numerically.</li>
--
Thanks,
Colton McInroy
* Director of Security Engineering
Phone
(Toll Free)
_US_ (888)-818-1344 Press 2
_UK_ 0-800-635-0551 Press 2
My Extension 101
24/7 Support [email protected] <mailto:[email protected]>
Email [email protected] <mailto:[email protected]>
Website http://www.dosarrest.com