private static void DemonstrateReading(IStargate stargate) { // reading data for one row: var value = stargate.ReadValue("access-logs", "elton|jericho|201511", "t", "1106"); Console.WriteLine("Single cell value: " + value); var cellSet = stargate.FindCells("access-logs", "elton|jericho|201511"); value = cellSet.First(x => x.Identifier.CellDescriptor.Qualifier == "1106").Value; Console.WriteLine("LINQed cell value: " + value); }
/// <summary> /// Finds the cells with the matching attributes. /// </summary> /// <param name="gate">The gate.</param> /// <param name="table">The table.</param> /// <param name="row">The row.</param> /// <param name="column">The column.</param> /// <param name="qualifier">The qualifier.</param> /// <param name="beginTimestamp">The begin timestamp (exclusive).</param> /// <param name="endTimestamp">The end timestamp (exclusive).</param> /// <param name="maxVersions">The maximum versions to return.</param> public static CellSet FindCells(this IStargate gate, string table, string row = null, string column = null, string qualifier = null, long?beginTimestamp = null, long?endTimestamp = null, int?maxVersions = null) { return(gate.FindCells(BuildQuery(table, row, column, qualifier, beginTimestamp, endTimestamp, maxVersions))); }