public class EsIndexColumn extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LENGTH_PREFIX |
static String |
LOWERCASE_PREFIX |
static String |
UPPERCASE_PREFIX |
Constructor and Description |
---|
EsIndexColumn(ExecutionContext context,
String name,
int type)
Creates new field definition.
|
Modifier and Type | Method and Description |
---|---|
protected Object[] |
cast(Collection values)
Converts array of values.
|
protected Object |
cast(Object value)
Converts given value to the value of JCR type of this column.
|
protected Object[] |
cast(Object[] values)
Converts array of values.
|
protected Object |
columnValue(Object value)
Converts representation of the given value using type conversation rules
between JCR type of this column and Elasticsearch core type of this column.
|
protected Object[] |
columnValues(Object[] value)
Converts array of values.
|
String |
getLengthFieldName()
Gets the name of the field to store length.
|
String |
getLowerCaseFieldName()
Gets the name of the field used for store lowered case value.
|
String |
getName()
Gets the name of this column.
|
PropertyType |
getType()
Gets type of this column.
|
String |
getUpperCaseFieldName()
Gets the name of the field used for store upper case value.
|
protected String |
stringValue(Object value) |
public static final String LENGTH_PREFIX
public static final String LOWERCASE_PREFIX
public static final String UPPERCASE_PREFIX
public EsIndexColumn(ExecutionContext context, String name, int type)
context
- ModeShape execution contextname
- name of this column.type
- JCR type of this column.public String getName()
public String getLengthFieldName()
public String getLowerCaseFieldName()
public String getUpperCaseFieldName()
public PropertyType getType()
protected Object columnValue(Object value)
value
- value to be converted.protected Object[] columnValues(Object[] value)
value
- protected Object cast(Object value)
value
- value to be converted.protected Object[] cast(Collection values)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.