All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.dm.IndexTable Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20241126
Show newest version
package com.scudata.dm;

import com.scudata.array.BoolArray;
import com.scudata.array.IArray;
import com.scudata.array.IntArray;

/**
 * ?ڴ???????????
 * @author WangXiaoJun
 *
 */
abstract public class IndexTable {	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ???˷???????????Ϊһ???ֶεĹ?ϣ??
	 * @param key ??
	 * @return
	 */
	abstract public Object find(Object key);

	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ???˷???????????Ϊһ???ֶεĹ?ϣ??
	 * @param keys ??ֵ????
	 * @return
	 */
	abstract public Object find(Object []keys);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ?ã??˷???????????Ϊһ???ֶεĹ?ϣ??
	 * @param key ??
	 * @return
	 */
	abstract public int[] findAllPos(IArray key);

	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ?ã?ֻ????signArray??Ϊtrue?ģ??˷???????????Ϊһ???ֶεĹ?ϣ??
	 * @param key ??
	 * @param signArray
	 * @return
	 */
	abstract public int[] findAllPos(IArray key, BoolArray signArray);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ?ã??˷???????????Ϊһ???ֶεĹ?ϣ??
	 * @param keys ??ֵ????
	 * @return
	 */
	abstract public int[] findAllPos(IArray []keys);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??λ?ã?ֻ????signArray??Ϊtrue?ģ??˷???????????Ϊ???ֶεĹ?ϣ??
	 * @param keys ??ֵ????
	 * @param signArray
	 * @return
	 */
	abstract public int[] findAllPos(IArray []keys, BoolArray signArray);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ?ã??Ҳ???????0
	 * @param key ??
	 * @return
	 */
	abstract public int findPos(Object key);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ?ã??Ҳ???????0
	 * @param keys ??ֵ????
	 * @return
	 */
	abstract public int findPos(Object []keys);
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ??,?????ظ???ֵ
	 * @param key ??
	 * @param out
	 */
	public void findPos(Object key, IntArray out) {
		throw new RuntimeException();
	}
	
	/**
	 * ???ݼ????Ҷ?Ӧ??ֵ??λ??,?????ظ???ֵ
	 * @param key ??
	 * @param out
	 */
	public void findPos(Object[] keys, IntArray out) {
		throw new RuntimeException();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy