Constructor StoredField
StoredField(String, Byte[])
Create a stored-only field with the given binary value.
NOTE: the provided byte[] is not copied so be sure not to change it until you're done with this field.
Declaration
public StoredField(string name, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Byte[] | value | byte array pointing to binary content (not copied) |
StoredField(String, Byte[], Int32, Int32)
Create a stored-only field with the given binary value.
NOTE: the provided byte[] is not copied so be sure not to change it until you're done with this field.
Declaration
public StoredField(string name, byte[] value, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Byte[] | value | |
System.Int32 | offset | starting position of the byte array |
System.Int32 | length | valid length of the byte array |
StoredField(String, BytesRef)
Create a stored-only field with the given binary value.
NOTE: the provided BytesRef is not copied so be sure not to change it until you're done with this field.
Declaration
public StoredField(string name, BytesRef value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
BytesRef | value | BytesRef pointing to binary content (not copied) |
StoredField(String, String)
Create a stored-only field with the given
Declaration
public StoredField(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.String | value |
StoredField(String, Int32)
Create a stored-only field with the given
Declaration
public StoredField(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Int32 | value |
StoredField(String, Single)
Create a stored-only field with the given
Declaration
public StoredField(string name, float value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Single | value |
StoredField(String, Int64)
Create a stored-only field with the given
Declaration
public StoredField(string name, long value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Int64 | value |
StoredField(String, Double)
Create a stored-only field with the given
Declaration
public StoredField(string name, double value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | field name |
System.Double | value |