@Override public void flush() throws HyracksDataException { appender.flush(writer); } };
@Override public void flush() throws HyracksDataException { appender.flush(writer); } };
@Override public void flush() throws HyracksDataException { appender.flush(writer); } };
@Override public void flush() throws HyracksDataException { appender.flush(writer); } }
@Override public void flush() throws HyracksDataException { appender.flush(writer); }
@Override public void flush() throws HyracksDataException { appender.flush(writer); }
@Override public void nextFrame(ByteBuffer buffer) throws HyracksDataException { // what if numOfTuples is 0? tAccess.reset(buffer); int nTuple = tAccess.getTupleCount(); if (nTuple == 0) { appender.flush(writer); } else { int t = 0; if (nTuple > 1) { for (; t < nTuple - 1; t++) { appendProjectionToFrame(t, projectionList); } } if (flushFramesRapidly) { // Whenever all the tuples in the incoming frame have been consumed, the project operator // will push its frame to the next operator; i.e., it won't wait until the frame gets full. appendProjectionToFrame(t, projectionList, true); } else { appendProjectionToFrame(t, projectionList); } } }
throw new HyracksDataException("Negative number of tuples in the frame: " + nTuple); appender.flush(writer); } else { if (nTuple > 1) {