コード例 #1
0
        public CustomSortField(string typeName, IndexQuery indexQuery, bool reverse)
            : base(String.Empty, INT, reverse)
        {
            var clrType = System.Type.GetType(typeName, throwOnError: true);

            generator = (IndexEntriesToComparablesGenerator)Activator.CreateInstance(clrType, new object[] { indexQuery });
        }
コード例 #2
0
ファイル: CustomSortField.cs プロジェクト: j2jensen/ravendb
 public CustomSortField(string typeName, IndexQuery indexQuery, bool reverse)
     : base(String.Empty, INT,reverse)
 {
     var clrType = System.Type.GetType(typeName, throwOnError: true);
     generator = (IndexEntriesToComparablesGenerator)Activator.CreateInstance(clrType, new object[] {indexQuery});
 }
コード例 #3
0
 public CustomSortFieldCompartor(IndexEntriesToComparablesGenerator generator, int numHits)
 {
     this.generator = generator;
     values         = new IComparable[numHits];
 }
コード例 #4
0
 public CustomSortFieldCompartor(IndexEntriesToComparablesGenerator generator, int numHits)
 {
     this.generator = generator;
     values= new IComparable[numHits];
 }