Exemplo n.º 1
0
 public override DocValues GetValues(IndexReader reader)
 {
     IndexReader[] subReaders = reader.GetSequentialSubReaders();
     if (subReaders != null)
     {
         // This is a composite reader
         return(new MultiDocValues(this, subReaders));
     }
     else
     {
         // Already an atomic reader -- just delegate
         return(other.GetValues(reader));
     }
 }
Exemplo n.º 2
0
		public override DocValues GetValues(IndexReader reader)
		{
			
			IndexReader[] subReaders = reader.GetSequentialSubReaders();
			if (subReaders != null)
			{
				// This is a composite reader
				return new MultiDocValues(this, subReaders);
			}
			else
			{
				// Already an atomic reader -- just delegate
				return other.GetValues(reader);
			}
		}
Exemplo n.º 3
0
 /// <summary> Gathers sub-readers from reader into a List.
 ///
 /// </summary>
 /// <param name="allSubReaders">
 /// </param>
 /// <param name="reader">
 /// </param>
 public static void  GatherSubReaders(System.Collections.IList allSubReaders, IndexReader reader)
 {
     IndexReader[] subReaders = reader.GetSequentialSubReaders();
     if (subReaders == null)
     {
         // Add the reader itself, and do not recurse
         allSubReaders.Add(reader);
     }
     else
     {
         for (int i = 0; i < subReaders.Length; i++)
         {
             GatherSubReaders(allSubReaders, subReaders[i]);
         }
     }
 }
Exemplo n.º 4
0
		/// <summary> Gathers sub-readers from reader into a List.
		/// 
		/// </summary>
		/// <param name="allSubReaders">
		/// </param>
		/// <param name="reader">
		/// </param>
		public static void  GatherSubReaders(System.Collections.IList allSubReaders, IndexReader reader)
		{
			IndexReader[] subReaders = reader.GetSequentialSubReaders();
			if (subReaders == null)
			{
				// Add the reader itself, and do not recurse
				allSubReaders.Add(reader);
			}
			else
			{
				for (int i = 0; i < subReaders.Length; i++)
				{
					GatherSubReaders(allSubReaders, subReaders[i]);
				}
			}
		}