Ejemplo n.º 1
0
def select(table, condition=[], attributes=[], newnames=None):
    if len(attributes):
        attrIdx = table.getIndex(attributes)
        t = table.project(attrIdx)
    t = table.select(condition)
    if not newnames is None:
        t.setNames(newnames)
    return t
Ejemplo n.º 2
0
def select(table, condition=[], attributes=[], newnames=None):
	if len(attributes):
		attrIdx = table.getIndex(attributes)
		t = table.project(attrIdx)
	t = table.select(condition)
	if not newnames is None:
		t.setNames(newnames)
	return t
Ejemplo n.º 3
0
def project(table, attributes):
    attrIdx = table.getIndex(attributes)
    return table.project(attrIdx)
Ejemplo n.º 4
0
def project(table, attributes):
	attrIdx = table.getIndex(attributes)
	return table.project(attrIdx)