Definition at line 25 of file IndexSetInfo.cs.
Deveel.Data.Sql.IndexSetInfo.IndexSetInfo |
( |
ObjectName |
tableName, |
|
|
IEnumerable< IndexInfo > |
indexes, |
|
|
bool |
readOnly |
|
) |
| |
|
inlineprivate |
Definition at line 28 of file IndexSetInfo.cs.
29 if (tableName == null)
30 throw new ArgumentNullException(
"tableName");
33 this.
indexes =
new List<IndexInfo>();
readonly List< IndexInfo > indexes
Deveel.Data.Sql.IndexSetInfo.IndexSetInfo |
( |
ObjectName |
tableName | ) |
|
|
inline |
void Deveel.Data.Sql.IndexSetInfo.AddIndex |
( |
IndexInfo |
indexInfo | ) |
|
|
inline |
Definition at line 119 of file IndexSetInfo.cs.
readonly List< IndexInfo > indexes
IndexSetInfo(ObjectName tableName, IEnumerable< IndexInfo > indexes, bool readOnly)
void Deveel.Data.Sql.IndexSetInfo.AssertNotReadOnly |
( |
| ) |
|
|
inlineprivate |
Definition at line 53 of file IndexSetInfo.cs.
55 throw new ArgumentException(
"The set is read-only.");
static IndexSetInfo Deveel.Data.Sql.IndexSetInfo.DeserializeFrom |
( |
Stream |
stream | ) |
|
|
inlinestatic |
Definition at line 152 of file IndexSetInfo.cs.
153 var reader =
new BinaryReader(stream, Encoding.Unicode);
155 var version = reader.ReadInt32();
157 throw new FormatException(
"Invalid version number of the Index-Set Info");
159 var catName = reader.ReadString();
160 var schemaName = reader.ReadString();
161 var tableName = reader.ReadString();
163 ObjectName objSchemaName;
164 if (
String.IsNullOrEmpty(catName)) {
165 objSchemaName =
new ObjectName(schemaName);
167 objSchemaName =
new ObjectName(
new ObjectName(catName), schemaName);
170 var objTableName =
new ObjectName(objSchemaName, tableName);
172 var indexCount = reader.ReadInt32();
174 var indices =
new List<IndexInfo>();
175 for (
int i = 0; i < indexCount; i++) {
176 var indexInfo = IndexInfo.DeserializeFrom(stream);
177 indices.Add(indexInfo);
180 return new IndexSetInfo(objTableName, indices.ToArray(),
false);
A long string in the system.
IndexSetInfo(ObjectName tableName, IEnumerable< IndexInfo > indexes, bool readOnly)
int Deveel.Data.Sql.IndexSetInfo.FindIndexForColumns |
( |
string[] |
columnNames | ) |
|
|
inline |
Definition at line 99 of file IndexSetInfo.cs.
101 for (
int i = 0; i < sz; ++i) {
102 string[] columns =
indexes[i].ColumnNames;
103 if (columns.Length == columnNames.Length) {
105 for (
int n = 0; n < columns.Length && passed; ++n) {
106 if (!columns[n].Equals(columnNames[n])) {
readonly List< IndexInfo > indexes
int Deveel.Data.Sql.IndexSetInfo.FindIndexOffset |
( |
string |
name | ) |
|
|
inline |
int Deveel.Data.Sql.IndexSetInfo.FindIndexOffset |
( |
string |
name, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inline |
Definition at line 88 of file IndexSetInfo.cs.
89 var compare = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
90 for (
int i = 0; i <
indexes.Count; i++) {
92 if (indexInfo.IndexName.Equals(name, compare))
readonly List< IndexInfo > indexes
IndexInfo Deveel.Data.Sql.IndexSetInfo.FindNamedIndex |
( |
string |
indexName | ) |
|
|
inline |
Definition at line 75 of file IndexSetInfo.cs.
IndexInfo FindNamedIndex(string indexName)
IndexInfo Deveel.Data.Sql.IndexSetInfo.FindNamedIndex |
( |
string |
indexName, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inline |
Definition at line 79 of file IndexSetInfo.cs.
80 var compare = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
81 return indexes.FirstOrDefault(x => x.IndexName.Equals(indexName, compare));
readonly List< IndexInfo > indexes
IEnumerator<IndexInfo> Deveel.Data.Sql.IndexSetInfo.GetEnumerator |
( |
| ) |
|
|
inline |
IEnumerator IEnumerable. Deveel.Data.Sql.IndexSetInfo.GetEnumerator |
( |
| ) |
|
|
inlineprivate |
IndexInfo Deveel.Data.Sql.IndexSetInfo.GetIndex |
( |
int |
offset | ) |
|
|
inline |
Definition at line 65 of file IndexSetInfo.cs.
66 return indexes.FirstOrDefault(x => x.Offset == offset);
readonly List< IndexInfo > indexes
void Deveel.Data.Sql.IndexSetInfo.RemoveIndexAt |
( |
int |
offset | ) |
|
|
inline |
void Deveel.Data.Sql.IndexSetInfo.SerialiazeTo |
( |
Stream |
stream | ) |
|
|
inline |
Definition at line 131 of file IndexSetInfo.cs.
134 var schema = schemaName != null ? schemaName.Name :
String.Empty;
136 var writer =
new BinaryWriter(stream, Encoding.Unicode);
138 writer.Write(catName);
139 writer.Write(schema);
142 int indexCount =
indexes.Count;
144 writer.Write(indexCount);
146 for (
int i = 0; i < indexCount; i++) {
148 index.SerializeTo(stream);
A long string in the system.
readonly List< IndexInfo > indexes
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
string Name
Gets the name of the object being referenced.
readonly List<IndexInfo> Deveel.Data.Sql.IndexSetInfo.indexes |
|
private |
int Deveel.Data.Sql.IndexSetInfo.IndexCount |
|
get |
bool Deveel.Data.Sql.IndexSetInfo.IsReadOnly |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql/IndexSetInfo.cs