protected final void initAccessAppendRef(IHyracksTaskContext ctx) throws HyracksDataException { initAccessAppend(ctx); tRef = new FrameTupleReference(); }
private RangeMapReaderActivityNodePushable(IHyracksTaskContext ctx, RecordDescriptor inputRecordDescriptor, ActivityId activityId, int partition) { this.ctx = ctx; this.frameTupleAccessor = new FrameTupleAccessor(inputRecordDescriptor); this.frameTupleReference = new FrameTupleReference(); this.activityId = activityId; this.partition = partition; }
private FrameTupleReference ftr = new FrameTupleReference(); private ISerializedAggregateEvaluator[] aggs = new ISerializedAggregateEvaluator[aggFactories.length]; private int offsetFieldIndex = keys.length;
@Override public void open() throws HyracksDataException { super.open(); frameTuple = new FrameTupleReference(); abstractModCallback = (AbstractIndexModificationOperationCallback) modCallback; }
public TuplePairEvaluator(IHyracksTaskContext ctx, IScalarEvaluatorFactory condFactory, IBinaryBooleanInspector binaryBooleanInspector) throws HyracksDataException { this.ctx = ctx; this.condEvaluator = condFactory.createScalarEvaluator(ctx); this.binaryBooleanInspector = binaryBooleanInspector; this.leftRef = new FrameTupleReference(); this.p = VoidPointable.FACTORY.createPointable(); this.rightRef = new FrameTupleReference(); this.compositeTupleRef = new CompositeFrameTupleReference(leftRef, rightRef); }
private FrameTupleReference ftr = new FrameTupleReference(); private IPointable p = VoidPointable.FACTORY.createPointable();
protected final void initAccessAppendFieldRef(IHyracksTaskContext ctx) throws HyracksDataException { frame = new VSizeFrame(ctx); appender = new FrameFixedFieldTupleAppender(inputRecordDesc.getFieldCount()); appender.reset(frame, true); tAccess = new FrameTupleAccessor(inputRecordDesc); tRef = new FrameTupleReference(); }
public LSMInvertedIndexSearchOperatorNodePushable(IHyracksTaskContext ctx, RecordDescriptor inputRecDesc, int partition, int[] minFilterFieldIndexes, int[] maxFilterFieldIndexes, IIndexDataflowHelperFactory indexHelperFactory, boolean retainInput, boolean retainMissing, IMissingWriterFactory missingWriterFactory, ISearchOperationCallbackFactory searchCallbackFactory, IInvertedIndexSearchModifier searchModifier, IBinaryTokenizerFactory binaryTokenizerFactory, int queryFieldIndex, boolean isFullTextSearchQuery, int numOfFields, boolean appendIndexFilter, int frameLimit) throws HyracksDataException { super(ctx, inputRecDesc, partition, minFilterFieldIndexes, maxFilterFieldIndexes, indexHelperFactory, retainInput, retainMissing, missingWriterFactory, searchCallbackFactory, appendIndexFilter); this.searchModifier = searchModifier; this.binaryTokenizerFactory = binaryTokenizerFactory; this.queryFieldIndex = queryFieldIndex; this.isFullTextSearchQuery = isFullTextSearchQuery; // If retainInput is true, the frameTuple is created in IndexSearchOperatorNodePushable.open(). if (!retainInput) { this.frameTuple = new FrameTupleReference(); } this.numOfFields = numOfFields; // Intermediate and final search result will use this buffer manager to get frames. this.framePool = new DeallocatableFramePool(ctx, frameLimit * ctx.getInitialFrameSize()); this.bufferManagerForSearch = new FramePoolBackedFrameBufferManager(framePool); // Keep the buffer manager in the hyracks context so that the search process can get it via the context. TaskUtil.put(HyracksConstants.INVERTED_INDEX_SEARCH_FRAME_MANAGER, bufferManagerForSearch, ctx); }
private RecordDescriptor inputRd = recordDescProvider.getInputRecordDescriptor(getActivityId(), 0); private FrameTupleAccessor accessor = new FrameTupleAccessor(inputRd); private FrameTupleReference tuple = new FrameTupleReference(); private ITupleWriter tupleWriter; private ClassLoader ctxCL;
private RecordDescriptor inputRd = recordDescProvider.getInputRecordDescriptor(getActivityId(), 0); private FrameTupleAccessor accessor = new FrameTupleAccessor(inputRd); private FrameTupleReference tuple = new FrameTupleReference(); private ITupleWriter tupleWriter; private ClassLoader ctxCL;
private void configurePropagation(IMissingWriterFactory iNullWriterFactory) { if (propagateInput) { // This LookupAdapter generates an external record as its output. // Thus, we add 1. tb = new ArrayTupleBuilder(tupleAccessor.getFieldCount() + 1); frameTuple = new FrameTupleReference(); } else { tb = new ArrayTupleBuilder(1); } if (retainNull) { IMissingWriter missingWriter = iNullWriterFactory.createMissingWriter(); missingTupleBuild = new ArrayTupleBuilder(1); DataOutput out = missingTupleBuild.getDataOutput(); try { missingWriter.writeMissing(out); } catch (IOException e) { e.printStackTrace(); } } else { missingTupleBuild = null; } }
public CommitRuntime(IHyracksTaskContext ctx, TxnId txnId, int datasetId, int[] primaryKeyFields, boolean isWriteTransaction, int resourcePartition, boolean isSink) { this.ctx = ctx; INcApplicationContext appCtx = (INcApplicationContext) ctx.getJobletContext().getServiceContext().getApplicationContext(); this.transactionManager = appCtx.getTransactionSubsystem().getTransactionManager(); this.logMgr = appCtx.getTransactionSubsystem().getLogManager(); this.txnId = txnId; this.datasetId = datasetId; this.primaryKeyFields = primaryKeyFields; this.tRef = new FrameTupleReference(); this.isWriteTransaction = isWriteTransaction; this.resourcePartition = resourcePartition; this.isSink = isSink; longHashes = new long[2]; }
@Override public void open() throws HyracksDataException { accessor = new FrameTupleAccessor(inputRecDesc); writeBuffer = new VSizeFrame(ctx); indexHelper.open(); index = indexHelper.getIndexInstance(); try { writer.open(); LocalResource resource = indexHelper.getResource(); modCallback = modOpCallbackFactory.createModificationOperationCallback(resource, ctx, this); IIndexAccessParameters iap = new IndexAccessParameters(modCallback, NoOpOperationCallback.INSTANCE); indexAccessor = index.createAccessor(iap); if (tupleFilterFactory != null) { tupleFilter = tupleFilterFactory.createTupleFilter(ctx); frameTuple = new FrameTupleReference(); } } catch (Exception e) { throw HyracksDataException.create(e); } }
final FrameTupleReference tRef = new FrameTupleReference();; final IBinaryIntegerInspector intInsepctor = intInsepctorFactory.createBinaryIntegerInspector(ctx); final IScalarEvaluator eval = brachingExprEvalFactory.createScalarEvaluator(ctx);
cursor = createCursor(); if (retainInput) { frameTuple = new FrameTupleReference();
copyFrame2 = new VSizeFrame(ctx); tAccess2 = new FrameTupleAccessor(inputRecordDesc); tRef2 = new FrameTupleReference();
if (tupleFilterFactory != null) { tupleFilter = tupleFilterFactory.createTupleFilter(ctx); frameTuple = new FrameTupleReference();
cursor = createCursor(); if (retainInput) { frameTuple = new FrameTupleReference();
cursor = createCursor(); if (retainInput) { frameTuple = new FrameTupleReference();
lsmAccessor = (LSMTreeIndexAccessor) indexAccessor; cursor = indexAccessor.createSearchCursor(false); frameTuple = new FrameTupleReference(); INcApplicationContext appCtx = (INcApplicationContext) ctx.getJobletContext().getServiceContext().getApplicationContext();