|
| IndexInfo (string indexName, string indexType, string[] columnNames) |
|
| IndexInfo (string indexName, string indexType, string[] columnNames, bool isUnique, int offset) |
|
| IndexInfo (string indexName, string indexType, string[] columnNames, bool isUnique) |
|
Definition at line 22 of file IndexInfo.cs.
Deveel.Data.Sql.IndexInfo.IndexInfo |
( |
string |
indexName, |
|
|
string |
indexType, |
|
|
string[] |
columnNames |
|
) |
| |
|
inline |
Definition at line 23 of file IndexInfo.cs.
24 :
this(indexName, indexType, columnNames,
false) {
Deveel.Data.Sql.IndexInfo.IndexInfo |
( |
string |
indexName, |
|
|
string |
indexType, |
|
|
string[] |
columnNames, |
|
|
bool |
isUnique, |
|
|
int |
offset |
|
) |
| |
|
inline |
Definition at line 27 of file IndexInfo.cs.
28 if (
String.IsNullOrEmpty(indexType))
29 throw new ArgumentNullException(
"indexType");
30 if (
String.IsNullOrEmpty(indexName))
31 throw new ArgumentNullException(
"indexName");
32 if (columnNames == null || columnNames.Length == 0)
33 throw new ArgumentNullException(
"columnNames");
A long string in the system.
Deveel.Data.Sql.IndexInfo.IndexInfo |
( |
string |
indexName, |
|
|
string |
indexType, |
|
|
string[] |
columnNames, |
|
|
bool |
isUnique |
|
) |
| |
|
inline |
Definition at line 42 of file IndexInfo.cs.
43 :
this(indexName, indexType, columnNames, isUnique, -1) {
static IndexInfo Deveel.Data.Sql.IndexInfo.DeserializeFrom |
( |
Stream |
stream | ) |
|
|
inlinestaticpackage |
Definition at line 72 of file IndexInfo.cs.
73 var reader =
new BinaryReader(stream, Encoding.Unicode);
75 var version = reader.ReadInt32();
77 throw new FormatException(
"Invalid version number for Index-Info");
79 var indexType = reader.ReadString();
80 var indexName = reader.ReadString();
81 var unique = reader.ReadByte() == 1;
82 var offset = reader.ReadInt32();
84 var colCount = reader.ReadInt32();
86 var columnNames =
new string[colCount];
87 for (
int i = 0; i < colCount; i++) {
88 var columnName = reader.ReadString();
89 columnNames[i] = columnName;
92 return new IndexInfo(indexName, indexType, columnNames, unique, offset);
IndexInfo(string indexName, string indexType, string[] columnNames)
void Deveel.Data.Sql.IndexInfo.SerializeTo |
( |
Stream |
stream | ) |
|
|
inlinepackage |
Definition at line 56 of file IndexInfo.cs.
57 var writer =
new BinaryWriter(stream, Encoding.Unicode);
61 writer.Write(
IsUnique ? (byte) 1 : (byte) 0);
65 writer.Write(colCount);
66 for (
int i = 0; i < colCount; i++) {
68 writer.Write(colName);
string [] Deveel.Data.Sql.IndexInfo.ColumnNames |
|
getprivate set |
string Deveel.Data.Sql.IndexInfo.IndexName |
|
getprivate set |
string Deveel.Data.Sql.IndexInfo.IndexType |
|
getprivate set |
bool Deveel.Data.Sql.IndexInfo.IsUnique |
|
getprivate set |
int Deveel.Data.Sql.IndexInfo.Offset |
|
getset |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql/IndexInfo.cs