示例#1
0
 def __init__(self, queryId, schema, serializedTuples, fetchRowNum):
     super(TajoMemoryResultSet, self).__init__()
     self.queryId = queryId
     self.schema = schema
     self.totalRow = len(serializedTuples)
     self.serializedTuples = serializedTuples
     self.decoder = RowDecoder(self.schema)
 def __init__(self, queryId, schema, serializedTuples):
     super(TajoMemoryResultSet, self).__init__()
     self.queryId = queryId
     self.schema = schema
     self.totalRow = len(serializedTuples)
     self.serializedTuples = serializedTuples
     self.decoder = RowDecoder(self.schema)
     self.cur = None
示例#3
0
class TajoMemoryResultSet(TajoResultSet):
    def __init__(self, queryId, schema, serializedTuples, fetchRowNum):
        super(TajoMemoryResultSet, self).__init__()
        self.queryId = queryId
        self.schema = schema
        self.totalRow = len(serializedTuples)
        self.serializedTuples = serializedTuples
        self.decoder = RowDecoder(self.schema)

    def getQueryId(self):
        return self.queryId

    def nextTuple(self):
        if self.curRow < self.totalRow:
            self.cur = self.decoder.toTuple(self.serializedTuples[self.curRow])
            return self.cur

        return None
class TajoMemoryResultSet(TajoResultSet):
    def __init__(self, queryId, schema, serializedTuples):
        super(TajoMemoryResultSet, self).__init__()
        self.queryId = queryId
        self.schema = schema
        self.totalRow = len(serializedTuples)
        self.serializedTuples = serializedTuples
        self.decoder = RowDecoder(self.schema)
        self.cur = None

    def getQueryId(self):
        return self.queryId

    def nextTuple(self):
        if self.curRow < self.totalRow:
            self.cur = self.decoder.toTuple(self.serializedTuples[self.curRow])
            return self.cur

        return None