Class FileArray<T>
An IArray where each element is stored as a disk file.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
public class FileArray<T> : IArray<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IDisposable, ICloneable
Type Parameters
Name |
Description |
T |
The element type
|
Constructors
FileArray(FileArray<FileArray<T>>, Int32, Int32)
Declaration
public FileArray(FileArray<FileArray<T>> parent, int index, int count)
Parameters
FileArray(String, Int32)
Declaration
public FileArray(string folder, int count)
Parameters
FileArray(String, Int32, Func<Int32, T>)
Declaration
public FileArray(string folder, int count, Func<int, T> func)
Parameters
Type |
Name |
Description |
String |
folder |
Temporary folder for storing data. Will be deleted when the FileArray is disposed.
|
Int32 |
count |
|
Func<Int32, T> |
func |
|
Fields
count
Declaration
protected readonly int count
Field Value
doNotDelete
Declaration
protected bool doNotDelete
Field Value
prefix
Declaration
protected readonly string prefix
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
Folder
Declaration
public string Folder { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Declaration
public T this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Rank
Declaration
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Clear()
Declaration
Clone()
Declaration
public virtual object Clone()
Returns
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
T[] |
array |
|
Int32 |
arrayIndex |
|
Dispose()
Declaration
Finalize()
Declaration
protected void Finalize()
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
GetLength(Int32)
Declaration
public int GetLength(int dimension)
Parameters
Type |
Name |
Description |
Int32 |
dimension |
|
Returns
GetTempFolder(String)
Declaration
public static string GetTempFolder(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Insert(Int32, T)
Declaration
public void Insert(int index, T item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
T |
item |
|
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods
IEnumerableExensions.ListZip<TFirst, TSecond, TThird, TFourth, TResult>(IList<TFirst>, IList<TSecond>, IList<TThird>, IList<TFourth>, Func<TFirst, TSecond, TThird, TFourth, TResult>)