public class CopyField
extends java.lang.Object
CopyField
contains all the information of a valid copy fields in an index.Modifier and Type | Field and Description |
---|---|
private SchemaField |
destination |
private int |
maxChars |
private SchemaField |
source |
static int |
UNLIMITED |
Constructor and Description |
---|
CopyField(SchemaField source,
SchemaField destination) |
CopyField(SchemaField source,
SchemaField destination,
int maxChars) |
Modifier and Type | Method and Description |
---|---|
SchemaField |
getDestination() |
java.lang.String |
getLimitedValue(java.lang.String val) |
int |
getMaxChars() |
SchemaField |
getSource() |
private final SchemaField source
private final SchemaField destination
private final int maxChars
public static final int UNLIMITED
public CopyField(SchemaField source, SchemaField destination)
public CopyField(SchemaField source, SchemaField destination, int maxChars)
source
- The SchemaField of the source field.destination
- The SchemaField of the destination field.maxChars
- Maximum number of chars in source field to copy to destination field.
If equal to 0, there is no limit.public java.lang.String getLimitedValue(java.lang.String val)
public SchemaField getSource()
public SchemaField getDestination()
public int getMaxChars()