An enumeration that represents the data types that StreamBase supports.
Namespace: StreamBase.SBAssembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 10.3.0.0
Syntax
| C# | Visual Basic | Visual C++ |
public sealed class DataType
Public NotInheritable Class DataType
public ref class DataType sealed
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| AllTypes()()()() |
Return a ReadOnlyCollection of all the DataTypes that StreamBase supports.
| |
| BLOB |
Blob type, variable length
| |
| BOOL |
Boolean type; 4 bytes
| |
| CAPTURE |
Capture type, variable length
| |
| DOUBLE |
Double type; 8 bytes
| |
| EnumValue |
A contrivance to allow DataType objects to be used in switch statements. Use like this:
switch (myDataType.EnumValue) { case DataType.EnumVal.BOOL: break; } | |
| Equals(Object) |
Returns true if this DataType is of the given type.
(Overrides Object..::..Equals(Object).) | |
| ForName(String) |
Return a DataType object corresponding to the given name.
| |
| ForType(Object) |
Return the appropriate DataType for the type of the given object. Will
return null if can't determine the appropriate type.
| |
| ForType(Type) |
Return the appropriate DataType for the given type. Will
return null if can't determine the appropriate type.
| |
| FUNCTION |
Function type, variable length
| |
| GetHashCode()()()() |
Hash function for this type.
(Overrides Object..::..GetHashCode()()()().) | |
| GetName()()()() |
Return a string representation of the data type.
| |
| GetSize()()()() |
Get the size in bytes of this DataType.
| |
| GetSQLName()()()() |
Return the StreamSQL name of this DataType.
| |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| INT |
Integer type; 4 bytes
| |
| IsSimpleType(DataType) |
Return true if the given type is a simple type (i.e. not a List or Tuple type).
| |
| IsValueType(DataType) |
True if this type is represented by a .NET value type (bool, int, long, double, string)
| |
| IsVariableSize()()()() |
Return true if this type is variable-length (e.g., STRING).
| |
| LIST |
List type, variable length
| |
| LONG |
Long type; 8 bytes
| |
| Name |
The string representation of the data type.
| |
| STRING |
String type, variable length
| |
| TIMESTAMP |
Timestamp type, 8 byte storage
| |
| ToString()()()() |
Return a string representation of the data type.
(Overrides Object..::..ToString()()()().) | |
| TUPLE |
Tuple type (nested tuple), variable length
|