Search Results for

Show / Hide Table of Contents

# Class QueryField

Represents a queryable field.

##### Inheritance

System.Object
QueryField

###### Namespace: Apache.Ignite.Core.Cache.Configuration

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class QueryField : object

### Constructors

#### QueryField()

Initializes a new instance of the QueryField class.

##### Declaration

    public QueryField()

#### QueryField(String, String)

Initializes a new instance of the QueryField class.

##### Declaration

    public QueryField(string name, string javaFieldTypeName)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | name | Name.
System.String | javaFieldTypeName | Java type name.

#### QueryField(String, Type)

Initializes a new instance of the QueryField class.

##### Declaration

    public QueryField(string name, Type fieldType)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | name | Name.
Type | fieldType | Type.

### Properties

#### DefaultValue

Gets or sets the default value for the field.

##### Declaration

    public object DefaultValue { get; set; }

##### Property Value

Type | Description
--- | ---
System.Object |

#### FieldType

Gets or sets the type of the value.

This is a shortcut for FieldTypeName. Getter will return null for non-primitive types.

##### Declaration

    public Type FieldType { get; set; }

##### Property Value

Type | Description
--- | ---
Type |

#### FieldTypeName

Gets the Java type name.

##### Declaration

    public string FieldTypeName { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### IsKeyField

Gets or sets a value indicating whether this field belongs to the cache key. Proper value here is required for SQL DML queries which create/modify cache keys.

##### Declaration

    public bool IsKeyField { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### Name

Gets or sets the field name.

##### Declaration

    public string Name { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### NotNull

Gets or sets a value indicating whether null value is allowed for the field.

##### Declaration

    public bool NotNull { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### Precision

Gets or sets the precision for the field.

##### Declaration

    public int Precision { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### Scale

Gets or sets the scale for the field.

##### Declaration

    public int Scale { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |