You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace FASTER.core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface to provide a batch of ReadOnlySpan[byte] data to FASTER
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IReadOnlySpanBatch
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Number of entries in provided batch
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Number of entries</returns>
|
|
|
|
|
int TotalEntries();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieve batch entry at specified index
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="index">Index</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
ReadOnlySpan<byte> Get(int index);
|
|
|
|
|
}
|
|
|
|
|
}
|