Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file 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.amazonaws.services.cloudsearchv2.model;
  

Configuration information for a field in the index, including its name, type, and options. The supported options depend on the IndexFieldType .

  
  public class IndexField implements SerializableCloneable {

    
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

Constraints:
Length: 1 - 64
Pattern: ([a-z][a-z0-9_]*\*?|\*[a-z0-9_]*)

  
      private String indexFieldName;

    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

  
      private String indexFieldType;

    
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.
  
      private IntOptions intOptions;

    
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.
  
      private DoubleOptions doubleOptions;

    
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.
  
      private LiteralOptions literalOptions;

    
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.
  
      private TextOptions textOptions;

    
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.
  
      private DateOptions dateOptions;

    
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.
 
     private LatLonOptions latLonOptions;

    
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.
 
     private IntArrayOptions intArrayOptions;

    
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.
 
     private DoubleArrayOptions doubleArrayOptions;

    
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.
 
     private LiteralArrayOptions literalArrayOptions;

    
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
 
     private TextArrayOptions textArrayOptions;

    
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.
 
     private DateArrayOptions dateArrayOptions;

    
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

Constraints:
Length: 1 - 64
Pattern: ([a-z][a-z0-9_]*\*?|\*[a-z0-9_]*)

Returns:
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

 
     public String getIndexFieldName() {
         return ;
     }
    
    
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

Constraints:
Length: 1 - 64
Pattern: ([a-z][a-z0-9_]*\*?|\*[a-z0-9_]*)

Parameters:
indexFieldName A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

 
     public void setIndexFieldName(String indexFieldName) {
         this. = indexFieldName;
     }
    
    
A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: ([a-z][a-z0-9_]*\*?|\*[a-z0-9_]*)

Parameters:
indexFieldName A string that represents the name of an index field. CloudSearch supports regular index fields as well as dynamic fields. A dynamic field's name defines a pattern that begins or ends with a wildcard. Any document fields that don't map to a regular index field but do match a dynamic field's pattern are configured with the dynamic field's indexing options.

Regular field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin or end with a wildcard (*). The wildcard can also be the only character in a dynamic field name. Multiple wildcards, and wildcards embedded within a string are not supported.

The name score is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withIndexFieldName(String indexFieldName) {
         this. = indexFieldName;
         return this;
     }

    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

Returns:
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
See also:
IndexFieldType
 
     public String getIndexFieldType() {
         return ;
     }
    
    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

Parameters:
indexFieldType The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
See also:
IndexFieldType
 
     public void setIndexFieldType(String indexFieldType) {
         this. = indexFieldType;
     }
    
    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

Parameters:
indexFieldType The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
IndexFieldType
 
     public IndexField withIndexFieldType(String indexFieldType) {
         this. = indexFieldType;
         return this;
     }

    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

Parameters:
indexFieldType The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
See also:
IndexFieldType
 
     public void setIndexFieldType(IndexFieldType indexFieldType) {
         this. = indexFieldType.toString();
     }
    
    
The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: int, double, literal, text, date, latlon, int-array, double-array, literal-array, text-array, date-array

Parameters:
indexFieldType The type of field. The valid options for a field depend on the field type. For more information about the supported field types, see Configuring Index Fields in the Amazon CloudSearch Developer Guide.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
IndexFieldType
 
     public IndexField withIndexFieldType(IndexFieldType indexFieldType) {
         this. = indexFieldType.toString();
         return this;
     }

    
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.

Returns:
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.
 
     public IntOptions getIntOptions() {
         return ;
     }
    
    
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.

Parameters:
intOptions Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.
 
     public void setIntOptions(IntOptions intOptions) {
         this. = intOptions;
     }
    
    
Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
intOptions Options for a 64-bit signed integer field. Present if IndexFieldType specifies the field is of type int. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withIntOptions(IntOptions intOptions) {
         this. = intOptions;
         return this;
     }

    
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.

Returns:
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.
 
     public DoubleOptions getDoubleOptions() {
         return ;
     }
    
    
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.

Parameters:
doubleOptions Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.
 
     public void setDoubleOptions(DoubleOptions doubleOptions) {
         this. = doubleOptions;
     }
    
    
Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
doubleOptions Options for a double-precision 64-bit floating point field. Present if IndexFieldType specifies the field is of type double. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withDoubleOptions(DoubleOptions doubleOptions) {
         this. = doubleOptions;
         return this;
     }

    
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.

Returns:
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.
 
     public LiteralOptions getLiteralOptions() {
         return ;
     }
    
    
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.

Parameters:
literalOptions Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.
 
     public void setLiteralOptions(LiteralOptions literalOptions) {
         this. = literalOptions;
     }
    
    
Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
literalOptions Options for literal field. Present if IndexFieldType specifies the field is of type literal. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withLiteralOptions(LiteralOptions literalOptions) {
         this. = literalOptions;
         return this;
     }

    
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.

Returns:
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.
 
     public TextOptions getTextOptions() {
         return ;
     }
    
    
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.

Parameters:
textOptions Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.
 
     public void setTextOptions(TextOptions textOptions) {
         this. = textOptions;
     }
    
    
Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
textOptions Options for text field. Present if IndexFieldType specifies the field is of type text. A text field is always searchable. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withTextOptions(TextOptions textOptions) {
         this. = textOptions;
         return this;
     }

    
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.

Returns:
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.
 
     public DateOptions getDateOptions() {
         return ;
     }
    
    
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.

Parameters:
dateOptions Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.
 
     public void setDateOptions(DateOptions dateOptions) {
         this. = dateOptions;
     }
    
    
Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dateOptions Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withDateOptions(DateOptions dateOptions) {
         this. = dateOptions;
         return this;
     }

    
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.

Returns:
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.
 
     public LatLonOptions getLatLonOptions() {
         return ;
     }
    
    
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.

Parameters:
latLonOptions Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.
 
     public void setLatLonOptions(LatLonOptions latLonOptions) {
         this. = latLonOptions;
     }
    
    
Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
latLonOptions Options for a latlon field. A latlon field contains a location stored as a latitude and longitude value pair. Present if IndexFieldType specifies the field is of type latlon. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withLatLonOptions(LatLonOptions latLonOptions) {
         this. = latLonOptions;
         return this;
     }

    
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.

Returns:
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.
 
     public IntArrayOptions getIntArrayOptions() {
         return ;
     }
    
    
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.

Parameters:
intArrayOptions Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.
 
     public void setIntArrayOptions(IntArrayOptions intArrayOptions) {
         this. = intArrayOptions;
     }
    
    
Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
intArrayOptions Options for a field that contains an array of 64-bit signed integers. Present if IndexFieldType specifies the field is of type int-array. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withIntArrayOptions(IntArrayOptions intArrayOptions) {
         this. = intArrayOptions;
         return this;
     }

    
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.

Returns:
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.
 
         return ;
     }
    
    
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.

Parameters:
doubleArrayOptions Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.
 
     public void setDoubleArrayOptions(DoubleArrayOptions doubleArrayOptions) {
         this. = doubleArrayOptions;
     }
    
    
Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
doubleArrayOptions Options for a field that contains an array of double-precision 64-bit floating point values. Present if IndexFieldType specifies the field is of type double-array. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withDoubleArrayOptions(DoubleArrayOptions doubleArrayOptions) {
         this. = doubleArrayOptions;
         return this;
     }

    
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.

Returns:
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.
 
         return ;
     }
    
    
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.

Parameters:
literalArrayOptions Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.
 
     public void setLiteralArrayOptions(LiteralArrayOptions literalArrayOptions) {
         this. = literalArrayOptions;
     }
    
    
Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
literalArrayOptions Options for a field that contains an array of literal strings. Present if IndexFieldType specifies the field is of type literal-array. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withLiteralArrayOptions(LiteralArrayOptions literalArrayOptions) {
         this. = literalArrayOptions;
         return this;
     }

    
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.

Returns:
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
 
         return ;
     }
    
    
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.

Parameters:
textArrayOptions Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
 
     public void setTextArrayOptions(TextArrayOptions textArrayOptions) {
         this. = textArrayOptions;
     }
    
    
Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
textArrayOptions Options for a field that contains an array of text strings. Present if IndexFieldType specifies the field is of type text-array. A text-array field is always searchable. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withTextArrayOptions(TextArrayOptions textArrayOptions) {
         this. = textArrayOptions;
         return this;
     }

    
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.

Returns:
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.
 
         return ;
     }
    
    
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.

Parameters:
dateArrayOptions Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.
 
     public void setDateArrayOptions(DateArrayOptions dateArrayOptions) {
         this. = dateArrayOptions;
     }
    
    
Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dateArrayOptions Options for a field that contains an array of dates. Present if IndexFieldType specifies the field is of type date-array. All options are enabled by default.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public IndexField withDateArrayOptions(DateArrayOptions dateArrayOptions) {
         this. = dateArrayOptions;
         return this;
     }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append("{");
         if (getIndexFieldName() != nullsb.append("IndexFieldName: " + getIndexFieldName() + ",");
         if (getIndexFieldType() != nullsb.append("IndexFieldType: " + getIndexFieldType() + ",");
         if (getIntOptions() != nullsb.append("IntOptions: " + getIntOptions() + ",");
         if (getDoubleOptions() != nullsb.append("DoubleOptions: " + getDoubleOptions() + ",");
         if (getLiteralOptions() != nullsb.append("LiteralOptions: " + getLiteralOptions() + ",");
         if (getTextOptions() != nullsb.append("TextOptions: " + getTextOptions() + ",");
         if (getDateOptions() != nullsb.append("DateOptions: " + getDateOptions() + ",");
         if (getLatLonOptions() != nullsb.append("LatLonOptions: " + getLatLonOptions() + ",");
         if (getIntArrayOptions() != nullsb.append("IntArrayOptions: " + getIntArrayOptions() + ",");
         if (getDoubleArrayOptions() != nullsb.append("DoubleArrayOptions: " + getDoubleArrayOptions() + ",");
         if (getLiteralArrayOptions() != nullsb.append("LiteralArrayOptions: " + getLiteralArrayOptions() + ",");
         if (getTextArrayOptions() != nullsb.append("TextArrayOptions: " + getTextArrayOptions() + ",");
         if (getDateArrayOptions() != nullsb.append("DateArrayOptions: " + getDateArrayOptions() );
         sb.append("}");
         return sb.toString();
     }
     
     @Override
     public int hashCode() {
         final int prime = 31;
         int hashCode = 1;
         
         hashCode = prime * hashCode + ((getIndexFieldName() == null) ? 0 : getIndexFieldName().hashCode()); 
         hashCode = prime * hashCode + ((getIndexFieldType() == null) ? 0 : getIndexFieldType().hashCode()); 
         hashCode = prime * hashCode + ((getIntOptions() == null) ? 0 : getIntOptions().hashCode()); 
         hashCode = prime * hashCode + ((getDoubleOptions() == null) ? 0 : getDoubleOptions().hashCode()); 
         hashCode = prime * hashCode + ((getLiteralOptions() == null) ? 0 : getLiteralOptions().hashCode()); 
         hashCode = prime * hashCode + ((getTextOptions() == null) ? 0 : getTextOptions().hashCode()); 
         hashCode = prime * hashCode + ((getDateOptions() == null) ? 0 : getDateOptions().hashCode()); 
         hashCode = prime * hashCode + ((getLatLonOptions() == null) ? 0 : getLatLonOptions().hashCode()); 
         hashCode = prime * hashCode + ((getIntArrayOptions() == null) ? 0 : getIntArrayOptions().hashCode()); 
         hashCode = prime * hashCode + ((getDoubleArrayOptions() == null) ? 0 : getDoubleArrayOptions().hashCode()); 
         hashCode = prime * hashCode + ((getLiteralArrayOptions() == null) ? 0 : getLiteralArrayOptions().hashCode()); 
         hashCode = prime * hashCode + ((getTextArrayOptions() == null) ? 0 : getTextArrayOptions().hashCode()); 
         hashCode = prime * hashCode + ((getDateArrayOptions() == null) ? 0 : getDateArrayOptions().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof IndexField == falsereturn false;
         IndexField other = (IndexField)obj;
         
         if (other.getIndexFieldName() == null ^ this.getIndexFieldName() == nullreturn false;
         if (other.getIndexFieldName() != null && other.getIndexFieldName().equals(this.getIndexFieldName()) == falsereturn false
         if (other.getIndexFieldType() == null ^ this.getIndexFieldType() == nullreturn false;
         if (other.getIndexFieldType() != null && other.getIndexFieldType().equals(this.getIndexFieldType()) == falsereturn false
         if (other.getIntOptions() == null ^ this.getIntOptions() == nullreturn false;
         if (other.getIntOptions() != null && other.getIntOptions().equals(this.getIntOptions()) == falsereturn false
         if (other.getDoubleOptions() == null ^ this.getDoubleOptions() == nullreturn false;
         if (other.getDoubleOptions() != null && other.getDoubleOptions().equals(this.getDoubleOptions()) == falsereturn false
         if (other.getLiteralOptions() == null ^ this.getLiteralOptions() == nullreturn false;
         if (other.getLiteralOptions() != null && other.getLiteralOptions().equals(this.getLiteralOptions()) == falsereturn false
         if (other.getTextOptions() == null ^ this.getTextOptions() == nullreturn false;
         if (other.getTextOptions() != null && other.getTextOptions().equals(this.getTextOptions()) == falsereturn false
         if (other.getDateOptions() == null ^ this.getDateOptions() == nullreturn false;
         if (other.getDateOptions() != null && other.getDateOptions().equals(this.getDateOptions()) == falsereturn false
         if (other.getLatLonOptions() == null ^ this.getLatLonOptions() == nullreturn false;
         if (other.getLatLonOptions() != null && other.getLatLonOptions().equals(this.getLatLonOptions()) == falsereturn false
         if (other.getIntArrayOptions() == null ^ this.getIntArrayOptions() == nullreturn false;
         if (other.getIntArrayOptions() != null && other.getIntArrayOptions().equals(this.getIntArrayOptions()) == falsereturn false
         if (other.getDoubleArrayOptions() == null ^ this.getDoubleArrayOptions() == nullreturn false;
         if (other.getDoubleArrayOptions() != null && other.getDoubleArrayOptions().equals(this.getDoubleArrayOptions()) == falsereturn false
         if (other.getLiteralArrayOptions() == null ^ this.getLiteralArrayOptions() == nullreturn false;
         if (other.getLiteralArrayOptions() != null && other.getLiteralArrayOptions().equals(this.getLiteralArrayOptions()) == falsereturn false
         if (other.getTextArrayOptions() == null ^ this.getTextArrayOptions() == nullreturn false;
         if (other.getTextArrayOptions() != null && other.getTextArrayOptions().equals(this.getTextArrayOptions()) == falsereturn false
         if (other.getDateArrayOptions() == null ^ this.getDateArrayOptions() == nullreturn false;
         if (other.getDateArrayOptions() != null && other.getDateArrayOptions().equals(this.getDateArrayOptions()) == falsereturn false
         return true;
     }
     
     @Override
     public IndexField clone() {
         try {
             return (IndexFieldsuper.clone();
         
         } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X