├── .gitignore ├── DISCLAIMER ├── LICENSE ├── NOTICE ├── algebricks ├── algebricks-common │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── common │ │ ├── constraints │ │ ├── AlgebricksAbsolutePartitionConstraint.java │ │ ├── AlgebricksCountPartitionConstraint.java │ │ ├── AlgebricksPartitionConstraint.java │ │ └── AlgebricksPartitionConstraintHelper.java │ │ ├── exceptions │ │ ├── AlgebricksException.java │ │ └── NotImplementedException.java │ │ └── utils │ │ ├── ListSet.java │ │ ├── Pair.java │ │ └── Triple.java ├── algebricks-compiler │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── compiler │ │ ├── api │ │ ├── AbstractCompilerFactoryBuilder.java │ │ ├── HeuristicCompilerFactoryBuilder.java │ │ ├── ICompiler.java │ │ └── ICompilerFactory.java │ │ └── rewriter │ │ └── rulecontrollers │ │ ├── PrioritizedRuleController.java │ │ ├── SequentialFixpointRuleController.java │ │ └── SequentialOnceRuleController.java ├── algebricks-core │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── core │ │ ├── algebra │ │ ├── base │ │ │ ├── Counter.java │ │ │ ├── EquivalenceClass.java │ │ │ ├── IHyracksJobBuilder.java │ │ │ ├── ILogicalExpression.java │ │ │ ├── ILogicalOperator.java │ │ │ ├── ILogicalPlan.java │ │ │ ├── ILogicalPlanAndMetadata.java │ │ │ ├── IOptimizationContext.java │ │ │ ├── IPhysicalOperator.java │ │ │ ├── IVariableContext.java │ │ │ ├── LogicalExpressionTag.java │ │ │ ├── LogicalOperatorTag.java │ │ │ ├── LogicalVariable.java │ │ │ ├── OperatorAnnotations.java │ │ │ └── PhysicalOperatorTag.java │ │ ├── expressions │ │ │ ├── AbstractFunctionCallExpression.java │ │ │ ├── AbstractLogicalExpression.java │ │ │ ├── AggregateFunctionCallExpression.java │ │ │ ├── BroadcastExpressionAnnotation.java │ │ │ ├── ConstantExpression.java │ │ │ ├── ExpressionAnnotationNoCopyImpl.java │ │ │ ├── IAlgebricksConstantValue.java │ │ │ ├── IExpressionAnnotation.java │ │ │ ├── IExpressionEvalSizeComputer.java │ │ │ ├── IExpressionRuntimeProvider.java │ │ │ ├── IExpressionTypeComputer.java │ │ │ ├── ILogicalExpressionJobGen.java │ │ │ ├── IMergeAggregationExpressionFactory.java │ │ │ ├── INullableTypeComputer.java │ │ │ ├── IPartialAggregationTypeComputer.java │ │ │ ├── IVariableEvalSizeEnvironment.java │ │ │ ├── IVariableTypeEnvironment.java │ │ │ ├── IndexedNLJoinExpressionAnnotation.java │ │ │ ├── LogicalExpressionJobGenToExpressionRuntimeProviderAdapter.java │ │ │ ├── ScalarFunctionCallExpression.java │ │ │ ├── StatefulFunctionCallExpression.java │ │ │ ├── UnnestingFunctionCallExpression.java │ │ │ └── VariableReferenceExpression.java │ │ ├── functions │ │ │ ├── AbstractFunctionInfo.java │ │ │ ├── AlgebricksBuiltinFunctions.java │ │ │ ├── FunctionIdentifier.java │ │ │ └── IFunctionInfo.java │ │ ├── metadata │ │ │ ├── IDataSink.java │ │ │ ├── IDataSource.java │ │ │ ├── IDataSourceIndex.java │ │ │ ├── IDataSourcePropertiesProvider.java │ │ │ └── IMetadataProvider.java │ │ ├── operators │ │ │ ├── logical │ │ │ │ ├── AbstractAssignOperator.java │ │ │ │ ├── AbstractBinaryJoinOperator.java │ │ │ │ ├── AbstractDataSourceOperator.java │ │ │ │ ├── AbstractExtensibleLogicalOperator.java │ │ │ │ ├── AbstractLogicalOperator.java │ │ │ │ ├── AbstractOperatorWithNestedPlans.java │ │ │ │ ├── AbstractScanOperator.java │ │ │ │ ├── AbstractUnnestMapOperator.java │ │ │ │ ├── AbstractUnnestNonMapOperator.java │ │ │ │ ├── AbstractUnnestOperator.java │ │ │ │ ├── AggregateOperator.java │ │ │ │ ├── AssignOperator.java │ │ │ │ ├── DataSourceScanOperator.java │ │ │ │ ├── DistinctOperator.java │ │ │ │ ├── DistributeResultOperator.java │ │ │ │ ├── EmptyTupleSourceOperator.java │ │ │ │ ├── ExchangeOperator.java │ │ │ │ ├── ExtensionOperator.java │ │ │ │ ├── GroupByOperator.java │ │ │ │ ├── IOperatorExtension.java │ │ │ │ ├── IOperatorSchema.java │ │ │ │ ├── IndexInsertDeleteUpsertOperator.java │ │ │ │ ├── InnerJoinOperator.java │ │ │ │ ├── InsertDeleteUpsertOperator.java │ │ │ │ ├── IntersectOperator.java │ │ │ │ ├── LeftOuterJoinOperator.java │ │ │ │ ├── LeftOuterUnnestMapOperator.java │ │ │ │ ├── LimitOperator.java │ │ │ │ ├── MaterializeOperator.java │ │ │ │ ├── NestedTupleSourceOperator.java │ │ │ │ ├── OrderOperator.java │ │ │ │ ├── OuterUnnestOperator.java │ │ │ │ ├── PartitioningSplitOperator.java │ │ │ │ ├── ProjectOperator.java │ │ │ │ ├── ReplicateOperator.java │ │ │ │ ├── RunningAggregateOperator.java │ │ │ │ ├── ScriptOperator.java │ │ │ │ ├── SelectOperator.java │ │ │ │ ├── SinkOperator.java │ │ │ │ ├── SubplanOperator.java │ │ │ │ ├── TokenizeOperator.java │ │ │ │ ├── UnionAllOperator.java │ │ │ │ ├── UnnestMapOperator.java │ │ │ │ ├── UnnestOperator.java │ │ │ │ ├── UpdateOperator.java │ │ │ │ ├── WriteOperator.java │ │ │ │ ├── WriteResultOperator.java │ │ │ │ └── visitors │ │ │ │ │ ├── CardinalityInferenceVisitor.java │ │ │ │ │ ├── FDsAndEquivClassesVisitor.java │ │ │ │ │ ├── IsExpressionStatefulVisitor.java │ │ │ │ │ ├── IsomorphismOperatorVisitor.java │ │ │ │ │ ├── IsomorphismUtilities.java │ │ │ │ │ ├── IsomorphismVariableMappingVisitor.java │ │ │ │ │ ├── LogicalExpressionDeepCopyWithNewVariablesVisitor.java │ │ │ │ │ ├── LogicalOperatorDeepCopyWithNewVariablesVisitor.java │ │ │ │ │ ├── LogicalPropertiesVisitor.java │ │ │ │ │ ├── OperatorDeepCopyVisitor.java │ │ │ │ │ ├── PrimaryKeyVariablesVisitor.java │ │ │ │ │ ├── ProducedVariableVisitor.java │ │ │ │ │ ├── SchemaVariableVisitor.java │ │ │ │ │ ├── SubstituteVariableVisitor.java │ │ │ │ │ ├── UsedVariableVisitor.java │ │ │ │ │ └── VariableUtilities.java │ │ │ └── physical │ │ │ │ ├── AbstractExchangePOperator.java │ │ │ │ ├── AbstractHashJoinPOperator.java │ │ │ │ ├── AbstractJoinPOperator.java │ │ │ │ ├── AbstractPhysicalOperator.java │ │ │ │ ├── AbstractPreclusteredGroupByPOperator.java │ │ │ │ ├── AbstractPropagatePropertiesForUsedVariablesPOperator.java │ │ │ │ ├── AbstractScanPOperator.java │ │ │ │ ├── AbstractStableSortPOperator.java │ │ │ │ ├── AggregatePOperator.java │ │ │ │ ├── AssignPOperator.java │ │ │ │ ├── BroadcastPOperator.java │ │ │ │ ├── BulkloadPOperator.java │ │ │ │ ├── DataSourceScanPOperator.java │ │ │ │ ├── DistributeResultPOperator.java │ │ │ │ ├── EmptyTupleSourcePOperator.java │ │ │ │ ├── ExternalGroupByPOperator.java │ │ │ │ ├── HashPartitionExchangePOperator.java │ │ │ │ ├── HashPartitionMergeExchangePOperator.java │ │ │ │ ├── HybridHashJoinPOperator.java │ │ │ │ ├── InMemoryHashJoinPOperator.java │ │ │ │ ├── InMemoryStableSortPOperator.java │ │ │ │ ├── IndexBulkloadPOperator.java │ │ │ │ ├── IndexInsertDeleteUpsertPOperator.java │ │ │ │ ├── InsertDeleteUpsertPOperator.java │ │ │ │ ├── IntersectPOperator.java │ │ │ │ ├── MaterializePOperator.java │ │ │ │ ├── MicroPreclusteredGroupByPOperator.java │ │ │ │ ├── NLJoinPOperator.java │ │ │ │ ├── NestedTupleSourcePOperator.java │ │ │ │ ├── OneToOneExchangePOperator.java │ │ │ │ ├── PreSortedDistinctByPOperator.java │ │ │ │ ├── PreclusteredGroupByPOperator.java │ │ │ │ ├── RandomMergeExchangePOperator.java │ │ │ │ ├── RandomPartitionPOperator.java │ │ │ │ ├── RangePartitionMergePOperator.java │ │ │ │ ├── RangePartitionPOperator.java │ │ │ │ ├── ReplicatePOperator.java │ │ │ │ ├── RunningAggregatePOperator.java │ │ │ │ ├── SinkPOperator.java │ │ │ │ ├── SinkWritePOperator.java │ │ │ │ ├── SortGroupByPOperator.java │ │ │ │ ├── SortMergeExchangePOperator.java │ │ │ │ ├── StableSortPOperator.java │ │ │ │ ├── StreamLimitPOperator.java │ │ │ │ ├── StreamProjectPOperator.java │ │ │ │ ├── StreamSelectPOperator.java │ │ │ │ ├── StringStreamingScriptPOperator.java │ │ │ │ ├── SubplanPOperator.java │ │ │ │ ├── TokenizePOperator.java │ │ │ │ ├── UnionAllPOperator.java │ │ │ │ ├── UnnestPOperator.java │ │ │ │ └── WriteResultPOperator.java │ │ ├── plan │ │ │ └── ALogicalPlanImpl.java │ │ ├── prettyprint │ │ │ ├── LogicalExpressionPrettyPrintVisitor.java │ │ │ ├── LogicalOperatorPrettyPrintVisitor.java │ │ │ ├── PlanPlotter.java │ │ │ └── PlanPrettyPrinter.java │ │ ├── properties │ │ │ ├── AbstractGroupingProperty.java │ │ │ ├── BroadcastPartitioningProperty.java │ │ │ ├── DefaultNodeGroupDomain.java │ │ │ ├── FileSplitDomain.java │ │ │ ├── FilteredVariablePropagationPolicy.java │ │ │ ├── FunctionalDependency.java │ │ │ ├── ILocalStructuralProperty.java │ │ │ ├── ILogicalPropertiesVector.java │ │ │ ├── INodeDomain.java │ │ │ ├── IPartitioningProperty.java │ │ │ ├── IPartitioningRequirementsCoordinator.java │ │ │ ├── IPhysicalPropertiesVector.java │ │ │ ├── IPropertiesComputer.java │ │ │ ├── IStructuralProperty.java │ │ │ ├── LocalGroupingProperty.java │ │ │ ├── LocalOrderProperty.java │ │ │ ├── LogicalPropertiesVectorImpl.java │ │ │ ├── OrderColumn.java │ │ │ ├── OrderedPartitionedProperty.java │ │ │ ├── PhysicalRequirements.java │ │ │ ├── PropertiesUtil.java │ │ │ ├── RandomPartitioningProperty.java │ │ │ ├── ResultSetDomain.java │ │ │ ├── StructuralPropertiesVector.java │ │ │ ├── TypePropagationPolicy.java │ │ │ ├── UnorderedPartitionedProperty.java │ │ │ ├── UnpartitionedPropertyComputer.java │ │ │ └── VariablePropagationPolicy.java │ │ ├── scripting │ │ │ ├── IScriptDescription.java │ │ │ └── StringStreamingScriptDescription.java │ │ ├── typing │ │ │ ├── AbstractTypeEnvironment.java │ │ │ ├── ITypeEnvPointer.java │ │ │ ├── ITypingContext.java │ │ │ ├── NonPropagatingTypeEnvironment.java │ │ │ ├── OpRefTypeEnvPointer.java │ │ │ ├── PropagateOperatorInputsTypeEnvironment.java │ │ │ └── PropagatingTypeEnvironment.java │ │ ├── util │ │ │ ├── OperatorManipulationUtil.java │ │ │ └── OperatorPropertiesUtil.java │ │ └── visitors │ │ │ ├── AbstractConstVarFunVisitor.java │ │ │ ├── ILogicalExpressionReferenceTransform.java │ │ │ ├── ILogicalExpressionVisitor.java │ │ │ ├── ILogicalOperatorVisitor.java │ │ │ └── IQueryOperatorVisitor.java │ │ ├── config │ │ ├── AlgebricksConfig.java │ │ └── SysoutFormatter.java │ │ ├── jobgen │ │ └── impl │ │ │ ├── ConnectorPolicyAssignmentPolicy.java │ │ │ ├── JobBuilder.java │ │ │ ├── JobGenContext.java │ │ │ ├── JobGenHelper.java │ │ │ ├── OperatorSchemaImpl.java │ │ │ └── PlanCompiler.java │ │ ├── rewriter │ │ └── base │ │ │ ├── AbstractRuleController.java │ │ │ ├── AlgebricksOptimizationContext.java │ │ │ ├── HeuristicOptimizer.java │ │ │ ├── IAlgebraicRewriteRule.java │ │ │ ├── IOptimizationContextFactory.java │ │ │ └── PhysicalOptimizationConfig.java │ │ └── utils │ │ └── Substitution.java ├── algebricks-data │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── data │ │ ├── IAWriter.java │ │ ├── IAWriterFactory.java │ │ ├── IBinaryBooleanInspector.java │ │ ├── IBinaryBooleanInspectorFactory.java │ │ ├── IBinaryComparatorFactoryProvider.java │ │ ├── IBinaryHashFunctionFactoryProvider.java │ │ ├── IBinaryHashFunctionFamilyProvider.java │ │ ├── IBinaryIntegerInspector.java │ │ ├── IBinaryIntegerInspectorFactory.java │ │ ├── ILinearizeComparatorFactoryProvider.java │ │ ├── INormalizedKeyComputerFactoryProvider.java │ │ ├── IPrinter.java │ │ ├── IPrinterFactory.java │ │ ├── IPrinterFactoryProvider.java │ │ ├── IResultSerializerFactoryProvider.java │ │ ├── ISerializerDeserializerProvider.java │ │ ├── ITypeTraitProvider.java │ │ ├── impl │ │ ├── BinaryBooleanInspectorImpl.java │ │ ├── BinaryIntegerInspectorImpl.java │ │ ├── IntegerPrinterFactory.java │ │ ├── NoopNullWriterFactory.java │ │ └── UTF8StringPrinterFactory.java │ │ └── utils │ │ └── WriteValueTools.java ├── algebricks-examples │ ├── piglet-example │ │ ├── pom.xml │ │ ├── src │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── apache │ │ │ │ │ │ └── hyracks │ │ │ │ │ │ └── algebricks │ │ │ │ │ │ └── examples │ │ │ │ │ │ └── piglet │ │ │ │ │ │ ├── ast │ │ │ │ │ │ ├── ASTNode.java │ │ │ │ │ │ ├── AssignmentNode.java │ │ │ │ │ │ ├── DumpNode.java │ │ │ │ │ │ ├── ExpressionNode.java │ │ │ │ │ │ ├── FieldAccessExpressionNode.java │ │ │ │ │ │ ├── FilterNode.java │ │ │ │ │ │ ├── FunctionTag.java │ │ │ │ │ │ ├── LiteralExpressionNode.java │ │ │ │ │ │ ├── LoadNode.java │ │ │ │ │ │ ├── RelationNode.java │ │ │ │ │ │ └── ScalarFunctionExpressionNode.java │ │ │ │ │ │ ├── compiler │ │ │ │ │ │ ├── ConstantValue.java │ │ │ │ │ │ ├── PigletCompiler.java │ │ │ │ │ │ └── PigletPrinterFactoryProvider.java │ │ │ │ │ │ ├── exceptions │ │ │ │ │ │ └── PigletException.java │ │ │ │ │ │ ├── metadata │ │ │ │ │ │ ├── FileSplitUtils.java │ │ │ │ │ │ ├── PigletFileDataSink.java │ │ │ │ │ │ ├── PigletFileDataSource.java │ │ │ │ │ │ ├── PigletFunction.java │ │ │ │ │ │ └── PigletMetadataProvider.java │ │ │ │ │ │ ├── rewriter │ │ │ │ │ │ └── PigletRewriteRuleset.java │ │ │ │ │ │ ├── runtime │ │ │ │ │ │ ├── PigletExpressionJobGen.java │ │ │ │ │ │ └── functions │ │ │ │ │ │ │ ├── IPigletFunctionEvaluatorFactoryBuilder.java │ │ │ │ │ │ │ ├── IntegerEqFunctionEvaluatorFactory.java │ │ │ │ │ │ │ └── PigletFunctionRegistry.java │ │ │ │ │ │ └── types │ │ │ │ │ │ ├── BagType.java │ │ │ │ │ │ ├── CharArrayType.java │ │ │ │ │ │ ├── DoubleType.java │ │ │ │ │ │ ├── FloatType.java │ │ │ │ │ │ ├── IntegerType.java │ │ │ │ │ │ ├── LongType.java │ │ │ │ │ │ ├── MapType.java │ │ │ │ │ │ ├── Schema.java │ │ │ │ │ │ ├── TupleType.java │ │ │ │ │ │ └── Type.java │ │ │ │ └── javacc │ │ │ │ │ └── PigletParser.jj │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── algebricks │ │ │ │ └── examples │ │ │ │ └── piglet │ │ │ │ └── test │ │ │ │ ├── PigletTest.java │ │ │ │ └── PigletTestCase.java │ │ └── testcases │ │ │ ├── q1.piglet │ │ │ └── q2.piglet │ └── pom.xml ├── algebricks-rewriter │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── rewriter │ │ ├── rules │ │ ├── AbstractDecorrelationRule.java │ │ ├── AbstractExtractExprRule.java │ │ ├── AbstractIntroduceCombinerRule.java │ │ ├── AbstractIntroduceGroupByCombinerRule.java │ │ ├── BreakSelectIntoConjunctsRule.java │ │ ├── ComplexJoinInferenceRule.java │ │ ├── ComplexUnnestToProductRule.java │ │ ├── ConsolidateAssignsRule.java │ │ ├── ConsolidateSelectsRule.java │ │ ├── CopyLimitDownRule.java │ │ ├── EliminateGroupByEmptyKeyRule.java │ │ ├── EnforceOrderByAfterSubplan.java │ │ ├── EnforceStructuralPropertiesRule.java │ │ ├── ExtractCommonExpressionsRule.java │ │ ├── ExtractCommonOperatorsRule.java │ │ ├── ExtractFunctionsFromJoinConditionRule.java │ │ ├── ExtractGbyExpressionsRule.java │ │ ├── FactorRedundantGroupAndDecorVarsRule.java │ │ ├── InferTypesRule.java │ │ ├── InlineAssignIntoAggregateRule.java │ │ ├── InlineSingleReferenceVariablesRule.java │ │ ├── InlineVariablesRule.java │ │ ├── InsertProjectBeforeUnionRule.java │ │ ├── IntroJoinInsideSubplanRule.java │ │ ├── IntroduceAggregateCombinerRule.java │ │ ├── IntroduceGroupByCombinerRule.java │ │ ├── IntroduceProjectsRule.java │ │ ├── IsolateHyracksOperatorsRule.java │ │ ├── PullSelectOutOfEqJoin.java │ │ ├── PushAssignBelowUnionAllRule.java │ │ ├── PushAssignDownThroughProductRule.java │ │ ├── PushFunctionsBelowJoin.java │ │ ├── PushGroupByIntoSortRule.java │ │ ├── PushMapOperatorDownThroughProductRule.java │ │ ├── PushNestedOrderByUnderPreSortedGroupByRule.java │ │ ├── PushProjectDownRule.java │ │ ├── PushProjectIntoDataSourceScanRule.java │ │ ├── PushSelectDownRule.java │ │ ├── PushSelectIntoJoinRule.java │ │ ├── PushSortDownRule.java │ │ ├── PushSubplanWithAggregateDownThroughProductRule.java │ │ ├── PushUnnestDownThroughProductRule.java │ │ ├── PushUnnestDownThroughUnionRule.java │ │ ├── ReinferAllTypesRule.java │ │ ├── RemoveCartesianProductWithEmptyBranchRule.java │ │ ├── RemoveRedundantGroupByDecorVars.java │ │ ├── RemoveRedundantProjectionRule.java │ │ ├── RemoveRedundantVariablesRule.java │ │ ├── RemoveUnnecessarySortMergeExchange.java │ │ ├── RemoveUnusedAssignAndAggregateRule.java │ │ ├── SetAlgebricksPhysicalOperatorsRule.java │ │ ├── SetExecutionModeRule.java │ │ ├── SimpleUnnestToProductRule.java │ │ └── subplan │ │ │ ├── EliminateSubplanRule.java │ │ │ ├── EliminateSubplanWithInputCardinalityOneRule.java │ │ │ ├── IntroduceGroupByForSubplanRule.java │ │ │ ├── IntroduceLeftOuterJoinForSubplanRule.java │ │ │ ├── MoveFreeVariableOperatorOutOfSubplanRule.java │ │ │ ├── NestedSubplanToJoinRule.java │ │ │ ├── PushSubplanIntoGroupByRule.java │ │ │ ├── ReplaceNtsWithSubplanInputOperatorVisitor.java │ │ │ └── SubplanOutOfGroupRule.java │ │ └── util │ │ ├── JoinUtils.java │ │ └── PhysicalOptimizationsUtil.java ├── algebricks-runtime │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── algebricks │ │ └── runtime │ │ ├── aggregators │ │ ├── TupleCountAggregateFunctionFactory.java │ │ └── TupleCountRunningAggregateFunctionFactory.java │ │ ├── base │ │ ├── AlgebricksPipeline.java │ │ ├── IAggregateEvaluator.java │ │ ├── IAggregateEvaluatorFactory.java │ │ ├── IPushRuntime.java │ │ ├── IPushRuntimeFactory.java │ │ ├── IRunningAggregateEvaluator.java │ │ ├── IRunningAggregateEvaluatorFactory.java │ │ ├── IScalarEvaluator.java │ │ ├── IScalarEvaluatorFactory.java │ │ ├── ISerializedAggregateEvaluator.java │ │ ├── ISerializedAggregateEvaluatorFactory.java │ │ ├── IUnnestingEvaluator.java │ │ ├── IUnnestingEvaluatorFactory.java │ │ └── IUnnestingPositionWriter.java │ │ ├── evaluators │ │ ├── ColumnAccessEvalFactory.java │ │ ├── ConstantEvalFactory.java │ │ └── TupleFieldEvaluatorFactory.java │ │ ├── operators │ │ ├── aggreg │ │ │ ├── AggregateRuntimeFactory.java │ │ │ ├── NestedPlansAccumulatingAggregatorFactory.java │ │ │ ├── NestedPlansRunningAggregatorFactory.java │ │ │ ├── SerializableAggregatorDescriptorFactory.java │ │ │ └── SimpleAlgebricksAccumulatingAggregatorFactory.java │ │ ├── base │ │ │ ├── AbstractOneInputOneOutputOneFieldFramePushRuntime.java │ │ │ ├── AbstractOneInputOneOutputOneFramePushRuntime.java │ │ │ ├── AbstractOneInputOneOutputPushRuntime.java │ │ │ ├── AbstractOneInputOneOutputRuntimeFactory.java │ │ │ ├── AbstractOneInputPushRuntime.java │ │ │ ├── AbstractOneInputSinkPushRuntime.java │ │ │ ├── AbstractOneInputSourcePushRuntime.java │ │ │ └── SinkRuntimeFactory.java │ │ ├── group │ │ │ └── MicroPreClusteredGroupRuntimeFactory.java │ │ ├── meta │ │ │ ├── AlgebricksMetaOperatorDescriptor.java │ │ │ ├── PipelineAssembler.java │ │ │ └── SubplanRuntimeFactory.java │ │ ├── sort │ │ │ └── InMemorySortRuntimeFactory.java │ │ └── std │ │ │ ├── AssignRuntimeFactory.java │ │ │ ├── EmptyTupleSourceRuntimeFactory.java │ │ │ ├── NestedTupleSourceRuntimeFactory.java │ │ │ ├── PartitioningSplitOperatorDescriptor.java │ │ │ ├── PrinterRuntimeFactory.java │ │ │ ├── RunningAggregateRuntimeFactory.java │ │ │ ├── SinkWriterRuntime.java │ │ │ ├── SinkWriterRuntimeFactory.java │ │ │ ├── StreamLimitRuntimeFactory.java │ │ │ ├── StreamProjectRuntimeFactory.java │ │ │ ├── StreamSelectRuntimeFactory.java │ │ │ ├── StringStreamingRuntimeFactory.java │ │ │ └── UnnestRuntimeFactory.java │ │ ├── serializer │ │ └── ResultSerializerFactoryProvider.java │ │ └── writers │ │ ├── PrinterBasedWriterFactory.java │ │ └── SerializedDataWriterFactory.java ├── algebricks-tests │ ├── build-script.xml │ ├── data │ │ ├── simple │ │ │ ├── int-part1.tbl │ │ │ └── int-part2.tbl │ │ └── tpch0.001 │ │ │ ├── customer-part1.tbl │ │ │ ├── customer-part2.tbl │ │ │ ├── customer.tbl │ │ │ ├── lineitem.tbl │ │ │ ├── nation.tbl │ │ │ ├── orders-part1.tbl │ │ │ ├── orders-part2.tbl │ │ │ ├── orders.tbl │ │ │ ├── part.tbl │ │ │ ├── partsupp.tbl │ │ │ ├── region.tbl │ │ │ ├── supplier.tbl │ │ │ └── tpch.ddl │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── algebricks │ │ │ │ └── tests │ │ │ │ ├── pushruntime │ │ │ │ ├── IntArrayUnnester.java │ │ │ │ ├── IntegerAddEvalFactory.java │ │ │ │ ├── IntegerConstantEvalFactory.java │ │ │ │ ├── IntegerEqualsEvalFactory.java │ │ │ │ └── IntegerGreaterThanEvalFactory.java │ │ │ │ └── script │ │ │ │ └── IdentityStreamingScript.java │ │ └── scripts │ │ │ ├── run.cmd │ │ │ └── run.sh │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── algebricks │ │ │ └── tests │ │ │ ├── pushruntime │ │ │ └── PushRuntimeTest.java │ │ │ ├── tools │ │ │ └── WriteValueTest.java │ │ │ └── util │ │ │ └── AlgebricksHyracksIntegrationUtil.java │ │ └── resources │ │ └── results │ │ └── scanMicroSortWrite.out └── pom.xml ├── hyracks ├── hyracks-api │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── api │ │ ├── application │ │ ├── IApplicationContext.java │ │ ├── ICCApplicationContext.java │ │ ├── ICCApplicationEntryPoint.java │ │ ├── IClusterLifecycleListener.java │ │ ├── INCApplicationContext.java │ │ ├── INCApplicationEntryPoint.java │ │ └── IStateDumpHandler.java │ │ ├── channels │ │ ├── IInputChannel.java │ │ └── IInputChannelMonitor.java │ │ ├── client │ │ ├── ClusterControllerInfo.java │ │ ├── HyracksClientInterfaceFunctions.java │ │ ├── HyracksClientInterfaceRemoteProxy.java │ │ ├── HyracksConnection.java │ │ ├── IHyracksClientConnection.java │ │ ├── IHyracksClientInterface.java │ │ ├── NodeControllerInfo.java │ │ ├── NodeStatus.java │ │ └── impl │ │ │ ├── ActivityClusterGraphBuilder.java │ │ │ ├── IConnectorDescriptorVisitor.java │ │ │ ├── IOperatorDescriptorVisitor.java │ │ │ ├── JobActivityGraphBuilder.java │ │ │ ├── JobSpecificationActivityClusterGraphGeneratorFactory.java │ │ │ └── PlanUtils.java │ │ ├── comm │ │ ├── FixedSizeFrame.java │ │ ├── FrameConstants.java │ │ ├── FrameHelper.java │ │ ├── IFrame.java │ │ ├── IFrameAppender.java │ │ ├── IFrameFieldAppender.java │ │ ├── IFrameReader.java │ │ ├── IFrameTupleAccessor.java │ │ ├── IFrameTupleAppender.java │ │ ├── IFrameWriter.java │ │ ├── IPartitionCollector.java │ │ ├── IPartitionWriterFactory.java │ │ ├── NetworkAddress.java │ │ ├── NoShrinkVSizeFrame.java │ │ ├── PartitionChannel.java │ │ └── VSizeFrame.java │ │ ├── constraints │ │ ├── Constraint.java │ │ ├── IConstraintAcceptor.java │ │ ├── PartitionConstraintHelper.java │ │ └── expressions │ │ │ ├── ConstantExpression.java │ │ │ ├── ConstraintExpression.java │ │ │ ├── LValueConstraintExpression.java │ │ │ ├── PartitionCountExpression.java │ │ │ └── PartitionLocationExpression.java │ │ ├── context │ │ ├── ICCContext.java │ │ ├── IHyracksCommonContext.java │ │ ├── IHyracksFrameMgrContext.java │ │ ├── IHyracksJobletContext.java │ │ ├── IHyracksRootContext.java │ │ └── IHyracksTaskContext.java │ │ ├── dataflow │ │ ├── ActivityId.java │ │ ├── ConnectorDescriptorId.java │ │ ├── IActivity.java │ │ ├── IActivityGraphBuilder.java │ │ ├── IConnectorDescriptor.java │ │ ├── IDataReader.java │ │ ├── IDataWriter.java │ │ ├── IOpenableDataReader.java │ │ ├── IOpenableDataWriter.java │ │ ├── IOperatorDescriptor.java │ │ ├── IOperatorNodePullable.java │ │ ├── IOperatorNodePushable.java │ │ ├── OperatorDescriptorId.java │ │ ├── OperatorInstanceId.java │ │ ├── TaskAttemptId.java │ │ ├── TaskId.java │ │ ├── connectors │ │ │ ├── ConnectorPolicyFactory.java │ │ │ ├── IConnectorPolicy.java │ │ │ ├── IConnectorPolicyAssignmentPolicy.java │ │ │ ├── PipeliningConnectorPolicy.java │ │ │ ├── SendSideMaterializedBlockingConnectorPolicy.java │ │ │ ├── SendSideMaterializedPipeliningConnectorPolicy.java │ │ │ ├── SendSideMaterializedReceiveSideMaterializedBlockingConnectorPolicy.java │ │ │ ├── SendSideMaterializedReceiveSideMaterializedPipeliningConnectorPolicy.java │ │ │ └── SendSidePipeliningReceiveSideMaterializedBlockingConnectorPolicy.java │ │ ├── state │ │ │ └── IStateObject.java │ │ └── value │ │ │ ├── BinaryComparatorConstant.java │ │ │ ├── IBinaryComparator.java │ │ │ ├── IBinaryComparatorFactory.java │ │ │ ├── IBinaryHashFunction.java │ │ │ ├── IBinaryHashFunctionFactory.java │ │ │ ├── IBinaryHashFunctionFamily.java │ │ │ ├── IComparator.java │ │ │ ├── IComparatorFactory.java │ │ │ ├── IHashFunction.java │ │ │ ├── IHashFunctionFactory.java │ │ │ ├── ILinearizeComparator.java │ │ │ ├── ILinearizeComparatorFactory.java │ │ │ ├── INormalizedKeyComputer.java │ │ │ ├── INormalizedKeyComputerFactory.java │ │ │ ├── INullWriter.java │ │ │ ├── INullWriterFactory.java │ │ │ ├── IPredicateEvaluator.java │ │ │ ├── IPredicateEvaluatorFactory.java │ │ │ ├── IPredicateEvaluatorFactoryProvider.java │ │ │ ├── IRecordDescriptorProvider.java │ │ │ ├── IResultSerializer.java │ │ │ ├── IResultSerializerFactory.java │ │ │ ├── ISerializerDeserializer.java │ │ │ ├── ITuplePairComparator.java │ │ │ ├── ITuplePairComparatorFactory.java │ │ │ ├── ITuplePartitionComputer.java │ │ │ ├── ITuplePartitionComputerFactory.java │ │ │ ├── ITuplePartitionComputerFamily.java │ │ │ ├── ITypeTraits.java │ │ │ ├── JSONSerializable.java │ │ │ └── RecordDescriptor.java │ │ ├── dataset │ │ ├── DatasetDirectoryRecord.java │ │ ├── DatasetJobRecord.java │ │ ├── IDatasetInputChannelMonitor.java │ │ ├── IDatasetManager.java │ │ ├── IDatasetPartitionManager.java │ │ ├── IDatasetStateRecord.java │ │ ├── IHyracksDataset.java │ │ ├── IHyracksDatasetDirectoryServiceConnection.java │ │ ├── IHyracksDatasetDirectoryServiceInterface.java │ │ ├── IHyracksDatasetReader.java │ │ ├── ResultSetId.java │ │ └── ResultSetMetaData.java │ │ ├── deployment │ │ └── DeploymentId.java │ │ ├── exceptions │ │ ├── HyracksDataException.java │ │ └── HyracksException.java │ │ ├── io │ │ ├── FileReference.java │ │ ├── IFileHandle.java │ │ ├── IIOFuture.java │ │ ├── IIOManager.java │ │ ├── IODeviceHandle.java │ │ ├── IWorkspaceFileFactory.java │ │ └── IWritable.java │ │ ├── job │ │ ├── ActivityCluster.java │ │ ├── ActivityClusterGraph.java │ │ ├── ActivityClusterId.java │ │ ├── IActivityClusterGraphGenerator.java │ │ ├── IActivityClusterGraphGeneratorFactory.java │ │ ├── IConnectorDescriptorRegistry.java │ │ ├── IGlobalJobDataFactory.java │ │ ├── IJobLifecycleListener.java │ │ ├── IJobSerializerDeserializer.java │ │ ├── IJobSerializerDeserializerContainer.java │ │ ├── IJobletEventListener.java │ │ ├── IJobletEventListenerFactory.java │ │ ├── IOperatorDescriptorRegistry.java │ │ ├── IOperatorEnvironment.java │ │ ├── JobActivityGraph.java │ │ ├── JobFlag.java │ │ ├── JobId.java │ │ ├── JobInfo.java │ │ ├── JobSerializerDeserializer.java │ │ ├── JobSerializerDeserializerContainer.java │ │ ├── JobSpecification.java │ │ ├── JobStatus.java │ │ └── profiling │ │ │ └── counters │ │ │ ├── ICounter.java │ │ │ └── ICounterContext.java │ │ ├── lifecycle │ │ ├── ILifeCycleComponent.java │ │ ├── ILifeCycleComponentManager.java │ │ └── LifeCycleComponentManager.java │ │ ├── messages │ │ ├── IMessage.java │ │ └── IMessageBroker.java │ │ ├── partitions │ │ ├── IPartition.java │ │ ├── PartitionId.java │ │ └── ResultSetPartitionId.java │ │ ├── replication │ │ ├── IIOReplicationManager.java │ │ ├── IReplicationJob.java │ │ └── impl │ │ │ └── AbstractReplicationJob.java │ │ ├── resources │ │ ├── IDeallocatable.java │ │ ├── IDeallocatableRegistry.java │ │ └── memory │ │ │ └── IMemoryManager.java │ │ ├── rewriter │ │ ├── ActivityClusterGraphRewriter.java │ │ ├── OneToOneConnectedActivityCluster.java │ │ └── runtime │ │ │ ├── SuperActivity.java │ │ │ └── SuperActivityOperatorNodePushable.java │ │ ├── service │ │ └── IControllerService.java │ │ ├── topology │ │ ├── ClusterTopology.java │ │ ├── NetworkEndpoint.java │ │ ├── NetworkSwitch.java │ │ ├── NetworkTerminal.java │ │ └── TopologyDefinitionParser.java │ │ └── util │ │ ├── ExecutionTimeProfiler.java │ │ ├── ExecutionTimeStopWatch.java │ │ ├── ExperimentProfiler.java │ │ ├── ExperimentProfilerUtils.java │ │ ├── JavaSerializationUtils.java │ │ ├── OperatorExecutionTimeProfiler.java │ │ ├── SpatialIndexProfiler.java │ │ └── StopWatch.java ├── hyracks-client │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── client │ │ │ ├── dataset │ │ │ ├── DatasetClientContext.java │ │ │ ├── HyracksDataset.java │ │ │ ├── HyracksDatasetDirectoryServiceConnection.java │ │ │ ├── HyracksDatasetDirectoryServiceInterfaceRemoteProxy.java │ │ │ └── HyracksDatasetReader.java │ │ │ ├── net │ │ │ └── ClientNetworkManager.java │ │ │ └── stats │ │ │ ├── AggregateCounter.java │ │ │ ├── Counters.java │ │ │ ├── IClusterCounterContext.java │ │ │ └── impl │ │ │ └── ClientCounterContext.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── client │ │ └── stats │ │ ├── ClientCounterContextTest.java │ │ └── HyracksUtils.java ├── hyracks-comm │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── comm │ │ └── channels │ │ ├── DatasetNetworkInputChannel.java │ │ ├── IChannelConnectionFactory.java │ │ ├── NetworkInputChannel.java │ │ ├── NetworkOutputChannel.java │ │ └── ReadBufferFactory.java ├── hyracks-control │ ├── hyracks-control-cc │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── appended-resources │ │ │ └── META-INF │ │ │ │ └── LICENSE │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── control │ │ │ │ └── cc │ │ │ │ ├── CCDriver.java │ │ │ │ ├── ClusterControllerService.java │ │ │ │ ├── NodeControllerState.java │ │ │ │ ├── adminconsole │ │ │ │ ├── HyracksAdminConsoleApplication.java │ │ │ │ └── pages │ │ │ │ │ ├── AbstractPage.java │ │ │ │ │ ├── IndexPage.java │ │ │ │ │ ├── JobDetailsPage.java │ │ │ │ │ └── NodeDetailsPage.java │ │ │ │ ├── application │ │ │ │ └── CCApplicationContext.java │ │ │ │ ├── dataset │ │ │ │ ├── DatasetDirectoryService.java │ │ │ │ └── IDatasetDirectoryService.java │ │ │ │ ├── job │ │ │ │ ├── ActivityClusterPlan.java │ │ │ │ ├── ActivityPlan.java │ │ │ │ ├── IJobStatusConditionVariable.java │ │ │ │ ├── JobRun.java │ │ │ │ ├── Task.java │ │ │ │ ├── TaskAttempt.java │ │ │ │ ├── TaskCluster.java │ │ │ │ ├── TaskClusterAttempt.java │ │ │ │ └── TaskClusterId.java │ │ │ │ ├── partitions │ │ │ │ ├── PartitionMatchMaker.java │ │ │ │ └── PartitionUtils.java │ │ │ │ ├── scheduler │ │ │ │ ├── ActivityClusterPlanner.java │ │ │ │ ├── ActivityPartitionDetails.java │ │ │ │ ├── JobScheduler.java │ │ │ │ ├── PartitionConstraintSolver.java │ │ │ │ ├── RankedRunnableTaskCluster.java │ │ │ │ └── Runnability.java │ │ │ │ ├── web │ │ │ │ ├── ApplicationInstallationHandler.java │ │ │ │ ├── JobsRESTAPIFunction.java │ │ │ │ ├── NodesRESTAPIFunction.java │ │ │ │ ├── StateDumpRESTAPIFunction.java │ │ │ │ ├── WebServer.java │ │ │ │ └── util │ │ │ │ │ ├── IJSONOutputFunction.java │ │ │ │ │ ├── JSONOutputRequestHandler.java │ │ │ │ │ ├── JSONUtils.java │ │ │ │ │ └── RoutingHandler.java │ │ │ │ └── work │ │ │ │ ├── AbstractHeartbeatWork.java │ │ │ │ ├── AbstractTaskLifecycleWork.java │ │ │ │ ├── ApplicationMessageWork.java │ │ │ │ ├── CliDeployBinaryWork.java │ │ │ │ ├── CliUnDeployBinaryWork.java │ │ │ │ ├── ClusterShutdownWork.java │ │ │ │ ├── GatherStateDumpsWork.java │ │ │ │ ├── GetActivityClusterGraphJSONWork.java │ │ │ │ ├── GetDatasetDirectoryServiceInfoWork.java │ │ │ │ ├── GetIpAddressNodeNameMapWork.java │ │ │ │ ├── GetJobInfoWork.java │ │ │ │ ├── GetJobRunJSONWork.java │ │ │ │ ├── GetJobStatusWork.java │ │ │ │ ├── GetJobSummariesJSONWork.java │ │ │ │ ├── GetNodeControllersInfoWork.java │ │ │ │ ├── GetNodeDetailsJSONWork.java │ │ │ │ ├── GetNodeSummariesJSONWork.java │ │ │ │ ├── GetResultPartitionLocationsWork.java │ │ │ │ ├── GetResultStatusWork.java │ │ │ │ ├── JobCleanupWork.java │ │ │ │ ├── JobStartWork.java │ │ │ │ ├── JobletCleanupNotificationWork.java │ │ │ │ ├── NodeHeartbeatWork.java │ │ │ │ ├── NotifyDeployBinaryWork.java │ │ │ │ ├── NotifyShutdownWork.java │ │ │ │ ├── NotifyStateDumpResponse.java │ │ │ │ ├── RegisterNodeWork.java │ │ │ │ ├── RegisterPartitionAvailibilityWork.java │ │ │ │ ├── RegisterPartitionRequestWork.java │ │ │ │ ├── RegisterResultPartitionLocationWork.java │ │ │ │ ├── RemoveDeadNodesWork.java │ │ │ │ ├── ReportProfilesWork.java │ │ │ │ ├── ReportResultPartitionFailureWork.java │ │ │ │ ├── ReportResultPartitionWriteCompletionWork.java │ │ │ │ ├── TaskCompleteWork.java │ │ │ │ ├── TaskFailureWork.java │ │ │ │ ├── UnregisterNodeWork.java │ │ │ │ └── WaitForJobCompletionWork.java │ │ │ └── resources │ │ │ ├── org │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── control │ │ │ │ └── cc │ │ │ │ └── adminconsole │ │ │ │ └── pages │ │ │ │ ├── AbstractPage.html │ │ │ │ ├── IndexPage.html │ │ │ │ ├── JobDetailsPage.html │ │ │ │ └── NodeDetailsPage.html │ │ │ └── static │ │ │ ├── javascript │ │ │ ├── adminconsole │ │ │ │ ├── Graphs.js │ │ │ │ ├── JobDetailsPage.js │ │ │ │ └── NodeDetailsPage.js │ │ │ ├── flot │ │ │ │ ├── excanvas.min.js │ │ │ │ ├── jquery.colorhelpers.min.js │ │ │ │ ├── jquery.flot.crosshair.min.js │ │ │ │ ├── jquery.flot.fillbetween.min.js │ │ │ │ ├── jquery.flot.image.min.js │ │ │ │ ├── jquery.flot.min.js │ │ │ │ ├── jquery.flot.navigate.min.js │ │ │ │ ├── jquery.flot.pie.min.js │ │ │ │ ├── jquery.flot.resize.min.js │ │ │ │ ├── jquery.flot.selection.min.js │ │ │ │ ├── jquery.flot.stack.min.js │ │ │ │ ├── jquery.flot.symbol.min.js │ │ │ │ └── jquery.flot.threshold.min.js │ │ │ ├── jquery │ │ │ │ ├── jquery.min.js │ │ │ │ └── plugins │ │ │ │ │ ├── jquery-ui.min.js │ │ │ │ │ ├── jquery.getParams.js │ │ │ │ │ └── jquery.timer.js │ │ │ └── jsplumb │ │ │ │ └── jquery.jsPlumb-1.3.5-all-min.js │ │ │ └── stylesheet │ │ │ ├── adminconsole.css │ │ │ └── jquery-ui │ │ │ └── themes │ │ │ └── base │ │ │ └── jquery-ui.css │ ├── hyracks-control-common │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── control │ │ │ └── common │ │ │ ├── application │ │ │ ├── ApplicationContext.java │ │ │ └── ApplicationStatus.java │ │ │ ├── base │ │ │ ├── IClusterController.java │ │ │ └── INodeController.java │ │ │ ├── context │ │ │ └── ServerContext.java │ │ │ ├── controllers │ │ │ ├── CCConfig.java │ │ │ ├── NCConfig.java │ │ │ ├── NodeParameters.java │ │ │ └── NodeRegistration.java │ │ │ ├── dataset │ │ │ └── ResultStateSweeper.java │ │ │ ├── deployment │ │ │ ├── ClassLoaderJobSerializerDeserializer.java │ │ │ ├── DeploymentRun.java │ │ │ ├── DeploymentStatus.java │ │ │ ├── DeploymentUtils.java │ │ │ └── IDeploymentStatusConditionVariable.java │ │ │ ├── heartbeat │ │ │ ├── HeartbeatData.java │ │ │ └── HeartbeatSchema.java │ │ │ ├── ipc │ │ │ ├── CCNCFunctions.java │ │ │ ├── ClusterControllerRemoteProxy.java │ │ │ └── NodeControllerRemoteProxy.java │ │ │ ├── job │ │ │ ├── PartitionDescriptor.java │ │ │ ├── PartitionRequest.java │ │ │ ├── PartitionState.java │ │ │ ├── TaskAttemptDescriptor.java │ │ │ └── profiling │ │ │ │ ├── counters │ │ │ │ ├── Counter.java │ │ │ │ └── MultiResolutionEventProfiler.java │ │ │ │ └── om │ │ │ │ ├── AbstractProfile.java │ │ │ │ ├── JobProfile.java │ │ │ │ ├── JobletProfile.java │ │ │ │ ├── PartitionProfile.java │ │ │ │ └── TaskProfile.java │ │ │ ├── logs │ │ │ └── LogFile.java │ │ │ ├── shutdown │ │ │ ├── IShutdownStatusConditionVariable.java │ │ │ └── ShutdownRun.java │ │ │ ├── utils │ │ │ └── ExceptionUtils.java │ │ │ └── work │ │ │ ├── AbstractWork.java │ │ │ ├── FutureValue.java │ │ │ ├── IPCResponder.java │ │ │ ├── IResultCallback.java │ │ │ ├── SynchronizableWork.java │ │ │ └── WorkQueue.java │ ├── hyracks-control-nc │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── control │ │ │ └── nc │ │ │ ├── Joblet.java │ │ │ ├── NCDriver.java │ │ │ ├── NodeControllerService.java │ │ │ ├── Task.java │ │ │ ├── application │ │ │ └── NCApplicationContext.java │ │ │ ├── dataset │ │ │ ├── DatasetMemoryManager.java │ │ │ ├── DatasetPartitionManager.java │ │ │ ├── DatasetPartitionReader.java │ │ │ ├── DatasetPartitionWriter.java │ │ │ ├── Page.java │ │ │ └── ResultState.java │ │ │ ├── io │ │ │ ├── FileHandle.java │ │ │ ├── IOManager.java │ │ │ ├── WorkspaceFileFactory.java │ │ │ └── profiling │ │ │ │ ├── IIOCounter.java │ │ │ │ ├── IOCounterDefault.java │ │ │ │ ├── IOCounterFactory.java │ │ │ │ ├── IOCounterLinux.java │ │ │ │ └── IOCounterOSX.java │ │ │ ├── net │ │ │ ├── DatasetNetworkManager.java │ │ │ └── NetworkManager.java │ │ │ ├── partitions │ │ │ ├── MaterializedPartition.java │ │ │ ├── MaterializedPartitionInputChannel.java │ │ │ ├── MaterializedPartitionWriter.java │ │ │ ├── MaterializingPipelinedPartition.java │ │ │ ├── PartitionManager.java │ │ │ ├── PipelinedPartition.java │ │ │ └── ReceiveSideMaterializingCollector.java │ │ │ ├── profiling │ │ │ ├── ConnectorReceiverProfilingFrameReader.java │ │ │ ├── ConnectorSenderProfilingFrameWriter.java │ │ │ └── ProfilingPartitionWriterFactory.java │ │ │ ├── resources │ │ │ ├── DefaultDeallocatableRegistry.java │ │ │ └── memory │ │ │ │ ├── FrameManager.java │ │ │ │ └── MemoryManager.java │ │ │ ├── runtime │ │ │ └── RootHyracksContext.java │ │ │ └── work │ │ │ ├── AbortTasksWork.java │ │ │ ├── ApplicationMessageWork.java │ │ │ ├── BuildJobProfilesWork.java │ │ │ ├── CleanupJobletWork.java │ │ │ ├── DeployBinaryWork.java │ │ │ ├── NotifyTaskCompleteWork.java │ │ │ ├── NotifyTaskFailureWork.java │ │ │ ├── ReportPartitionAvailabilityWork.java │ │ │ ├── ShutdownWork.java │ │ │ ├── StartTasksWork.java │ │ │ ├── StateDumpWork.java │ │ │ └── UnDeployBinaryWork.java │ └── pom.xml ├── hyracks-data │ ├── hyracks-data-std │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── data │ │ │ │ └── std │ │ │ │ ├── accessors │ │ │ │ ├── MurmurHash3BinaryHash.java │ │ │ │ ├── MurmurHash3BinaryHashFunctionFamily.java │ │ │ │ ├── PointableBinaryComparatorFactory.java │ │ │ │ ├── PointableBinaryHashFunctionFactory.java │ │ │ │ └── UTF8StringBinaryHashFunctionFamily.java │ │ │ │ ├── algorithms │ │ │ │ └── BinarySearchAlgorithm.java │ │ │ │ ├── api │ │ │ │ ├── AbstractPointable.java │ │ │ │ ├── IComparable.java │ │ │ │ ├── IDataOutputProvider.java │ │ │ │ ├── IHashable.java │ │ │ │ ├── IMutableValueStorage.java │ │ │ │ ├── INumeric.java │ │ │ │ ├── IPointable.java │ │ │ │ ├── IPointableFactory.java │ │ │ │ └── IValueReference.java │ │ │ │ ├── collections │ │ │ │ └── api │ │ │ │ │ └── IValueReferenceVector.java │ │ │ │ ├── primitive │ │ │ │ ├── BooleanPointable.java │ │ │ │ ├── ByteArrayPointable.java │ │ │ │ ├── BytePointable.java │ │ │ │ ├── DoublePointable.java │ │ │ │ ├── FloatPointable.java │ │ │ │ ├── IntegerPointable.java │ │ │ │ ├── LongPointable.java │ │ │ │ ├── RawUTF8StringPointable.java │ │ │ │ ├── ShortPointable.java │ │ │ │ ├── UTF8StringLowercasePointable.java │ │ │ │ ├── UTF8StringPointable.java │ │ │ │ └── VoidPointable.java │ │ │ │ └── util │ │ │ │ ├── AbstractVarLenObjectBuilder.java │ │ │ │ ├── ArrayBackedValueStorage.java │ │ │ │ ├── ByteArrayAccessibleOutputStream.java │ │ │ │ ├── ByteArrayBuilder.java │ │ │ │ ├── GrowableArray.java │ │ │ │ ├── ICharIterator.java │ │ │ │ ├── RewindableDataOutputStream.java │ │ │ │ ├── UTF8CharSequence.java │ │ │ │ ├── UTF8StringBuilder.java │ │ │ │ └── UTF8StringCharacterIterator.java │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── data │ │ │ └── std │ │ │ ├── primitive │ │ │ ├── ByteArrayPointableTest.java │ │ │ └── UTF8StringPointableTest.java │ │ │ └── util │ │ │ ├── UTF8StringBuilderTest.java │ │ │ └── UTF8StringCharacterIteratorTest.java │ └── pom.xml ├── hyracks-dataflow-common │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── dataflow │ │ │ └── common │ │ │ ├── comm │ │ │ ├── io │ │ │ │ ├── AbstractFrameAppender.java │ │ │ │ ├── ArrayTupleBuilder.java │ │ │ │ ├── ArrayTupleReference.java │ │ │ │ ├── FixedSizeFrameTupleAppender.java │ │ │ │ ├── FrameDeserializer.java │ │ │ │ ├── FrameDeserializingDataReader.java │ │ │ │ ├── FrameDeserializingDataWriter.java │ │ │ │ ├── FrameFixedFieldAppender.java │ │ │ │ ├── FrameFixedFieldTupleAppender.java │ │ │ │ ├── FrameOutputStream.java │ │ │ │ ├── FrameTupleAccessor.java │ │ │ │ ├── FrameTupleAppender.java │ │ │ │ ├── FrameTupleAppenderAccessor.java │ │ │ │ ├── FrameTupleAppenderWrapper.java │ │ │ │ ├── ResultFrameTupleAccessor.java │ │ │ │ └── SerializingDataWriter.java │ │ │ └── util │ │ │ │ ├── ByteBufferInputStream.java │ │ │ │ └── FrameUtils.java │ │ │ ├── data │ │ │ ├── accessors │ │ │ │ ├── FrameTupleFieldValueReference.java │ │ │ │ ├── FrameTupleReference.java │ │ │ │ ├── IFrameTupleReference.java │ │ │ │ └── ITupleReference.java │ │ │ ├── marshalling │ │ │ │ ├── BooleanSerializerDeserializer.java │ │ │ │ ├── ByteArraySerializerDeserializer.java │ │ │ │ ├── DoubleSerializerDeserializer.java │ │ │ │ ├── FloatSerializerDeserializer.java │ │ │ │ ├── IntArraySerializerDeserializer.java │ │ │ │ ├── Integer64SerializerDeserializer.java │ │ │ │ ├── IntegerSerializerDeserializer.java │ │ │ │ ├── ShortSerializerDeserializer.java │ │ │ │ └── UTF8StringSerializerDeserializer.java │ │ │ ├── normalizers │ │ │ │ ├── ByteArrayNormalizedKeyComputerFactory.java │ │ │ │ ├── DoubleNormalizedKeyComputerFactory.java │ │ │ │ ├── FloatNormalizedKeyComputerFactory.java │ │ │ │ ├── Integer64NormalizedKeyComputerFactory.java │ │ │ │ ├── IntegerNormalizedKeyComputerFactory.java │ │ │ │ └── UTF8StringNormalizedKeyComputerFactory.java │ │ │ ├── parsers │ │ │ │ ├── ByteArrayBase64ParserFactory.java │ │ │ │ ├── ByteArrayHexParserFactory.java │ │ │ │ ├── DoubleParserFactory.java │ │ │ │ ├── FloatParserFactory.java │ │ │ │ ├── IValueParser.java │ │ │ │ ├── IValueParserFactory.java │ │ │ │ ├── IntegerParserFactory.java │ │ │ │ ├── LongParserFactory.java │ │ │ │ └── UTF8StringParserFactory.java │ │ │ └── partition │ │ │ │ ├── FieldHashPartitionComputerFactory.java │ │ │ │ ├── FieldHashPartitionComputerFamily.java │ │ │ │ ├── RandomPartitionComputerFactory.java │ │ │ │ ├── RepartitionComputerFactory.java │ │ │ │ ├── RepartitionComputerFamily.java │ │ │ │ └── range │ │ │ │ ├── FieldRangePartitionComputerFactory.java │ │ │ │ ├── IRangeMap.java │ │ │ │ └── RangeMap.java │ │ │ ├── io │ │ │ ├── GeneratedRunFileReader.java │ │ │ ├── MessagingFrameTupleAppender.java │ │ │ ├── RunFileReader.java │ │ │ └── RunFileWriter.java │ │ │ └── util │ │ │ ├── IntSerDeUtils.java │ │ │ ├── ReflectionUtils.java │ │ │ ├── SerdeUtils.java │ │ │ └── TupleUtils.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── dataflow │ │ └── common │ │ ├── comm │ │ └── io │ │ │ └── largeobject │ │ │ └── FrameFixedFieldTupleAppenderTest.java │ │ └── data │ │ ├── marshalling │ │ └── ByteArraySerializerDeserializerTest.java │ │ ├── normalizers │ │ └── ByteArrayNormalizedKeyComputerFactoryTest.java │ │ └── parsers │ │ ├── ByteArrayBase64ParserFactoryTest.java │ │ └── ByteArrayHexParserFactoryTest.java ├── hyracks-dataflow-hadoop │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── dataflow │ │ └── hadoop │ │ ├── AbstractHadoopOperatorDescriptor.java │ │ ├── HadoopMapperOperatorDescriptor.java │ │ ├── HadoopReadOperatorDescriptor.java │ │ ├── HadoopReducerOperatorDescriptor.java │ │ ├── HadoopWriteOperatorDescriptor.java │ │ ├── data │ │ ├── AbstractClassBasedDelegate.java │ │ ├── HadoopHashTuplePartitionComputerFactory.java │ │ ├── HadoopNewPartitionerTuplePartitionComputerFactory.java │ │ ├── HadoopPartitionerTuplePartitionComputerFactory.java │ │ ├── KeyBinaryComparatorFactory.java │ │ ├── KeyComparatorFactory.java │ │ ├── RawComparingComparatorFactory.java │ │ └── WritableComparingBinaryComparatorFactory.java │ │ ├── mapreduce │ │ ├── HadoopHelper.java │ │ ├── HadoopTools.java │ │ ├── HashPartitioningShuffleConnectorDescriptor.java │ │ ├── IInputSplitProvider.java │ │ ├── IInputSplitProviderFactory.java │ │ ├── InputFileSplit.java │ │ ├── KVIterator.java │ │ ├── MapperOperatorDescriptor.java │ │ ├── MarshalledWritable.java │ │ ├── ReduceWriter.java │ │ ├── ReducerOperatorDescriptor.java │ │ └── ShuffleFrameReader.java │ │ └── util │ │ ├── ClasspathBasedHadoopClassFactory.java │ │ ├── DatatypeHelper.java │ │ ├── DuplicateKeyMapper.java │ │ ├── IHadoopClassFactory.java │ │ ├── InputSplitsProxy.java │ │ ├── MRContextUtil.java │ │ └── PreappendLongWritableMapper.java ├── hyracks-dataflow-std │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── dataflow │ │ │ └── std │ │ │ ├── base │ │ │ ├── AbstractActivityNode.java │ │ │ ├── AbstractConnectorDescriptor.java │ │ │ ├── AbstractMToNConnectorDescriptor.java │ │ │ ├── AbstractOperatorDescriptor.java │ │ │ ├── AbstractOperatorNodePushable.java │ │ │ ├── AbstractSingleActivityOperatorDescriptor.java │ │ │ ├── AbstractStateObject.java │ │ │ ├── AbstractUnaryInputOperatorNodePushable.java │ │ │ ├── AbstractUnaryInputSinkOperatorNodePushable.java │ │ │ ├── AbstractUnaryInputUnaryOutputOperatorNodePushable.java │ │ │ ├── AbstractUnaryOutputOperatorNodePushable.java │ │ │ ├── AbstractUnaryOutputSourceOperatorNodePushable.java │ │ │ └── IOpenableDataWriterOperator.java │ │ │ ├── buffermanager │ │ │ ├── AbstractTuplePointerAccessor.java │ │ │ ├── BufferInfo.java │ │ │ ├── DeallocatableFramePool.java │ │ │ ├── EnumFreeSlotPolicy.java │ │ │ ├── FrameFreeSlotBiggestFirst.java │ │ │ ├── FrameFreeSlotLastFit.java │ │ │ ├── FrameFreeSlotPolicyFactory.java │ │ │ ├── FrameFreeSlotSmallestFit.java │ │ │ ├── IDeallocatableFramePool.java │ │ │ ├── IDeletableTupleBufferManager.java │ │ │ ├── IFrameBufferManager.java │ │ │ ├── IFrameFreeSlotPolicy.java │ │ │ ├── IFramePool.java │ │ │ ├── IPartitionedMemoryConstrain.java │ │ │ ├── IPartitionedTupleBufferManager.java │ │ │ ├── ITupleBufferManager.java │ │ │ ├── ITuplePointerAccessor.java │ │ │ ├── PreferToSpillFullyOccupiedFramePolicy.java │ │ │ ├── VPartitionTupleBufferManager.java │ │ │ ├── VariableDeletableTupleMemoryManager.java │ │ │ ├── VariableFrameMemoryManager.java │ │ │ └── VariableFramePool.java │ │ │ ├── collectors │ │ │ ├── AbstractPartitionCollector.java │ │ │ ├── IPartitionAcceptor.java │ │ │ ├── IPartitionBatchManager.java │ │ │ ├── InputChannelFrameReader.java │ │ │ ├── NonDeterministicChannelReader.java │ │ │ ├── NonDeterministicFrameReader.java │ │ │ ├── NonDeterministicPartitionBatchManager.java │ │ │ ├── PartitionCollector.java │ │ │ └── SortMergeFrameReader.java │ │ │ ├── connectors │ │ │ ├── GlobalHashingLocalityMap.java │ │ │ ├── HashtableLocalityMap.java │ │ │ ├── ILocalityMap.java │ │ │ ├── LocalityAwareMToNPartitioningConnectorDescriptor.java │ │ │ ├── LocalityAwarePartitionDataWriter.java │ │ │ ├── MToNPartitioningConnectorDescriptor.java │ │ │ ├── MToNPartitioningMergingConnectorDescriptor.java │ │ │ ├── MToNPartitioningWithMessageConnectorDescriptor.java │ │ │ ├── MToNReplicatingConnectorDescriptor.java │ │ │ ├── OneToOneConnectorDescriptor.java │ │ │ ├── PartitionDataWriter.java │ │ │ └── PartitionWithMessageDataWriter.java │ │ │ ├── file │ │ │ ├── AbstractDeserializedFileScanOperatorDescriptor.java │ │ │ ├── AbstractFileWriteOperatorDescriptor.java │ │ │ ├── ConstantFileSplitProvider.java │ │ │ ├── DelimitedDataTupleParserFactory.java │ │ │ ├── FieldCursorForDelimitedDataParser.java │ │ │ ├── FileRemoveOperatorDescriptor.java │ │ │ ├── FileScanOperatorDescriptor.java │ │ │ ├── FileSplit.java │ │ │ ├── FrameFileWriterOperatorDescriptor.java │ │ │ ├── IFileSplitProvider.java │ │ │ ├── IRecordReader.java │ │ │ ├── IRecordWriter.java │ │ │ ├── ITupleParser.java │ │ │ ├── ITupleParserFactory.java │ │ │ ├── LineFileWriteOperatorDescriptor.java │ │ │ ├── PlainFileWriterOperatorDescriptor.java │ │ │ ├── RecordFileScanOperatorDescriptor.java │ │ │ └── RecordWriter.java │ │ │ ├── group │ │ │ ├── AbstractAccumulatingAggregatorDescriptorFactory.java │ │ │ ├── AggregateState.java │ │ │ ├── AggregateType.java │ │ │ ├── DeserializedPreclusteredGroupOperator.java │ │ │ ├── HashSpillableTableFactory.java │ │ │ ├── IAggregatorDescriptor.java │ │ │ ├── IAggregatorDescriptorFactory.java │ │ │ ├── IFieldAggregateDescriptor.java │ │ │ ├── IFieldAggregateDescriptorFactory.java │ │ │ ├── IGroupAggregator.java │ │ │ ├── ISpillableTable.java │ │ │ ├── ISpillableTableFactory.java │ │ │ ├── aggregators │ │ │ │ ├── AvgFieldGroupAggregatorFactory.java │ │ │ │ ├── AvgFieldMergeAggregatorFactory.java │ │ │ │ ├── CountFieldAggregatorFactory.java │ │ │ │ ├── FloatSumFieldAggregatorFactory.java │ │ │ │ ├── IntSumFieldAggregatorFactory.java │ │ │ │ ├── MinMaxStringFieldAggregatorFactory.java │ │ │ │ └── MultiFieldsAggregatorFactory.java │ │ │ ├── external │ │ │ │ ├── ExternalGroupBuildOperatorNodePushable.java │ │ │ │ ├── ExternalGroupOperatorDescriptor.java │ │ │ │ ├── ExternalGroupState.java │ │ │ │ ├── ExternalGroupWriteOperatorNodePushable.java │ │ │ │ ├── ExternalHashGroupBy.java │ │ │ │ └── IRunFileWriterGenerator.java │ │ │ ├── preclustered │ │ │ │ ├── PreclusteredGroupOperatorDescriptor.java │ │ │ │ ├── PreclusteredGroupOperatorNodePushable.java │ │ │ │ └── PreclusteredGroupWriter.java │ │ │ └── sort │ │ │ │ ├── ExternalSortGroupByRunGenerator.java │ │ │ │ ├── ExternalSortGroupByRunMerger.java │ │ │ │ └── SortGroupByOperatorDescriptor.java │ │ │ ├── intersect │ │ │ └── IntersectOperatorDescriptor.java │ │ │ ├── join │ │ │ ├── GraceHashJoinOperatorDescriptor.java │ │ │ ├── GraceHashJoinOperatorNodePushable.java │ │ │ ├── GraceHashJoinPartitionBuildOperatorNodePushable.java │ │ │ ├── GraceHashJoinPartitionState.java │ │ │ ├── HybridHashJoinOperatorDescriptor.java │ │ │ ├── InMemoryHashJoin.java │ │ │ ├── InMemoryHashJoinOperatorDescriptor.java │ │ │ ├── JoinComparator.java │ │ │ ├── JoinComparatorFactory.java │ │ │ ├── NestedLoopJoin.java │ │ │ ├── NestedLoopJoinOperatorDescriptor.java │ │ │ ├── OptimizedHybridHashJoin.java │ │ │ └── OptimizedHybridHashJoinOperatorDescriptor.java │ │ │ ├── map │ │ │ ├── DeserializedMapperOperatorDescriptor.java │ │ │ ├── IDeserializedMapper.java │ │ │ ├── IDeserializedMapperFactory.java │ │ │ ├── ReflectionBasedDeserializedMapperFactory.java │ │ │ └── SamplerDeserializedMapperFactory.java │ │ │ ├── misc │ │ │ ├── ConstantTupleSourceOperatorDescriptor.java │ │ │ ├── ConstantTupleSourceOperatorNodePushable.java │ │ │ ├── IdentityOperatorDescriptor.java │ │ │ ├── LimitOperatorDescriptor.java │ │ │ ├── MaterializerTaskState.java │ │ │ ├── MaterializingOperatorDescriptor.java │ │ │ ├── NullSinkOperatorDescriptor.java │ │ │ ├── PrinterOperatorDescriptor.java │ │ │ ├── SinkOperatorDescriptor.java │ │ │ ├── SplitOperatorDescriptor.java │ │ │ └── SplitVectorOperatorDescriptor.java │ │ │ ├── result │ │ │ └── ResultWriterOperatorDescriptor.java │ │ │ ├── sort │ │ │ ├── AbstractExternalSortRunGenerator.java │ │ │ ├── AbstractExternalSortRunMerger.java │ │ │ ├── AbstractFrameSorter.java │ │ │ ├── AbstractSortRunGenerator.java │ │ │ ├── AbstractSorterOperatorDescriptor.java │ │ │ ├── Algorithm.java │ │ │ ├── ExternalSortOperatorDescriptor.java │ │ │ ├── ExternalSortRunGenerator.java │ │ │ ├── ExternalSortRunMerger.java │ │ │ ├── FrameSorterMergeSort.java │ │ │ ├── FrameSorterQuickSort.java │ │ │ ├── HeapSortRunGenerator.java │ │ │ ├── HybridTopKSortRunGenerator.java │ │ │ ├── IFrameSorter.java │ │ │ ├── IRunGenerator.java │ │ │ ├── ISorter.java │ │ │ ├── ITupleSorter.java │ │ │ ├── InMemorySortOperatorDescriptor.java │ │ │ ├── RunMergingFrameReader.java │ │ │ ├── TopKSorterOperatorDescriptor.java │ │ │ ├── TupleSorterHeapSort.java │ │ │ └── util │ │ │ │ ├── DeletableFrameTupleAppender.java │ │ │ │ ├── GroupFrameAccessor.java │ │ │ │ ├── GroupVSizeFrame.java │ │ │ │ └── IAppendDeletableFrameTupleAccessor.java │ │ │ ├── structures │ │ │ ├── AbstractHeap.java │ │ │ ├── IHeap.java │ │ │ ├── IMaxHeap.java │ │ │ ├── IMinHeap.java │ │ │ ├── IMinMaxHeap.java │ │ │ ├── IResetable.java │ │ │ ├── IResetableComparable.java │ │ │ ├── IResetableComparableFactory.java │ │ │ ├── ISerializableTable.java │ │ │ ├── MaxHeap.java │ │ │ ├── MinHeap.java │ │ │ ├── MinMaxHeap.java │ │ │ ├── SerializableHashTable.java │ │ │ └── TuplePointer.java │ │ │ ├── union │ │ │ └── UnionAllOperatorDescriptor.java │ │ │ └── util │ │ │ ├── DeserializedOperatorNodePushable.java │ │ │ ├── FrameTuplePairComparator.java │ │ │ ├── ReferenceEntry.java │ │ │ ├── ReferencedPriorityQueue.java │ │ │ ├── SelectionTree.java │ │ │ └── StringSerializationUtils.java │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── dataflow │ │ │ └── std │ │ │ ├── buffermanager │ │ │ ├── AbstractFramePoolTest.java │ │ │ ├── AbstractTupleMemoryManagerTest.java │ │ │ ├── Common.java │ │ │ ├── DeletableFramePoolTest.java │ │ │ ├── FrameFreeSlotBestFitUsingTreeMapTest.java │ │ │ ├── FrameFreeSlotBiggestFirstTest.java │ │ │ ├── FrameFreeSlotLastFitTest.java │ │ │ ├── VPartitionTupleBufferManagerTest.java │ │ │ ├── VariableFramePoolTest.java │ │ │ ├── VariableFramesMemoryManagerTest.java │ │ │ └── VariableTupleMemoryManagerTest.java │ │ │ ├── file │ │ │ └── CursorTest.java │ │ │ ├── sort │ │ │ ├── Utility.java │ │ │ └── util │ │ │ │ └── DeletableFrameTupleAppenderTest.java │ │ │ ├── structures │ │ │ ├── AbstracHeapTest.java │ │ │ ├── MaxHeapTest.java │ │ │ ├── MinHeapTest.java │ │ │ ├── MinMaxHeapTest.java │ │ │ └── SerializableHashTableTest.java │ │ │ └── test │ │ │ └── util │ │ │ └── SelectionTreeTest.java │ │ └── resources │ │ └── data │ │ └── beer.txt ├── hyracks-dist │ ├── pom.xml │ └── src │ │ └── main │ │ └── resources │ │ ├── bin │ │ ├── getip.sh │ │ ├── startAllNCs.sh │ │ ├── startCluster.sh │ │ ├── startDebugNc.sh │ │ ├── startcc.sh │ │ ├── startnc.sh │ │ ├── stopAllNCs.sh │ │ ├── stopCluster.sh │ │ ├── stopcc.sh │ │ └── stopnc.sh │ │ └── conf │ │ ├── cluster.properties │ │ ├── debugnc.properties │ │ ├── master │ │ ├── slaves │ │ └── topology-template.xml ├── hyracks-documentation │ ├── pom.xml │ └── src │ │ └── books │ │ └── user-guide │ │ ├── doxia-descriptor.xml │ │ ├── sec-concepts-applications.apt │ │ ├── sec-concepts-terminology.apt │ │ ├── sec-hyrackscli-commands.apt │ │ ├── sec-hyrackscli-running.apt │ │ ├── sec-introduction-overview.apt │ │ └── sec-introduction-whatis.apt ├── hyracks-examples │ ├── btree-example │ │ ├── btreeclient │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── assembly │ │ │ │ └── binary-assembly.xml │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── hyracks │ │ │ │ │ └── examples │ │ │ │ │ └── btree │ │ │ │ │ └── client │ │ │ │ │ ├── InsertPipelineExample.java │ │ │ │ │ ├── JobHelper.java │ │ │ │ │ ├── PrimaryIndexBulkLoadExample.java │ │ │ │ │ ├── PrimaryIndexSearchExample.java │ │ │ │ │ ├── SecondaryIndexBulkLoadExample.java │ │ │ │ │ └── SecondaryIndexSearchExample.java │ │ │ │ └── licenses │ │ │ │ ├── LICENSE │ │ │ │ └── NOTICE │ │ ├── btreehelper │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── examples │ │ │ │ └── btree │ │ │ │ └── helper │ │ │ │ ├── DataGenOperatorDescriptor.java │ │ │ │ ├── IndexLifecycleManagerProvider.java │ │ │ │ ├── NCApplicationEntryPoint.java │ │ │ │ ├── RuntimeContext.java │ │ │ │ └── StorageManagerInterface.java │ │ ├── btreeserver │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── assembly │ │ │ │ └── binary-assembly.xml │ │ │ │ └── licenses │ │ │ │ ├── LICENSE │ │ │ │ └── NOTICE │ │ └── pom.xml │ ├── hyracks-integration-tests │ │ ├── .gitignore │ │ ├── data │ │ │ ├── cleanednumbereddblptitles.txt │ │ │ ├── dblp.txt │ │ │ ├── orders-with-locations-part1.txt │ │ │ ├── orders-with-locations-part2.txt │ │ │ ├── spatial.txt │ │ │ ├── tpch0.001 │ │ │ │ ├── customer-part1.tbl │ │ │ │ ├── customer-part2.tbl │ │ │ │ ├── customer.tbl │ │ │ │ ├── customer3.tbl │ │ │ │ ├── customer4.tbl │ │ │ │ ├── lineitem.tbl │ │ │ │ ├── nation.tbl │ │ │ │ ├── orders-part1.tbl │ │ │ │ ├── orders-part2.tbl │ │ │ │ ├── orders.tbl │ │ │ │ ├── orders1.tbl │ │ │ │ ├── orders4.tbl │ │ │ │ ├── part.tbl │ │ │ │ ├── partsupp.tbl │ │ │ │ ├── region.tbl │ │ │ │ ├── supplier.tbl │ │ │ │ └── tpch.ddl │ │ │ ├── wordcount.tsv │ │ │ └── words.txt │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── tests │ │ │ ├── am │ │ │ ├── btree │ │ │ │ ├── AbstractBTreeOperatorTest.java │ │ │ │ ├── BTreeOperatorTestHelper.java │ │ │ │ ├── BTreePrimaryIndexScanOperatorTest.java │ │ │ │ ├── BTreePrimaryIndexSearchOperatorTest.java │ │ │ │ ├── BTreePrimaryIndexStatsOperatorTest.java │ │ │ │ ├── BTreeSecondaryIndexInsertOperatorTest.java │ │ │ │ ├── BTreeSecondaryIndexSearchOperatorTest.java │ │ │ │ └── BTreeSecondaryIndexUpsertOperatorTest.java │ │ │ ├── common │ │ │ │ ├── ITreeIndexOperatorTestHelper.java │ │ │ │ ├── LSMTreeOperatorTestHelper.java │ │ │ │ └── TreeOperatorTestHelper.java │ │ │ ├── lsm │ │ │ │ ├── btree │ │ │ │ │ ├── LSMBTreeOperatorTestHelper.java │ │ │ │ │ ├── LSMBTreePrimaryIndexScanOperatorTest.java │ │ │ │ │ ├── LSMBTreePrimaryIndexSearchOperatorTest.java │ │ │ │ │ ├── LSMBTreeSecondaryIndexInsertOperatorTest.java │ │ │ │ │ └── LSMBTreeSecondaryIndexSearchOperatorTest.java │ │ │ │ └── rtree │ │ │ │ │ ├── LSMRTreeOperatorTestHelper.java │ │ │ │ │ ├── LSMRTreeSecondaryIndexInsertOperatorTest.java │ │ │ │ │ ├── LSMRTreeSecondaryIndexSearchOperatorTest.java │ │ │ │ │ ├── LSMRTreeWithAntiMatterTuplesOperatorTestHelper.java │ │ │ │ │ ├── LSMRTreeWithAntiMatterTuplesSecondaryIndexInsertOperatorTest.java │ │ │ │ │ └── LSMRTreeWithAntiMatterTuplesSecondaryIndexSearchOperatorTest.java │ │ │ └── rtree │ │ │ │ ├── AbstractRTreeOperatorTest.java │ │ │ │ ├── RTreeOperatorTestHelper.java │ │ │ │ ├── RTreeSecondaryIndexInsertOperatorTest.java │ │ │ │ ├── RTreeSecondaryIndexScanOperatorTest.java │ │ │ │ ├── RTreeSecondaryIndexSearchOperatorTest.java │ │ │ │ └── RTreeSecondaryIndexStatsOperatorTest.java │ │ │ ├── comm │ │ │ └── SerializationDeserializationTest.java │ │ │ ├── integration │ │ │ ├── AbstractIntegrationTest.java │ │ │ ├── AbstractMultiNCIntegrationTest.java │ │ │ ├── AggregationTest.java │ │ │ ├── CountOfCountsTest.java │ │ │ ├── HeapSortMergeTest.java │ │ │ ├── LocalityAwareConnectorTest.java │ │ │ ├── ScanPrintTest.java │ │ │ ├── SortMergeTest.java │ │ │ ├── SplitOperatorTest.java │ │ │ ├── TPCHCustomerOptimizedHybridHashJoinTest.java │ │ │ ├── TPCHCustomerOrderHashJoinTest.java │ │ │ ├── TPCHCustomerOrderNestedLoopJoinTest.java │ │ │ ├── UnionTest.java │ │ │ └── VSizeFrameSortMergeTest.java │ │ │ ├── rewriting │ │ │ ├── ErrorReportingTest.java │ │ │ └── SuperActivityRewritingTest.java │ │ │ ├── unit │ │ │ ├── AbstractExternalGroupbyTest.java │ │ │ ├── AbstractRunGeneratorTest.java │ │ │ ├── ExternalHashGroupbyTest.java │ │ │ ├── ExternalSortRunGeneratorTest.java │ │ │ ├── HeapSortRunGeneratorTest.java │ │ │ ├── HybridSortRunGenerator.java │ │ │ ├── IntersectOperatorDescriptorTest.java │ │ │ ├── RunMergingFrameReaderTest.java │ │ │ ├── SortGroupbyTest.java │ │ │ └── TopKRunGeneratorTest.java │ │ │ └── util │ │ │ ├── InputFrameGenerator.java │ │ │ ├── MultiThreadTaskEmulator.java │ │ │ ├── NoopNullWriterFactory.java │ │ │ ├── OutputFrameVerifier.java │ │ │ └── ResultSerializerFactoryProvider.java │ ├── hyracks-shutdown-test │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── assembly │ │ │ │ └── binary-assembly.xml │ │ │ └── licenses │ │ │ │ ├── LICENSE │ │ │ │ └── NOTICE │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── examples │ │ │ └── shutdown │ │ │ └── test │ │ │ └── ClusterShutdownIT.java │ ├── pom.xml │ ├── text-example │ │ ├── pom.xml │ │ ├── textclient │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── assembly │ │ │ │ └── binary-assembly.xml │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── hyracks │ │ │ │ │ └── examples │ │ │ │ │ └── text │ │ │ │ │ └── client │ │ │ │ │ └── WordCountMain.java │ │ │ │ └── licenses │ │ │ │ ├── LICENSE │ │ │ │ └── NOTICE │ │ ├── texthelper │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ └── examples │ │ │ │ └── text │ │ │ │ └── WordTupleParserFactory.java │ │ └── textserver │ │ │ ├── data │ │ │ ├── file1.txt │ │ │ └── file2.txt │ │ │ ├── pom.xml │ │ │ └── src │ │ │ ├── main │ │ │ ├── assembly │ │ │ │ └── binary-assembly.xml │ │ │ └── licenses │ │ │ │ ├── LICENSE │ │ │ │ └── NOTICE │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── examples │ │ │ └── text │ │ │ └── test │ │ │ └── WordCountIT.java │ └── tpch-example │ │ ├── pom.xml │ │ ├── tpchclient │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── examples │ │ │ └── tpch │ │ │ └── client │ │ │ ├── Common.java │ │ │ ├── Groupby.java │ │ │ ├── Join.java │ │ │ └── Sort.java │ │ └── tpchserver │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── assembly │ │ └── binary-assembly.xml │ │ └── licenses │ │ ├── LICENSE │ │ └── NOTICE ├── hyracks-hdfs │ ├── hyracks-hdfs-1.x │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── hdfs │ │ │ ├── ContextFactory.java │ │ │ └── MiniDFSClusterFactory.java │ ├── hyracks-hdfs-2.x │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── hdfs │ │ │ ├── ContextFactory.java │ │ │ └── MiniDFSClusterFactory.java │ ├── hyracks-hdfs-core │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ ├── hdfs │ │ │ │ ├── api │ │ │ │ │ ├── IKeyValueParser.java │ │ │ │ │ ├── IKeyValueParserFactory.java │ │ │ │ │ ├── INcCollection.java │ │ │ │ │ ├── INcCollectionBuilder.java │ │ │ │ │ ├── ITupleWriter.java │ │ │ │ │ └── ITupleWriterFactory.java │ │ │ │ ├── dataflow │ │ │ │ │ ├── ConfFactory.java │ │ │ │ │ ├── HDFSReadOperatorDescriptor.java │ │ │ │ │ ├── HDFSWriteOperatorDescriptor.java │ │ │ │ │ └── InputSplitsFactory.java │ │ │ │ ├── lib │ │ │ │ │ ├── RawBinaryComparatorFactory.java │ │ │ │ │ ├── RawBinaryHashFunctionFactory.java │ │ │ │ │ ├── TextKeyValueParserFactory.java │ │ │ │ │ └── TextTupleWriterFactory.java │ │ │ │ └── scheduler │ │ │ │ │ ├── IPProximityNcCollectionBuilder.java │ │ │ │ │ ├── RackAwareNcCollectionBuilder.java │ │ │ │ │ └── Scheduler.java │ │ │ │ └── hdfs2 │ │ │ │ ├── dataflow │ │ │ │ ├── ConfFactory.java │ │ │ │ ├── FileSplitsFactory.java │ │ │ │ ├── HDFSReadOperatorDescriptor.java │ │ │ │ └── HDFSWriteOperatorDescriptor.java │ │ │ │ └── scheduler │ │ │ │ ├── Scheduler.java │ │ │ │ └── WrappedFileSplit.java │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── hyracks │ │ │ │ ├── hdfs │ │ │ │ ├── dataflow │ │ │ │ │ └── DataflowTest.java │ │ │ │ ├── scheduler │ │ │ │ │ └── SchedulerTest.java │ │ │ │ └── utils │ │ │ │ │ ├── HyracksUtils.java │ │ │ │ │ └── TestUtils.java │ │ │ │ └── hdfs2 │ │ │ │ ├── dataflow │ │ │ │ └── DataflowTest.java │ │ │ │ └── scheduler │ │ │ │ └── SchedulerTest.java │ │ │ └── resources │ │ │ ├── data │ │ │ └── customer.tbl │ │ │ ├── expected │ │ │ └── part-0 │ │ │ ├── hadoop │ │ │ └── conf │ │ │ │ ├── core-site.xml │ │ │ │ ├── hdfs-site.xml │ │ │ │ ├── log4j.properties │ │ │ │ └── mapred-site.xml │ │ │ └── topology.xml │ └── pom.xml ├── hyracks-ipc │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── ipc │ │ │ ├── api │ │ │ ├── IIPCHandle.java │ │ │ ├── IIPCI.java │ │ │ ├── IPCPerformanceCounters.java │ │ │ ├── IPayloadSerializerDeserializer.java │ │ │ ├── IResponseCallback.java │ │ │ └── RPCInterface.java │ │ │ ├── exceptions │ │ │ └── IPCException.java │ │ │ └── impl │ │ │ ├── HandleState.java │ │ │ ├── IPCConnectionManager.java │ │ │ ├── IPCHandle.java │ │ │ ├── IPCSystem.java │ │ │ ├── JavaSerializationBasedPayloadSerializerDeserializer.java │ │ │ └── Message.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── ipc │ │ └── tests │ │ └── IPCTest.java ├── hyracks-maven-plugins │ ├── hyracks-virtualcluster-maven-plugin │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── maven │ │ │ └── plugin │ │ │ ├── AbstractHyracksMojo.java │ │ │ ├── AbstractHyracksServerMojo.java │ │ │ ├── HyracksCCStartMojo.java │ │ │ ├── HyracksNCStartMojo.java │ │ │ ├── HyracksServiceRegistry.java │ │ │ └── HyracksStopServicesMojo.java │ └── pom.xml ├── hyracks-net │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── net │ │ │ ├── buffers │ │ │ ├── IBufferAcceptor.java │ │ │ └── ICloseableBufferAcceptor.java │ │ │ ├── exceptions │ │ │ └── NetException.java │ │ │ └── protocols │ │ │ ├── muxdemux │ │ │ ├── ChannelControlBlock.java │ │ │ ├── ChannelSet.java │ │ │ ├── IBufferFactory.java │ │ │ ├── IChannelOpenListener.java │ │ │ ├── IChannelReadInterface.java │ │ │ ├── IChannelWriteInterface.java │ │ │ ├── IEventCounter.java │ │ │ ├── MultiplexedConnection.java │ │ │ ├── MuxDemux.java │ │ │ ├── MuxDemuxCommand.java │ │ │ └── MuxDemuxPerformanceCounters.java │ │ │ └── tcp │ │ │ ├── ITCPConnectionEventListener.java │ │ │ ├── ITCPConnectionListener.java │ │ │ ├── TCPConnection.java │ │ │ └── TCPEndpoint.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── net │ │ └── tests │ │ └── NetTest.java ├── hyracks-server │ ├── docs │ │ └── README │ ├── pom.xml │ └── src │ │ └── main │ │ ├── assembly │ │ └── binary-assembly.xml │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── server │ │ │ ├── drivers │ │ │ └── VirtualClusterDriver.java │ │ │ └── process │ │ │ ├── HyracksCCProcess.java │ │ │ ├── HyracksNCProcess.java │ │ │ └── HyracksServerProcess.java │ │ └── licenses │ │ ├── LICENSE │ │ └── NOTICE ├── hyracks-storage-am-bloomfilter │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── bloomfilter │ │ └── impls │ │ ├── BloomCalculations.java │ │ ├── BloomFilter.java │ │ ├── BloomFilterFactory.java │ │ ├── BloomFilterSpecification.java │ │ └── MurmurHash128Bit.java ├── hyracks-storage-am-btree │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── btree │ │ │ ├── api │ │ │ ├── IBTreeFrame.java │ │ │ ├── IBTreeInteriorFrame.java │ │ │ ├── IBTreeLeafFrame.java │ │ │ ├── IPrefixSlotManager.java │ │ │ └── ITupleAcceptor.java │ │ │ ├── compressors │ │ │ └── FieldPrefixCompressor.java │ │ │ ├── dataflow │ │ │ ├── BTreeDataflowHelper.java │ │ │ ├── BTreeDataflowHelperFactory.java │ │ │ ├── BTreeSearchOperatorDescriptor.java │ │ │ ├── BTreeSearchOperatorNodePushable.java │ │ │ ├── BTreeUpdateSearchOperatorDescriptor.java │ │ │ └── BTreeUpdateSearchOperatorNodePushable.java │ │ │ ├── exceptions │ │ │ ├── BTreeException.java │ │ │ └── BTreeNotUpdateableException.java │ │ │ ├── frames │ │ │ ├── BTreeFieldPrefixNSMLeafFrame.java │ │ │ ├── BTreeFieldPrefixNSMLeafFrameFactory.java │ │ │ ├── BTreeLeafFrameType.java │ │ │ ├── BTreeNSMInteriorFrame.java │ │ │ ├── BTreeNSMInteriorFrameFactory.java │ │ │ ├── BTreeNSMLeafFrame.java │ │ │ ├── BTreeNSMLeafFrameFactory.java │ │ │ └── OrderedSlotManager.java │ │ │ ├── impls │ │ │ ├── BTree.java │ │ │ ├── BTreeCountingSearchCursor.java │ │ │ ├── BTreeCursorInitialState.java │ │ │ ├── BTreeOpContext.java │ │ │ ├── BTreeRangeSearchCursor.java │ │ │ ├── BTreeSplitKey.java │ │ │ ├── FieldPrefixPrefixTupleReference.java │ │ │ ├── FieldPrefixSlotManager.java │ │ │ ├── FieldPrefixTupleReference.java │ │ │ ├── NodeFrontier.java │ │ │ ├── RangePredicate.java │ │ │ └── UnconditionalTupleAcceptor.java │ │ │ └── util │ │ │ └── BTreeUtils.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── btree │ │ └── test │ │ └── FramewriterTest.java ├── hyracks-storage-am-common │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── common │ │ │ ├── api │ │ │ ├── ICursorInitialState.java │ │ │ ├── IIndex.java │ │ │ ├── IIndexAccessor.java │ │ │ ├── IIndexBulkLoader.java │ │ │ ├── IIndexCursor.java │ │ │ ├── IIndexDataflowHelper.java │ │ │ ├── IIndexLifecycleManager.java │ │ │ ├── IIndexLifecycleManagerProvider.java │ │ │ ├── IIndexOperationContext.java │ │ │ ├── IMetaDataPageManager.java │ │ │ ├── IMetadataManagerFactory.java │ │ │ ├── IModificationOperationCallback.java │ │ │ ├── IModificationOperationCallbackFactory.java │ │ │ ├── IPrimitiveValueProvider.java │ │ │ ├── IPrimitiveValueProviderFactory.java │ │ │ ├── ISearchOperationCallback.java │ │ │ ├── ISearchOperationCallbackFactory.java │ │ │ ├── ISearchPredicate.java │ │ │ ├── ISlotManager.java │ │ │ ├── ISplitKey.java │ │ │ ├── ITreeIndex.java │ │ │ ├── ITreeIndexAccessor.java │ │ │ ├── ITreeIndexCursor.java │ │ │ ├── ITreeIndexFrame.java │ │ │ ├── ITreeIndexFrameCompressor.java │ │ │ ├── ITreeIndexFrameFactory.java │ │ │ ├── ITreeIndexMetaDataFrame.java │ │ │ ├── ITreeIndexMetaDataFrameFactory.java │ │ │ ├── ITreeIndexTupleReference.java │ │ │ ├── ITreeIndexTupleWriter.java │ │ │ ├── ITreeIndexTupleWriterFactory.java │ │ │ ├── ITupleFilter.java │ │ │ ├── ITupleFilterFactory.java │ │ │ ├── ITupleUpdater.java │ │ │ ├── ITupleUpdaterFactory.java │ │ │ ├── ITwoPCIndexBulkLoader.java │ │ │ ├── IVirtualMetaDataPageManager.java │ │ │ ├── IndexException.java │ │ │ ├── TreeIndexException.java │ │ │ └── UnsortedInputException.java │ │ │ ├── data │ │ │ └── PointablePrimitiveValueProviderFactory.java │ │ │ ├── dataflow │ │ │ ├── AbstractIndexOperatorDescriptor.java │ │ │ ├── AbstractTreeIndexOperatorDescriptor.java │ │ │ ├── IIndexDataflowHelperFactory.java │ │ │ ├── IIndexOperatorDescriptor.java │ │ │ ├── ITreeIndexOperatorDescriptor.java │ │ │ ├── IndexBulkLoadOperatorNodePushable.java │ │ │ ├── IndexCreateOperatorNodePushable.java │ │ │ ├── IndexDataflowHelper.java │ │ │ ├── IndexDropOperatorDescriptor.java │ │ │ ├── IndexDropOperatorNodePushable.java │ │ │ ├── IndexInsertUpdateDeleteOperatorNodePushable.java │ │ │ ├── IndexLifecycleManager.java │ │ │ ├── IndexRegistry.java │ │ │ ├── IndexSearchOperatorNodePushable.java │ │ │ ├── TreeIndexBulkLoadOperatorDescriptor.java │ │ │ ├── TreeIndexCreateOperatorDescriptor.java │ │ │ ├── TreeIndexDataflowHelper.java │ │ │ ├── TreeIndexDiskOrderScanOperatorDescriptor.java │ │ │ ├── TreeIndexDiskOrderScanOperatorNodePushable.java │ │ │ ├── TreeIndexInsertUpdateDeleteOperatorDescriptor.java │ │ │ ├── TreeIndexStatsOperatorDescriptor.java │ │ │ └── TreeIndexStatsOperatorNodePushable.java │ │ │ ├── datagen │ │ │ ├── DataGenThread.java │ │ │ ├── DataGenUtils.java │ │ │ ├── DocumentStringFieldValueGenerator.java │ │ │ ├── DoubleFieldValueGenerator.java │ │ │ ├── FloatFieldValueGenerator.java │ │ │ ├── IFieldValueGenerator.java │ │ │ ├── IntegerFieldValueGenerator.java │ │ │ ├── PersonNameFieldValueGenerator.java │ │ │ ├── ProbabilityHelper.java │ │ │ ├── SortedDoubleFieldValueGenerator.java │ │ │ ├── SortedFloatFieldValueGenerator.java │ │ │ ├── SortedIntegerFieldValueGenerator.java │ │ │ ├── StringFieldValueGenerator.java │ │ │ ├── TupleBatch.java │ │ │ └── TupleGenerator.java │ │ │ ├── exceptions │ │ │ ├── TreeIndexDuplicateKeyException.java │ │ │ └── TreeIndexNonExistentKeyException.java │ │ │ ├── frames │ │ │ ├── AbstractSlotManager.java │ │ │ ├── FrameOpSpaceStatus.java │ │ │ ├── LIFOMetaDataFrame.java │ │ │ ├── LIFOMetaDataFrameFactory.java │ │ │ └── TreeIndexNSMFrame.java │ │ │ ├── freepage │ │ │ ├── LinkedListMetadataManagerFactory.java │ │ │ └── LinkedMetaDataPageManager.java │ │ │ ├── impls │ │ │ ├── AbstractSearchPredicate.java │ │ │ ├── AbstractTreeIndex.java │ │ │ ├── NoOpOperationCallback.java │ │ │ ├── NoOpOperationCallbackFactory.java │ │ │ ├── NodeFrontier.java │ │ │ └── TreeIndexDiskOrderScanCursor.java │ │ │ ├── ophelpers │ │ │ ├── DoubleArrayList.java │ │ │ ├── FindTupleMode.java │ │ │ ├── FindTupleNoExactMatchPolicy.java │ │ │ ├── IndexOp.java │ │ │ ├── IndexOperation.java │ │ │ ├── IntArrayList.java │ │ │ ├── LongArrayList.java │ │ │ ├── MultiComparator.java │ │ │ ├── SingleComparator.java │ │ │ └── SlotOffTupleOff.java │ │ │ ├── tuples │ │ │ ├── ConcatenatingTupleReference.java │ │ │ ├── DualTupleReference.java │ │ │ ├── PermutingFrameTupleReference.java │ │ │ ├── PermutingTupleReference.java │ │ │ ├── SimpleTupleReference.java │ │ │ ├── SimpleTupleWriter.java │ │ │ ├── SimpleTupleWriterFactory.java │ │ │ ├── TypeAwareTupleReference.java │ │ │ ├── TypeAwareTupleWriter.java │ │ │ └── TypeAwareTupleWriterFactory.java │ │ │ └── util │ │ │ ├── HashMultiSet.java │ │ │ ├── IndexFileNameUtil.java │ │ │ ├── TreeIndexBufferCacheWarmup.java │ │ │ ├── TreeIndexStats.java │ │ │ ├── TreeIndexStatsGatherer.java │ │ │ └── TreeIndexUtils.java │ │ └── resources │ │ ├── dist.all.first.cleaned │ │ └── dist.all.last.cleaned ├── hyracks-storage-am-lsm-btree │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── lsm │ │ └── btree │ │ ├── dataflow │ │ ├── ExternalBTreeDataflowHelper.java │ │ ├── ExternalBTreeDataflowHelperFactory.java │ │ ├── ExternalBTreeWithBuddyDataflowHelper.java │ │ ├── ExternalBTreeWithBuddyDataflowHelperFactory.java │ │ ├── LSMBTreeDataflowHelper.java │ │ └── LSMBTreeDataflowHelperFactory.java │ │ ├── impls │ │ ├── AntimatterAwareTupleAcceptor.java │ │ ├── ExternalBTree.java │ │ ├── ExternalBTreeOpContext.java │ │ ├── ExternalBTreeWithBuddy.java │ │ ├── ExternalBTreeWithBuddyOpContext.java │ │ ├── LSMBTree.java │ │ ├── LSMBTreeCursorInitialState.java │ │ ├── LSMBTreeDiskComponent.java │ │ ├── LSMBTreeDiskComponentFactory.java │ │ ├── LSMBTreeFileManager.java │ │ ├── LSMBTreeFlushOperation.java │ │ ├── LSMBTreeMemoryComponent.java │ │ ├── LSMBTreeMergeOperation.java │ │ ├── LSMBTreeOpContext.java │ │ ├── LSMBTreePointSearchCursor.java │ │ ├── LSMBTreeRangeSearchCursor.java │ │ ├── LSMBTreeSearchCursor.java │ │ ├── LSMBTreeWithBuddyAbstractCursor.java │ │ ├── LSMBTreeWithBuddyCursorInitialState.java │ │ ├── LSMBTreeWithBuddyDiskComponent.java │ │ ├── LSMBTreeWithBuddyDiskComponentFactory.java │ │ ├── LSMBTreeWithBuddyFileManager.java │ │ ├── LSMBTreeWithBuddyMemoryComponent.java │ │ ├── LSMBTreeWithBuddyMergeOperation.java │ │ ├── LSMBTreeWithBuddySearchCursor.java │ │ ├── LSMBTreeWithBuddySortedCursor.java │ │ └── LSMBuddyBTreeMergeCursor.java │ │ ├── tuples │ │ ├── LSMBTreeCopyTupleWriter.java │ │ ├── LSMBTreeCopyTupleWriterFactory.java │ │ ├── LSMBTreeRefrencingTupleWriterFactory.java │ │ ├── LSMBTreeTupleReference.java │ │ ├── LSMBTreeTupleWriter.java │ │ └── LSMBTreeTupleWriterFactory.java │ │ └── util │ │ └── LSMBTreeUtils.java ├── hyracks-storage-am-lsm-common │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── lsm │ │ └── common │ │ ├── api │ │ ├── ILSMComponent.java │ │ ├── ILSMComponentFactory.java │ │ ├── ILSMComponentFilter.java │ │ ├── ILSMComponentFilterFactory.java │ │ ├── ILSMComponentFilterFrame.java │ │ ├── ILSMComponentFilterFrameFactory.java │ │ ├── ILSMComponentFilterManager.java │ │ ├── ILSMHarness.java │ │ ├── ILSMIOOperation.java │ │ ├── ILSMIOOperationCallback.java │ │ ├── ILSMIOOperationCallbackFactory.java │ │ ├── ILSMIOOperationCallbackProvider.java │ │ ├── ILSMIOOperationScheduler.java │ │ ├── ILSMIOOperationSchedulerProvider.java │ │ ├── ILSMIndex.java │ │ ├── ILSMIndexAccessor.java │ │ ├── ILSMIndexAccessorInternal.java │ │ ├── ILSMIndexFileManager.java │ │ ├── ILSMIndexInternal.java │ │ ├── ILSMIndexOperationContext.java │ │ ├── ILSMIndexReplicationJob.java │ │ ├── ILSMMergePolicy.java │ │ ├── ILSMMergePolicyFactory.java │ │ ├── ILSMOperationTracker.java │ │ ├── ILSMOperationTrackerProvider.java │ │ ├── ILSMTreeTupleReference.java │ │ ├── ITwoPCIndex.java │ │ ├── IVirtualBufferCache.java │ │ ├── IVirtualBufferCacheProvider.java │ │ └── LSMOperationType.java │ │ ├── dataflow │ │ ├── AbstractLSMIndexDataflowHelper.java │ │ ├── AbstractLSMIndexDataflowHelperFactory.java │ │ ├── LSMIndexCompactOperatorNodePushable.java │ │ ├── LSMIndexInsertUpdateDeleteOperatorNodePushable.java │ │ ├── LSMTreeIndexCompactOperatorDescriptor.java │ │ └── LSMTreeIndexInsertUpdateDeleteOperatorDescriptor.java │ │ ├── frames │ │ ├── LSMComponentFilterFrame.java │ │ └── LSMComponentFilterFrameFactory.java │ │ ├── freepage │ │ └── VirtualMetaDataPageManager.java │ │ └── impls │ │ ├── AbortRecoverLSMIndexFileManager.java │ │ ├── AbstractDiskLSMComponent.java │ │ ├── AbstractLSMComponent.java │ │ ├── AbstractLSMIndex.java │ │ ├── AbstractLSMIndexFileManager.java │ │ ├── AbstractLSMIndexOperationContext.java │ │ ├── AbstractMemoryLSMComponent.java │ │ ├── AsynchronousScheduler.java │ │ ├── BTreeFactory.java │ │ ├── BlockingIOOperationCallbackWrapper.java │ │ ├── BloomFilterAwareBTreePointSearchCursor.java │ │ ├── ConstantMergePolicy.java │ │ ├── ConstantMergePolicyFactory.java │ │ ├── ExternalIndexHarness.java │ │ ├── IndexFactory.java │ │ ├── LSMComponentFileReferences.java │ │ ├── LSMComponentFilter.java │ │ ├── LSMComponentFilterFactory.java │ │ ├── LSMComponentFilterManager.java │ │ ├── LSMComponentState.java │ │ ├── LSMHarness.java │ │ ├── LSMIOOperationTask.java │ │ ├── LSMIndexReplicationJob.java │ │ ├── LSMIndexSearchCursor.java │ │ ├── LSMTreeIndexAccessor.java │ │ ├── MultitenantVirtualBufferCache.java │ │ ├── NoMergePolicy.java │ │ ├── NoMergePolicyFactory.java │ │ ├── NoOpIOOperationCallback.java │ │ ├── NoOpOperationTrackerProvider.java │ │ ├── PrefixMergePolicy.java │ │ ├── PrefixMergePolicyFactory.java │ │ ├── SynchronousScheduler.java │ │ ├── SynchronousSchedulerProvider.java │ │ ├── ThreadCountingOperationTrackerProvider.java │ │ ├── ThreadCountingTracker.java │ │ ├── TreeIndexFactory.java │ │ └── VirtualBufferCache.java ├── hyracks-storage-am-lsm-invertedindex │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── lsm │ │ └── invertedindex │ │ ├── api │ │ ├── IInvertedIndex.java │ │ ├── IInvertedIndexAccessor.java │ │ ├── IInvertedIndexFileNameMapper.java │ │ ├── IInvertedIndexOperatorDescriptor.java │ │ ├── IInvertedIndexSearchModifier.java │ │ ├── IInvertedIndexSearchModifierFactory.java │ │ ├── IInvertedIndexSearcher.java │ │ ├── IInvertedListBuilder.java │ │ ├── IInvertedListBuilderFactory.java │ │ ├── IInvertedListCursor.java │ │ ├── IObjectFactory.java │ │ └── IPartitionedInvertedIndex.java │ │ ├── dataflow │ │ ├── AbstractLSMInvertedIndexOperatorDescriptor.java │ │ ├── BinaryTokenizerOperatorDescriptor.java │ │ ├── BinaryTokenizerOperatorNodePushable.java │ │ ├── LSMInvertedIndexBulkLoadOperatorDescriptor.java │ │ ├── LSMInvertedIndexCompactOperator.java │ │ ├── LSMInvertedIndexCreateOperatorDescriptor.java │ │ ├── LSMInvertedIndexDataflowHelper.java │ │ ├── LSMInvertedIndexDataflowHelperFactory.java │ │ ├── LSMInvertedIndexInsertUpdateDeleteOperator.java │ │ ├── LSMInvertedIndexSearchOperatorDescriptor.java │ │ ├── LSMInvertedIndexSearchOperatorNodePushable.java │ │ ├── PartitionedLSMInvertedIndexDataflowHelper.java │ │ └── PartitionedLSMInvertedIndexDataflowHelperFactory.java │ │ ├── exceptions │ │ ├── InvertedIndexException.java │ │ └── OccurrenceThresholdPanicException.java │ │ ├── impls │ │ ├── LSMInvertedIndex.java │ │ ├── LSMInvertedIndexAccessor.java │ │ ├── LSMInvertedIndexDeletedKeysBTreeMergeCursor.java │ │ ├── LSMInvertedIndexDiskComponent.java │ │ ├── LSMInvertedIndexDiskComponentFactory.java │ │ ├── LSMInvertedIndexFileManager.java │ │ ├── LSMInvertedIndexFlushOperation.java │ │ ├── LSMInvertedIndexMemoryComponent.java │ │ ├── LSMInvertedIndexMergeOperation.java │ │ ├── LSMInvertedIndexOpContext.java │ │ ├── LSMInvertedIndexRangeSearchCursor.java │ │ ├── LSMInvertedIndexRangeSearchCursorInitialState.java │ │ ├── LSMInvertedIndexSearchCursor.java │ │ ├── LSMInvertedIndexSearchCursorInitialState.java │ │ └── PartitionedLSMInvertedIndex.java │ │ ├── inmemory │ │ ├── InMemoryInvertedIndex.java │ │ ├── InMemoryInvertedIndexAccessor.java │ │ ├── InMemoryInvertedIndexOpContext.java │ │ ├── InMemoryInvertedListCursor.java │ │ ├── PartitionedInMemoryInvertedIndex.java │ │ ├── PartitionedInMemoryInvertedIndexAccessor.java │ │ └── PartitionedInMemoryInvertedIndexOpContext.java │ │ ├── ondisk │ │ ├── FixedSizeElementInvertedListBuilder.java │ │ ├── FixedSizeElementInvertedListBuilderFactory.java │ │ ├── FixedSizeElementInvertedListCursor.java │ │ ├── FixedSizeFrameTupleAccessor.java │ │ ├── FixedSizeFrameTupleAppender.java │ │ ├── FixedSizeTupleReference.java │ │ ├── OnDiskInvertedIndex.java │ │ ├── OnDiskInvertedIndexFactory.java │ │ ├── OnDiskInvertedIndexOpContext.java │ │ ├── OnDiskInvertedIndexRangeSearchCursor.java │ │ ├── OnDiskInvertedIndexSearchCursor.java │ │ ├── PartitionedOnDiskInvertedIndex.java │ │ └── PartitionedOnDiskInvertedIndexFactory.java │ │ ├── search │ │ ├── AbstractTOccurrenceSearcher.java │ │ ├── ArrayListFactory.java │ │ ├── ConjunctiveEditDistanceSearchModifier.java │ │ ├── ConjunctiveEditDistanceSearchModifierFactory.java │ │ ├── ConjunctiveListEditDistanceSearchModifier.java │ │ ├── ConjunctiveListEditDistanceSearchModifierFactory.java │ │ ├── ConjunctiveSearchModifier.java │ │ ├── ConjunctiveSearchModifierFactory.java │ │ ├── EditDistanceSearchModifier.java │ │ ├── EditDistanceSearchModifierFactory.java │ │ ├── InvertedIndexSearchPredicate.java │ │ ├── InvertedListCursorFactory.java │ │ ├── InvertedListMerger.java │ │ ├── InvertedListPartitions.java │ │ ├── JaccardSearchModifier.java │ │ ├── JaccardSearchModifierFactory.java │ │ ├── ListEditDistanceSearchModifier.java │ │ ├── ListEditDistanceSearchModifierFactory.java │ │ ├── PartitionedTOccurrenceSearcher.java │ │ ├── SearchResult.java │ │ └── TOccurrenceSearcher.java │ │ ├── tokenizers │ │ ├── AbstractUTF8StringBinaryTokenizer.java │ │ ├── AbstractUTF8Token.java │ │ ├── AbstractUTF8TokenFactory.java │ │ ├── DelimitedUTF8StringBinaryTokenizer.java │ │ ├── DelimitedUTF8StringBinaryTokenizerFactory.java │ │ ├── HashedUTF8NGramToken.java │ │ ├── HashedUTF8NGramTokenFactory.java │ │ ├── HashedUTF8WordToken.java │ │ ├── HashedUTF8WordTokenFactory.java │ │ ├── IBinaryTokenizer.java │ │ ├── IBinaryTokenizerFactory.java │ │ ├── INGramToken.java │ │ ├── IToken.java │ │ ├── ITokenFactory.java │ │ ├── IntArray.java │ │ ├── NGramUTF8StringBinaryTokenizer.java │ │ ├── NGramUTF8StringBinaryTokenizerFactory.java │ │ ├── UTF8NGramToken.java │ │ ├── UTF8NGramTokenFactory.java │ │ ├── UTF8WordToken.java │ │ └── UTF8WordTokenFactory.java │ │ └── util │ │ ├── InvertedIndexTokenizingTupleIterator.java │ │ ├── InvertedIndexUtils.java │ │ ├── ObjectCache.java │ │ └── PartitionedInvertedIndexTokenizingTupleIterator.java ├── hyracks-storage-am-lsm-rtree │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── lsm │ │ └── rtree │ │ ├── dataflow │ │ ├── AbstractLSMRTreeDataflowHelper.java │ │ ├── ExternalRTreeDataflowHelper.java │ │ ├── ExternalRTreeDataflowHelperFactory.java │ │ ├── LSMRTreeDataflowHelper.java │ │ ├── LSMRTreeDataflowHelperFactory.java │ │ ├── LSMRTreeWithAntiMatterTuplesDataflowHelper.java │ │ └── LSMRTreeWithAntiMatterTuplesDataflowHelperFactory.java │ │ ├── impls │ │ ├── AbstractLSMRTree.java │ │ ├── ExternalRTree.java │ │ ├── ExternalRTreeOpContext.java │ │ ├── LSMRTree.java │ │ ├── LSMRTreeAbstractCursor.java │ │ ├── LSMRTreeCursorInitialState.java │ │ ├── LSMRTreeDeletedKeysBTreeMergeCursor.java │ │ ├── LSMRTreeDiskComponent.java │ │ ├── LSMRTreeDiskComponentFactory.java │ │ ├── LSMRTreeFileManager.java │ │ ├── LSMRTreeFlushOperation.java │ │ ├── LSMRTreeMemoryComponent.java │ │ ├── LSMRTreeMergeOperation.java │ │ ├── LSMRTreeOpContext.java │ │ ├── LSMRTreeSearchCursor.java │ │ ├── LSMRTreeSortedCursor.java │ │ ├── LSMRTreeWithAntiMatterTuples.java │ │ ├── LSMRTreeWithAntiMatterTuplesDiskComponentFactory.java │ │ ├── LSMRTreeWithAntiMatterTuplesFileManager.java │ │ ├── LSMRTreeWithAntiMatterTuplesFlushCursor.java │ │ ├── LSMRTreeWithAntiMatterTuplesSearchCursor.java │ │ ├── RTreeFactory.java │ │ └── TreeTupleSorter.java │ │ ├── tuples │ │ ├── LSMRTreeCopyTupleWriter.java │ │ ├── LSMRTreeCopyTupleWriterFactory.java │ │ ├── LSMRTreeTupleReference.java │ │ ├── LSMRTreeTupleWriter.java │ │ ├── LSMRTreeTupleWriterFactory.java │ │ └── LSMTypeAwareTupleWriterFactory.java │ │ └── utils │ │ └── LSMRTreeUtils.java ├── hyracks-storage-am-rtree │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── am │ │ └── rtree │ │ ├── api │ │ ├── IGenericPrimitiveSerializerDeserializer.java │ │ ├── IRTreeFrame.java │ │ ├── IRTreeInteriorFrame.java │ │ ├── IRTreeLeafFrame.java │ │ └── IRTreePolicy.java │ │ ├── dataflow │ │ ├── RTreeDataflowHelper.java │ │ ├── RTreeDataflowHelperFactory.java │ │ ├── RTreeSearchOperatorDescriptor.java │ │ └── RTreeSearchOperatorNodePushable.java │ │ ├── frames │ │ ├── RStarTreePolicy.java │ │ ├── RTreeComputationUtils.java │ │ ├── RTreeNSMFrame.java │ │ ├── RTreeNSMInteriorFrame.java │ │ ├── RTreeNSMInteriorFrameFactory.java │ │ ├── RTreeNSMLeafFrame.java │ │ ├── RTreeNSMLeafFrameFactory.java │ │ ├── RTreePolicy.java │ │ └── RTreePolicyType.java │ │ ├── impls │ │ ├── DoublePrimitiveValueProviderFactory.java │ │ ├── EntriesOrder.java │ │ ├── FloatPrimitiveValueProviderFactory.java │ │ ├── IntegerPrimitiveValueProviderFactory.java │ │ ├── PathList.java │ │ ├── RTree.java │ │ ├── RTreeCursorInitialState.java │ │ ├── RTreeOpContext.java │ │ ├── RTreeSearchCursor.java │ │ ├── RTreeSplitKey.java │ │ ├── Rectangle.java │ │ ├── SearchPredicate.java │ │ ├── TupleEntry.java │ │ ├── TupleEntryArrayList.java │ │ └── UnorderedSlotManager.java │ │ ├── linearize │ │ ├── HilbertDoubleComparator.java │ │ ├── HilbertDoubleComparatorFactory.java │ │ ├── ZCurveDoubleComparator.java │ │ ├── ZCurveDoubleComparatorFactory.java │ │ ├── ZCurveIntComparator.java │ │ └── ZCurveIntComparatorFactory.java │ │ ├── tuples │ │ ├── RTreeTypeAwareTupleWriter.java │ │ └── RTreeTypeAwareTupleWriterFactory.java │ │ └── util │ │ └── RTreeUtils.java ├── hyracks-storage-common │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── storage │ │ └── common │ │ ├── IResourceMemoryManager.java │ │ ├── IStorageManagerInterface.java │ │ ├── buffercache │ │ ├── AsyncFIFOPageQueueManager.java │ │ ├── BufferCache.java │ │ ├── CachedPage.java │ │ ├── ClockPageReplacementStrategy.java │ │ ├── DebugBufferCache.java │ │ ├── DelayPageCleanerPolicy.java │ │ ├── DirectBufferAllocator.java │ │ ├── FIFOLocalWriter.java │ │ ├── HeapBufferAllocator.java │ │ ├── IBufferCache.java │ │ ├── IBufferCacheInternal.java │ │ ├── ICacheMemoryAllocator.java │ │ ├── ICachedPage.java │ │ ├── ICachedPageInternal.java │ │ ├── IFIFOPageQueue.java │ │ ├── IFIFOPageWriter.java │ │ ├── IPageCleanerPolicy.java │ │ ├── IPageReplacementStrategy.java │ │ ├── IQueueInfo.java │ │ ├── QueueInfo.java │ │ └── ResourceHeapBufferAllocator.java │ │ ├── file │ │ ├── BufferedFileHandle.java │ │ ├── IFileMapManager.java │ │ ├── IFileMapProvider.java │ │ ├── ILocalResourceFactory.java │ │ ├── ILocalResourceFactoryProvider.java │ │ ├── ILocalResourceRepository.java │ │ ├── ILocalResourceRepositoryFactory.java │ │ ├── IResourceIdFactory.java │ │ ├── LocalResource.java │ │ ├── NoOpLocalResourceFactoryProvider.java │ │ ├── ResourceIdFactory.java │ │ ├── ResourceIdFactoryProvider.java │ │ ├── TransientFileMapManager.java │ │ ├── TransientLocalResourceFactory.java │ │ ├── TransientLocalResourceFactoryProvider.java │ │ ├── TransientLocalResourceRepository.java │ │ └── TransientLocalResourceRepositoryFactory.java │ │ └── sync │ │ └── LatchType.java ├── hyracks-test-support │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ ├── storage │ │ └── am │ │ │ ├── btree │ │ │ ├── AbstractModificationOperationCallbackTest.java │ │ │ ├── AbstractOperationCallbackTest.java │ │ │ ├── AbstractSearchOperationCallbackTest.java │ │ │ ├── OrderedIndexBulkLoadTest.java │ │ │ ├── OrderedIndexDeleteTest.java │ │ │ ├── OrderedIndexExamplesTest.java │ │ │ ├── OrderedIndexInsertTest.java │ │ │ ├── OrderedIndexMultiThreadTest.java │ │ │ ├── OrderedIndexSortedInsertTest.java │ │ │ ├── OrderedIndexTestContext.java │ │ │ ├── OrderedIndexTestDriver.java │ │ │ ├── OrderedIndexTestUtils.java │ │ │ ├── OrderedIndexUpdateTest.java │ │ │ └── OrderedIndexUpsertTest.java │ │ │ ├── common │ │ │ ├── AbstractIndexLifecycleTest.java │ │ │ ├── AbstractIndexTestWorker.java │ │ │ ├── CheckTuple.java │ │ │ ├── IIndexTestContext.java │ │ │ ├── IIndexTestWorkerFactory.java │ │ │ ├── ITreeIndexTestContext.java │ │ │ ├── ITreeIndexTestWorker.java │ │ │ ├── IndexMultiThreadTestDriver.java │ │ │ ├── IndexTestContext.java │ │ │ ├── TestOperationCallback.java │ │ │ ├── TestOperationSelector.java │ │ │ ├── TestWorkloadConf.java │ │ │ └── TreeIndexTestUtils.java │ │ │ ├── config │ │ │ └── AccessMethodTestsConfig.java │ │ │ └── rtree │ │ │ ├── AbstractRTreeBulkLoadTest.java │ │ │ ├── AbstractRTreeDeleteTest.java │ │ │ ├── AbstractRTreeExamplesTest.java │ │ │ ├── AbstractRTreeInsertTest.java │ │ │ ├── AbstractRTreeMultiThreadTest.java │ │ │ ├── AbstractRTreeTestContext.java │ │ │ ├── AbstractRTreeTestDriver.java │ │ │ ├── RTreeCheckTuple.java │ │ │ └── RTreeTestUtils.java │ │ └── test │ │ └── support │ │ ├── CounterContext.java │ │ ├── TestIndexLifecycleManagerProvider.java │ │ ├── TestJobletContext.java │ │ ├── TestNCApplicationContext.java │ │ ├── TestRootContext.java │ │ ├── TestStorageManagerComponentHolder.java │ │ ├── TestStorageManagerInterface.java │ │ ├── TestTaskContext.java │ │ ├── TestUtils.java │ │ └── TestVirtualBufferCacheProvider.java ├── hyracks-tests │ ├── hyracks-storage-am-bloomfilter-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── bloomfilter │ │ │ ├── BloomFilterTest.java │ │ │ ├── MurmurHashForITupleReferenceTest.java │ │ │ └── util │ │ │ ├── AbstractBloomFilterTest.java │ │ │ └── BloomFilterTestHarness.java │ ├── hyracks-storage-am-btree-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── btree │ │ │ ├── BTreeBulkLoadTest.java │ │ │ ├── BTreeDeleteTest.java │ │ │ ├── BTreeExamplesTest.java │ │ │ ├── BTreeInsertTest.java │ │ │ ├── BTreeLifecycleTest.java │ │ │ ├── BTreeModificationOperationCallbackTest.java │ │ │ ├── BTreeSearchCursorTest.java │ │ │ ├── BTreeSearchOperationCallbackTest.java │ │ │ ├── BTreeSortedInsertTest.java │ │ │ ├── BTreeStatsTest.java │ │ │ ├── BTreeUpdateSearchTest.java │ │ │ ├── BTreeUpdateTest.java │ │ │ ├── BTreeUpsertTest.java │ │ │ ├── FieldPrefixNSMTest.java │ │ │ ├── StorageManagerTest.java │ │ │ ├── multithread │ │ │ ├── BTreeMultiThreadTest.java │ │ │ ├── BTreeTestWorker.java │ │ │ └── BTreeTestWorkerFactory.java │ │ │ └── util │ │ │ ├── AbstractBTreeTest.java │ │ │ ├── BTreeTestContext.java │ │ │ └── BTreeTestHarness.java │ ├── hyracks-storage-am-lsm-btree-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── lsm │ │ │ └── btree │ │ │ ├── LSMBTreeBulkLoadTest.java │ │ │ ├── LSMBTreeDeleteTest.java │ │ │ ├── LSMBTreeExamplesTest.java │ │ │ ├── LSMBTreeInsertTest.java │ │ │ ├── LSMBTreeLifecycleTest.java │ │ │ ├── LSMBTreeMergeTest.java │ │ │ ├── LSMBTreeMergeTestDriver.java │ │ │ ├── LSMBTreeModificationOperationCallbackTest.java │ │ │ ├── LSMBTreeMultiBulkLoadTest.java │ │ │ ├── LSMBTreeSearchOperationCallbackTest.java │ │ │ ├── LSMBTreeUpdateTest.java │ │ │ ├── multithread │ │ │ ├── LSMBTreeMultiThreadTest.java │ │ │ ├── LSMBTreeTestWorker.java │ │ │ └── LSMBTreeTestWorkerFactory.java │ │ │ ├── perf │ │ │ ├── BTreeBulkLoadRunner.java │ │ │ ├── BTreePageSizePerf.java │ │ │ ├── BTreeRunner.java │ │ │ ├── ConcurrentSkipListRunner.java │ │ │ ├── IExperimentRunner.java │ │ │ ├── InMemoryBTreeRunner.java │ │ │ ├── InMemorySortRunner.java │ │ │ ├── LSMTreeRunner.java │ │ │ └── PerfExperiment.java │ │ │ ├── tuples │ │ │ └── LSMBTreeTuplesTest.java │ │ │ └── util │ │ │ ├── LSMBTreeTestContext.java │ │ │ └── LSMBTreeTestHarness.java │ ├── hyracks-storage-am-lsm-common-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── lsm │ │ │ └── common │ │ │ ├── DummyLSMIndexFileManager.java │ │ │ ├── DummyTreeFactory.java │ │ │ ├── LSMIndexFileManagerTest.java │ │ │ ├── VirtualBufferCacheTest.java │ │ │ └── VirtualFreePageManagerTest.java │ ├── hyracks-storage-am-lsm-invertedindex-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── lsm │ │ │ └── invertedindex │ │ │ ├── LSMInvertedIndexBulkLoadTest.java │ │ │ ├── LSMInvertedIndexDeleteTest.java │ │ │ ├── LSMInvertedIndexInsertTest.java │ │ │ ├── LSMInvertedIndexMergeTest.java │ │ │ ├── LSMInvertedIndexSearchTest.java │ │ │ ├── PartitionedLSMInvertedIndexBulkLoadTest.java │ │ │ ├── PartitionedLSMInvertedIndexDeleteTest.java │ │ │ ├── PartitionedLSMInvertedIndexInsertTest.java │ │ │ ├── PartitionedLSMInvertedIndexMergeTest.java │ │ │ ├── PartitionedLSMInvertedIndexSearchTest.java │ │ │ ├── common │ │ │ ├── AbstractInvertedIndexDeleteTest.java │ │ │ ├── AbstractInvertedIndexLoadTest.java │ │ │ ├── AbstractInvertedIndexSearchTest.java │ │ │ ├── AbstractInvertedIndexTest.java │ │ │ └── LSMInvertedIndexTestHarness.java │ │ │ ├── inmemory │ │ │ ├── InMemoryInvertedIndexDeleteTest.java │ │ │ ├── InMemoryInvertedIndexInsertTest.java │ │ │ ├── InMemoryInvertedIndexSearchTest.java │ │ │ ├── PartitionedInMemoryInvertedIndexDeleteTest.java │ │ │ ├── PartitionedInMemoryInvertedIndexInsertTest.java │ │ │ └── PartitionedInMemoryInvertedIndexSearchTest.java │ │ │ ├── multithread │ │ │ ├── LSMInvertedIndexMultiThreadTest.java │ │ │ ├── LSMInvertedIndexMultiThreadTestDriver.java │ │ │ ├── LSMInvertedIndexTestWorker.java │ │ │ ├── LSMInvertedIndexWorkerFactory.java │ │ │ └── PartitionedLSMInvertedIndexMultiThreadTest.java │ │ │ ├── ondisk │ │ │ ├── FixedSizeFrameTupleTest.java │ │ │ ├── OnDiskInvertedIndexBulkLoadTest.java │ │ │ ├── OnDiskInvertedIndexLifecycleTest.java │ │ │ ├── OnDiskInvertedIndexSearchTest.java │ │ │ ├── PartitionedOnDiskInvertedIndexBulkLoadTest.java │ │ │ └── PartitionedOnDiskInvertedIndexSearchTest.java │ │ │ ├── tokenizers │ │ │ ├── NGramTokenizerTest.java │ │ │ └── WordTokenizerTest.java │ │ │ └── util │ │ │ ├── LSMInvertedIndexTestContext.java │ │ │ └── LSMInvertedIndexTestUtils.java │ ├── hyracks-storage-am-lsm-rtree-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── lsm │ │ │ └── rtree │ │ │ ├── AbstractLSMRTreeExamplesTest.java │ │ │ ├── LSMRTreeBulkLoadTest.java │ │ │ ├── LSMRTreeDeleteTest.java │ │ │ ├── LSMRTreeExamplesTest.java │ │ │ ├── LSMRTreeInsertTest.java │ │ │ ├── LSMRTreeLifecycleTest.java │ │ │ ├── LSMRTreeMergeTest.java │ │ │ ├── LSMRTreeMergeTestDriver.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesBulkLoadTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesDeleteTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesExamplesTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesInsertTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesLifecycleTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesMergeTest.java │ │ │ ├── multithread │ │ │ ├── AbstractLSMRTreeTestWorker.java │ │ │ ├── LSMRTreeMultiThreadTest.java │ │ │ ├── LSMRTreeTestWorker.java │ │ │ ├── LSMRTreeTestWorkerFactory.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesMultiThreadTest.java │ │ │ ├── LSMRTreeWithAntiMatterTuplesTestWorker.java │ │ │ └── LSMRTreeWithAntiMatterTuplesTestWorkerFactory.java │ │ │ └── util │ │ │ ├── LSMRTreeTestContext.java │ │ │ ├── LSMRTreeTestHarness.java │ │ │ └── LSMRTreeWithAntiMatterTuplesTestContext.java │ ├── hyracks-storage-am-rtree-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── am │ │ │ └── rtree │ │ │ ├── RTreeBulkLoadTest.java │ │ │ ├── RTreeDeleteTest.java │ │ │ ├── RTreeExamplesTest.java │ │ │ ├── RTreeInsertTest.java │ │ │ ├── RTreeLifecycleTest.java │ │ │ ├── RTreeSearchCursorTest.java │ │ │ ├── multithread │ │ │ ├── RTreeMultiThreadTest.java │ │ │ ├── RTreeTestWorker.java │ │ │ └── RTreeTestWorkerFactory.java │ │ │ └── utils │ │ │ ├── AbstractRTreeTest.java │ │ │ ├── RTreeTestContext.java │ │ │ └── RTreeTestHarness.java │ ├── hyracks-storage-common-test │ │ ├── pom.xml │ │ └── src │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── storage │ │ │ └── common │ │ │ ├── BufferCacheRegressionTest.java │ │ │ └── BufferCacheTest.java │ └── pom.xml ├── hyracks-util │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── util │ │ │ ├── MathUtil.java │ │ │ ├── bytes │ │ │ ├── Base64Parser.java │ │ │ ├── Base64Printer.java │ │ │ ├── HexParser.java │ │ │ └── HexPrinter.java │ │ │ ├── encoding │ │ │ └── VarLenIntEncoderDecoder.java │ │ │ └── string │ │ │ ├── UTF8StringReader.java │ │ │ ├── UTF8StringUtil.java │ │ │ └── UTF8StringWriter.java │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── hyracks │ │ └── util │ │ ├── MathTest.java │ │ ├── encoding │ │ └── VarLenIntEncoderDecoderTest.java │ │ └── string │ │ ├── UTF8StringReaderWriterTest.java │ │ ├── UTF8StringSample.java │ │ └── UTF8StringUtilTest.java ├── hyracks-yarn │ ├── hyracks-yarn-am │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── assembly │ │ │ └── binary-assembly.xml │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── yarn │ │ │ └── am │ │ │ ├── HyracksYarnApplicationMaster.java │ │ │ └── manifest │ │ │ ├── AbstractProcess.java │ │ │ ├── ClusterController.java │ │ │ ├── ContainerSpecification.java │ │ │ ├── HyracksCluster.java │ │ │ ├── ManifestParser.java │ │ │ └── NodeController.java │ ├── hyracks-yarn-client │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── assembly │ │ │ └── binary-assembly.xml │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── yarn │ │ │ └── client │ │ │ ├── KillHyracksApplication.java │ │ │ └── LaunchHyracksApplication.java │ ├── hyracks-yarn-common │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── hyracks │ │ │ └── yarn │ │ │ └── common │ │ │ ├── protocols │ │ │ ├── amrm │ │ │ │ └── AMRMConnection.java │ │ │ └── clientrm │ │ │ │ ├── YarnApplication.java │ │ │ │ └── YarnClientRMConnection.java │ │ │ └── resources │ │ │ ├── LocalResourceHelper.java │ │ │ └── ResourceHelper.java │ └── pom.xml └── pom.xml ├── pom.xml └── src └── main ├── appended-resources └── supplemental-models.xml └── assembly └── source.xml /.gitignore: -------------------------------------------------------------------------------- 1 | invIndex* 2 | primaryBTree* 3 | bin 4 | target 5 | .classpath 6 | .settings 7 | .project 8 | ClusterControllerService 9 | actual 10 | build 11 | edu.uci.ics.hyracks.control.nc.NodeControllerService 12 | exception 13 | expected 14 | teststore1 15 | teststore2 16 | dev1 17 | dev2 18 | dev3 19 | dev4 20 | derby.log 21 | hadoop-conf-tmp 22 | metastore_db 23 | teststore 24 | output 25 | tmp 26 | dist 27 | *.iml 28 | .idea/ 29 | -------------------------------------------------------------------------------- /DISCLAIMER: -------------------------------------------------------------------------------- 1 | Apache AsterixDB is an effort undergoing incubation at the Apache Software 2 | Foundation (ASF), sponsored by the Apache Incubator PMC. 3 | 4 | Incubation is required of all newly accepted projects until a further review 5 | indicates that the infrastructure, communications, and decision making process 6 | have stabilized in a manner consistent with other successful ASF projects. 7 | 8 | While incubation status is not necessarily a reflection of the completeness 9 | or stability of the code, it does indicate that the project has yet to be 10 | fully endorsed by the ASF. 11 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache AsterixDB Hyracks and Algebricks 2 | Copyright 2015 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/ILogicalPlan.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.base; 20 | 21 | import java.util.List; 22 | 23 | import org.apache.commons.lang3.mutable.Mutable; 24 | 25 | public interface ILogicalPlan { 26 | public List> getRoots(); 27 | } 28 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/IVariableContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.base; 20 | 21 | public interface IVariableContext { 22 | 23 | public int getVarCounter(); 24 | 25 | public void setVarCounter(int varCounter); 26 | 27 | public LogicalVariable newVar(); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/LogicalExpressionTag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.base; 20 | 21 | public enum LogicalExpressionTag { 22 | FUNCTION_CALL, VARIABLE, CONSTANT 23 | } 24 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/IAlgebricksConstantValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.expressions; 20 | 21 | public interface IAlgebricksConstantValue { 22 | public boolean isNull(); 23 | 24 | public boolean isTrue(); 25 | 26 | public boolean isFalse(); 27 | } 28 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/IExpressionAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.expressions; 20 | 21 | public interface IExpressionAnnotation { 22 | public Object getObject(); 23 | 24 | public void setObject(Object object); 25 | 26 | public IExpressionAnnotation copy(); 27 | } 28 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/functions/IFunctionInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.functions; 20 | 21 | public interface IFunctionInfo { 22 | FunctionIdentifier getFunctionIdentifier(); 23 | 24 | public boolean isFunctional(); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/metadata/IDataSourceIndex.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.metadata; 20 | 21 | public interface IDataSourceIndex { 22 | public I getId(); 23 | 24 | public IDataSource getDataSource(); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/properties/ILogicalPropertiesVector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.properties; 20 | 21 | public interface ILogicalPropertiesVector { 22 | public Integer getNumberOfTuples(); 23 | 24 | public Integer getMaxOutputFrames(); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/properties/INodeDomain.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.properties; 20 | 21 | public interface INodeDomain { 22 | public boolean sameAs(INodeDomain domain); 23 | 24 | /** @return the number of nodes in that domain or null if unknown */ 25 | public Integer cardinality(); 26 | } 27 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/properties/IStructuralProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.properties; 20 | 21 | import java.util.Collection; 22 | 23 | import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable; 24 | 25 | public interface IStructuralProperty { 26 | public void getColumns(Collection columns); 27 | } 28 | -------------------------------------------------------------------------------- /algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/typing/ITypeEnvPointer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.core.algebra.typing; 20 | 21 | import org.apache.hyracks.algebricks.core.algebra.expressions.IVariableTypeEnvironment; 22 | 23 | public interface ITypeEnvPointer { 24 | public IVariableTypeEnvironment getTypeEnv(); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/IBinaryBooleanInspector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | public interface IBinaryBooleanInspector { 22 | public boolean getBooleanValue(byte[] bytes, int offset, int length); 23 | } 24 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/IBinaryIntegerInspector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IBinaryIntegerInspector { 24 | public int getIntegerValue(byte[] bytes, int offset, int length) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/INormalizedKeyComputerFactoryProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | import org.apache.hyracks.api.dataflow.value.INormalizedKeyComputerFactory; 22 | 23 | public interface INormalizedKeyComputerFactoryProvider { 24 | public INormalizedKeyComputerFactory getNormalizedKeyComputerFactory(Object type, boolean ascending); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/IPrinterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IPrinterFactory extends Serializable { 24 | public IPrinter createPrinter(); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/IPrinterFactoryProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IPrinterFactoryProvider { 24 | IPrinterFactory getPrinterFactory(Object type) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-data/src/main/java/org/apache/hyracks/algebricks/data/ITypeTraitProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.data; 20 | 21 | import org.apache.hyracks.api.dataflow.value.ITypeTraits; 22 | 23 | public interface ITypeTraitProvider { 24 | public ITypeTraits getTypeTrait(Object type); 25 | } 26 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/ast/ExpressionNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.ast; 20 | 21 | public abstract class ExpressionNode extends ASTNode { 22 | } 23 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/ast/RelationNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.ast; 20 | 21 | public abstract class RelationNode extends ASTNode { 22 | } 23 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/exceptions/PigletException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.exceptions; 20 | 21 | public class PigletException extends Exception { 22 | private static final long serialVersionUID = 1L; 23 | 24 | public PigletException(String message) { 25 | super(message); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/types/BagType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.types; 20 | 21 | public class BagType extends Type { 22 | @Override 23 | public Tag getTag() { 24 | return Tag.BAG; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/types/MapType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.types; 20 | 21 | public class MapType extends Type { 22 | @Override 23 | public Tag getTag() { 24 | return Tag.MAP; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/src/main/java/org/apache/hyracks/algebricks/examples/piglet/types/TupleType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.examples.piglet.types; 20 | 21 | public class TupleType extends Type { 22 | @Override 23 | public Tag getTag() { 24 | return Tag.TUPLE; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/testcases/q1.piglet: -------------------------------------------------------------------------------- 1 | R = load "nc1:data/file1.txt,nc2:data/file2.txt" as (id : int, name : chararray); 2 | dump R into "nc1:output"; 3 | -------------------------------------------------------------------------------- /algebricks/algebricks-examples/piglet-example/testcases/q2.piglet: -------------------------------------------------------------------------------- 1 | R = load "nc1:data/file1.txt,nc2:data/file2.txt" as (id : int, name : chararray); 2 | S = filter R by id == 5; 3 | dump S into "nc1:output"; 4 | -------------------------------------------------------------------------------- /algebricks/algebricks-runtime/src/main/java/org/apache/hyracks/algebricks/runtime/base/IUnnestingPositionWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.algebricks.runtime.base; 20 | 21 | import java.io.DataOutput; 22 | import java.io.IOException; 23 | 24 | public interface IUnnestingPositionWriter { 25 | public void write(DataOutput dataOutput, long position) throws IOException; 26 | } 27 | -------------------------------------------------------------------------------- /algebricks/algebricks-tests/data/simple/int-part1.tbl: -------------------------------------------------------------------------------- 1 | 0| 2 | 2| 3 | 4| 4 | 6| 5 | 8| 6 | 10| 7 | 12| 8 | -------------------------------------------------------------------------------- /algebricks/algebricks-tests/data/simple/int-part2.tbl: -------------------------------------------------------------------------------- 1 | 1| 2 | 3| 3 | 5| 4 | 7| 5 | 9| 6 | 11| 7 | -------------------------------------------------------------------------------- /algebricks/algebricks-tests/data/tpch0.001/region.tbl: -------------------------------------------------------------------------------- 1 | 0|AFRICA|lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to | 2 | 1|AMERICA|hs use ironic, even requests. s| 3 | 2|ASIA|ges. thinly even pinto beans ca| 4 | 3|EUROPE|ly final courts cajole furiously final excuse| 5 | 4|MIDDLE EAST|uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl| 6 | -------------------------------------------------------------------------------- /algebricks/algebricks-tests/data/tpch0.001/supplier.tbl: -------------------------------------------------------------------------------- 1 | 1|Supplier#000000001| N kD4on9OM Ipw3,gf0JBoQDd7tgrzrddZ|17|27-918-335-1736|5755.94|each slyly above the careful| 2 | 2|Supplier#000000002|89eJ5ksX3ImxJQBvxObC,|5|15-679-861-2259|4032.68| slyly bold instructions. idle dependen| 3 | 3|Supplier#000000003|q1,G3Pj6OjIuUYfUoH18BFTKP5aU9bEV3|1|11-383-516-1199|4192.40|blithely silent requests after the express dependencies are sl| 4 | 4|Supplier#000000004|Bk7ah4CK8SYQTepEmvMkkgMwg|15|25-843-787-7479|4641.08|riously even requests above the exp| 5 | 5|Supplier#000000005|Gcdm2rJRzl5qlTVzc|11|21-151-690-3663|-283.84|. slyly regular pinto bea| 6 | 6|Supplier#000000006|tQxuVm7s7CnK|14|24-696-997-4969|1365.79|final accounts. regular dolphins use against the furiously ironic decoys. | 7 | 7|Supplier#000000007|s,4TicNGB4uO6PaSqNBUq|23|33-990-965-2201|6820.35|s unwind silently furiously regular courts. final requests are deposits. requests wake quietly blit| 8 | 8|Supplier#000000008|9Sq4bBH2FQEmaFOocY45sRTxo6yuoG|17|27-498-742-3860|7627.85|al pinto beans. asymptotes haggl| 9 | 9|Supplier#000000009|1KhUgZegwM3ua7dsYmekYBsK|10|20-403-398-8662|5302.37|s. unusual, even requests along the furiously regular pac| 10 | 10|Supplier#000000010|Saygah3gYWMp72i PY|24|34-852-489-8585|3891.91|ing waters. regular requests ar| 11 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/application/ICCApplicationEntryPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.application; 20 | 21 | public interface ICCApplicationEntryPoint { 22 | public void start(ICCApplicationContext ccAppCtx, String[] args) throws Exception; 23 | 24 | public void stop() throws Exception; 25 | 26 | void startupCompleted() throws Exception; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/application/INCApplicationEntryPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.application; 20 | 21 | public interface INCApplicationEntryPoint { 22 | public void start(INCApplicationContext ncAppCtx, String[] args) throws Exception; 23 | 24 | public void notifyStartupComplete() throws Exception; 25 | 26 | public void stop() throws Exception; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/application/IStateDumpHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.application; 20 | 21 | import java.io.IOException; 22 | import java.io.OutputStream; 23 | 24 | public interface IStateDumpHandler { 25 | public void dumpState(OutputStream os) throws IOException; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/channels/IInputChannelMonitor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.channels; 20 | 21 | public interface IInputChannelMonitor { 22 | public void notifyFailure(IInputChannel channel); 23 | 24 | public void notifyDataAvailability(IInputChannel channel, int nFrames); 25 | 26 | public void notifyEndOfStream(IInputChannel channel); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/client/NodeStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.client; 20 | 21 | public enum NodeStatus { 22 | ALIVE, 23 | DEAD 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/client/impl/IConnectorDescriptorVisitor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.client.impl; 20 | 21 | import org.apache.hyracks.api.dataflow.IConnectorDescriptor; 22 | import org.apache.hyracks.api.exceptions.HyracksException; 23 | 24 | public interface IConnectorDescriptorVisitor { 25 | public void visit(IConnectorDescriptor conn) throws HyracksException; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/client/impl/IOperatorDescriptorVisitor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.client.impl; 20 | 21 | import org.apache.hyracks.api.dataflow.IOperatorDescriptor; 22 | import org.apache.hyracks.api.exceptions.HyracksException; 23 | 24 | public interface IOperatorDescriptorVisitor { 25 | public void visit(IOperatorDescriptor op) throws HyracksException; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/comm/IFrameReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.comm; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IFrameReader { 24 | void open() throws HyracksDataException; 25 | 26 | boolean nextFrame(IFrame frame) throws HyracksDataException; 27 | 28 | void close() throws HyracksDataException; 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/comm/IPartitionWriterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.comm; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IPartitionWriterFactory { 24 | public IFrameWriter createFrameWriter(int receiverIndex) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/constraints/IConstraintAcceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.constraints; 20 | 21 | public interface IConstraintAcceptor { 22 | public void addConstraint(Constraint constraint); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/constraints/expressions/LValueConstraintExpression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.constraints.expressions; 20 | 21 | public abstract class LValueConstraintExpression extends ConstraintExpression { 22 | private static final long serialVersionUID = 1L; 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/context/IHyracksCommonContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.context; 20 | 21 | import org.apache.hyracks.api.io.IIOManager; 22 | 23 | public interface IHyracksCommonContext extends IHyracksFrameMgrContext{ 24 | 25 | public IIOManager getIOManager(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/IOpenableDataReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IOpenableDataReader extends IDataReader { 24 | public void open() throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/IOpenableDataWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IOpenableDataWriter extends IDataWriter { 24 | public void open() throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/IOperatorNodePullable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow; 20 | 21 | public interface IOperatorNodePullable extends IOpenableDataReader { 22 | public void setDataReader(int index, IOpenableDataWriter writer); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IBinaryComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IBinaryComparator { 24 | public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IBinaryComparatorFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IBinaryComparatorFactory extends Serializable { 24 | public IBinaryComparator createBinaryComparator(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IBinaryHashFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IBinaryHashFunction { 24 | int hash(byte[] bytes, int offset, int length) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IBinaryHashFunctionFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IBinaryHashFunctionFactory extends Serializable { 24 | public IBinaryHashFunction createBinaryHashFunction(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IBinaryHashFunctionFamily.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IBinaryHashFunctionFamily extends Serializable { 24 | public IBinaryHashFunction createBinaryHashFunction(int seed); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | public interface IComparator { 22 | public int compare(T o1, T o2); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IComparatorFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IComparatorFactory extends Serializable { 24 | public IComparator createComparator(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IHashFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IHashFunction { 24 | public int hash(T o) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/IHashFunctionFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IHashFunctionFactory extends Serializable { 24 | public IHashFunction createHashFunction(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/ILinearizeComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | public interface ILinearizeComparator extends IBinaryComparator { 22 | public int getDimensions(); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/ILinearizeComparatorFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | public interface ILinearizeComparatorFactory extends IBinaryComparatorFactory { 22 | public ILinearizeComparator createBinaryComparator(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/INormalizedKeyComputer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | public interface INormalizedKeyComputer { 22 | public int normalize(byte[] bytes, int start, int length); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/INormalizedKeyComputerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface INormalizedKeyComputerFactory extends Serializable { 24 | public INormalizedKeyComputer createNormalizedKeyComputer(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/INullWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.DataOutput; 22 | 23 | import org.apache.hyracks.api.exceptions.HyracksDataException; 24 | 25 | public interface INullWriter { 26 | public void writeNull(DataOutput out) throws HyracksDataException; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/INullWriterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface INullWriterFactory extends Serializable { 24 | public INullWriter createNullWriter(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/ITuplePartitionComputerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ITuplePartitionComputerFactory extends Serializable { 24 | public ITuplePartitionComputer createPartitioner(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/ITuplePartitionComputerFamily.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ITuplePartitionComputerFamily extends Serializable { 24 | public ITuplePartitionComputer createPartitioner(int seed); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataflow/value/ITypeTraits.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataflow.value; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ITypeTraits extends Serializable { 24 | public boolean isFixedLength(); 25 | 26 | public int getFixedLength(); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataset/IDatasetManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataset; 20 | 21 | import java.util.Set; 22 | 23 | import org.apache.hyracks.api.job.JobId; 24 | 25 | public interface IDatasetManager { 26 | 27 | public Set getJobIds(); 28 | 29 | public IDatasetStateRecord getState(JobId jobId); 30 | 31 | public void deinitState(JobId jobId); 32 | } 33 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataset/IDatasetStateRecord.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataset; 20 | 21 | public interface IDatasetStateRecord { 22 | public long getTimestamp(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/dataset/IHyracksDataset.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.dataset; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | import org.apache.hyracks.api.job.JobId; 23 | 24 | public interface IHyracksDataset { 25 | public IHyracksDatasetReader createReader(JobId jobId, ResultSetId resultSetId) throws HyracksDataException; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/io/IFileHandle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.io; 20 | 21 | /** 22 | * IFileHandle is an interface that exists only for Java compilers to perform static typing 23 | * when handling file handle objects. Users must not implement this interface. 24 | */ 25 | public interface IFileHandle { 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/io/IIOFuture.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.io; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IIOFuture { 24 | public int synchronize() throws HyracksDataException, InterruptedException; 25 | 26 | public boolean isComplete(); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IActivityClusterGraphGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import java.util.Set; 22 | 23 | import org.apache.hyracks.api.constraints.Constraint; 24 | 25 | public interface IActivityClusterGraphGenerator { 26 | public Set getConstraints(); 27 | 28 | public ActivityClusterGraph initialize(); 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IConnectorDescriptorRegistry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import org.apache.hyracks.api.dataflow.ConnectorDescriptorId; 22 | import org.apache.hyracks.api.dataflow.IConnectorDescriptor; 23 | 24 | public interface IConnectorDescriptorRegistry { 25 | public ConnectorDescriptorId createConnectorDescriptor(IConnectorDescriptor conn); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IGlobalJobDataFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import java.io.Serializable; 22 | 23 | import org.apache.hyracks.api.context.IHyracksJobletContext; 24 | 25 | public interface IGlobalJobDataFactory extends Serializable { 26 | public Object createGlobalJobData(IHyracksJobletContext ctx); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IJobletEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | public interface IJobletEventListener { 22 | public void jobletStart(); 23 | 24 | public void jobletFinish(JobStatus status); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IJobletEventListenerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import java.io.Serializable; 22 | 23 | import org.apache.hyracks.api.context.IHyracksJobletContext; 24 | 25 | public interface IJobletEventListenerFactory extends Serializable { 26 | public IJobletEventListener createListener(IHyracksJobletContext ctx); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IOperatorDescriptorRegistry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import org.apache.hyracks.api.dataflow.IOperatorDescriptor; 22 | import org.apache.hyracks.api.dataflow.OperatorDescriptorId; 23 | 24 | public interface IOperatorDescriptorRegistry { 25 | public OperatorDescriptorId createOperatorDescriptorId(IOperatorDescriptor op); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/IOperatorEnvironment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | import org.apache.hyracks.api.dataflow.state.IStateObject; 22 | 23 | public interface IOperatorEnvironment { 24 | public void setStateObject(IStateObject taskState); 25 | 26 | public IStateObject getStateObject(Object id); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/JobFlag.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | public enum JobFlag { 22 | PROFILE_RUNTIME 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/job/JobStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.job; 20 | 21 | public enum JobStatus { 22 | INITIALIZED, 23 | RUNNING, 24 | TERMINATED, 25 | FAILURE, 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.messages; 20 | 21 | import java.io.Serializable; 22 | 23 | /** 24 | * @author rico 25 | */ 26 | public interface IMessage extends Serializable { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessageBroker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.messages; 20 | 21 | /** 22 | * @author rico 23 | */ 24 | public interface IMessageBroker { 25 | 26 | public void receivedMessage(IMessage message, String nodeId) throws Exception; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/resources/IDeallocatable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.resources; 20 | 21 | public interface IDeallocatable { 22 | public void deallocate(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/resources/IDeallocatableRegistry.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.resources; 20 | 21 | public interface IDeallocatableRegistry { 22 | public void registerDeallocatable(IDeallocatable deallocatable); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/resources/memory/IMemoryManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.resources.memory; 20 | 21 | public interface IMemoryManager { 22 | public long getMaximumMemory(); 23 | 24 | public long getAvailableMemory(); 25 | 26 | public boolean allocate(long memory); 27 | 28 | public void deallocate(long memory); 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/service/IControllerService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.api.service; 20 | 21 | public interface IControllerService { 22 | public void start() throws Exception; 23 | 24 | public void stop() throws Exception; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/job/IJobStatusConditionVariable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.control.cc.job; 20 | 21 | public interface IJobStatusConditionVariable { 22 | public void waitForCompletion() throws Exception; 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/web/util/IJSONOutputFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.control.cc.web.util; 20 | 21 | import org.json.JSONObject; 22 | 23 | public interface IJSONOutputFunction { 24 | public JSONObject invoke(String[] arguments) throws Exception; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-cc/src/main/resources/static/javascript/flot/jquery.flot.symbol.min.js: -------------------------------------------------------------------------------- 1 | (function(b){function a(h,e,g){var d={square:function(k,j,n,i,m){var l=i*Math.sqrt(Math.PI)/2;k.rect(j-l,n-l,l+l,l+l)},diamond:function(k,j,n,i,m){var l=i*Math.sqrt(Math.PI/2);k.moveTo(j-l,n);k.lineTo(j,n-l);k.lineTo(j+l,n);k.lineTo(j,n+l);k.lineTo(j-l,n)},triangle:function(l,k,o,j,n){var m=j*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3));var i=m*Math.sin(Math.PI/3);l.moveTo(k-m/2,o+i/2);l.lineTo(k+m/2,o+i/2);if(!n){l.lineTo(k,o-i/2);l.lineTo(k-m/2,o+i/2)}},cross:function(k,j,n,i,m){var l=i*Math.sqrt(Math.PI)/2;k.moveTo(j-l,n-l);k.lineTo(j+l,n+l);k.moveTo(j-l,n+l);k.lineTo(j+l,n-l)}};var f=e.points.symbol;if(d[f]){e.points.symbol=d[f]}}function c(d){d.hooks.processDatapoints.push(a)}b.plot.plugins.push({init:c,name:"symbols",version:"1.0"})})(jQuery); -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-cc/src/main/resources/static/javascript/flot/jquery.flot.threshold.min.js: -------------------------------------------------------------------------------- 1 | (function(B){var A={series:{threshold:null}};function C(D){function E(L,S,M){if(!S.threshold){return }var F=M.pointsize,I,O,N,G,K,H=B.extend({},S);H.datapoints={points:[],pointsize:F};H.label=null;H.color=S.threshold.color;H.threshold=null;H.originSeries=S;H.data=[];var P=S.threshold.below,Q=M.points,R=S.lines.show;threspoints=[];newpoints=[];for(I=0;I0&&Q[I-F]!=null){var J=(O-Q[I-F])/(N-Q[I-F+1])*(P-N)+O;K.push(J);K.push(P);for(m=2;m0){L.getData().push(H)}}D.hooks.processDatapoints.push(E)}B.plot.plugins.push({init:C,options:A,name:"threshold",version:"1.0"})})(jQuery); -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-cc/src/main/resources/static/stylesheet/adminconsole.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | div.time-chart { 20 | width: 600px; 21 | height: 300px; 22 | margin-left: auto; 23 | margin-right: auto; 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/application/ApplicationStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.control.common.application; 20 | 21 | public enum ApplicationStatus { 22 | CREATED, 23 | IN_INITIALIZATION, 24 | INITIALIZED, 25 | IN_DEINITIALIZATION, 26 | DEINITIALIZED 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/deployment/DeploymentStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.control.common.deployment; 21 | 22 | public enum DeploymentStatus { 23 | SUCCEED, 24 | FAIL 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/work/IResultCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.control.common.work; 20 | 21 | public interface IResultCallback { 22 | public void setValue(T result); 23 | 24 | public void setException(Exception e); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IComparable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface IComparable { 22 | public int compareTo(IPointable pointer); 23 | 24 | public int compareTo(byte[] bytes, int start, int length); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IDataOutputProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | import java.io.DataOutput; 22 | 23 | public interface IDataOutputProvider { 24 | public DataOutput getDataOutput(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IHashable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface IHashable { 22 | public int hash(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IMutableValueStorage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface IMutableValueStorage extends IValueReference, IDataOutputProvider { 22 | public void reset(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/INumeric.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface INumeric { 22 | public byte byteValue(); 23 | 24 | public short shortValue(); 25 | 26 | public int intValue(); 27 | 28 | public long longValue(); 29 | 30 | public float floatValue(); 31 | 32 | public double doubleValue(); 33 | } 34 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IPointable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface IPointable extends IValueReference { 22 | public void set(byte[] bytes, int start, int length); 23 | 24 | public void set(IValueReference pointer); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IPointableFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | import java.io.Serializable; 22 | 23 | import org.apache.hyracks.api.dataflow.value.ITypeTraits; 24 | 25 | public interface IPointableFactory extends Serializable { 26 | public IPointable createPointable(); 27 | 28 | public ITypeTraits getTypeTraits(); 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/api/IValueReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.data.std.api; 20 | 21 | public interface IValueReference { 22 | public byte[] getByteArray(); 23 | 24 | public int getStartOffset(); 25 | 26 | public int getLength(); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-data/hyracks-data-std/src/main/java/org/apache/hyracks/data/std/util/ICharIterator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.data.std.util; 21 | 22 | public interface ICharIterator { 23 | 24 | boolean hasNext(); 25 | 26 | char next(); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/data/accessors/IFrameTupleReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.common.data.accessors; 20 | 21 | import org.apache.hyracks.api.comm.IFrameTupleAccessor; 22 | 23 | public interface IFrameTupleReference extends ITupleReference { 24 | public IFrameTupleAccessor getFrameTupleAccessor(); 25 | 26 | public int getTupleIndex(); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/data/accessors/ITupleReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.common.data.accessors; 20 | 21 | public interface ITupleReference { 22 | public int getFieldCount(); 23 | 24 | public byte[] getFieldData(int fIdx); 25 | 26 | public int getFieldStart(int fIdx); 27 | 28 | public int getFieldLength(int fIdx); 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/data/parsers/IValueParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.common.data.parsers; 20 | 21 | import java.io.DataOutput; 22 | 23 | import org.apache.hyracks.api.exceptions.HyracksDataException; 24 | 25 | public interface IValueParser { 26 | void parse(char[] buffer, int start, int length, DataOutput out) throws HyracksDataException; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-common/src/main/java/org/apache/hyracks/dataflow/common/data/parsers/IValueParserFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.common.data.parsers; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IValueParserFactory extends Serializable { 24 | public IValueParser createValueParser(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-hadoop/src/main/java/org/apache/hyracks/dataflow/hadoop/mapreduce/IInputSplitProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.hadoop.mapreduce; 20 | 21 | import org.apache.hadoop.mapreduce.InputSplit; 22 | 23 | import org.apache.hyracks.api.exceptions.HyracksDataException; 24 | 25 | public interface IInputSplitProvider { 26 | public InputSplit next() throws HyracksDataException; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/base/IOpenableDataWriterOperator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.base; 20 | 21 | import org.apache.hyracks.api.dataflow.IOpenableDataWriter; 22 | 23 | public interface IOpenableDataWriterOperator extends IOpenableDataWriter { 24 | public void setDataWriter(int index, IOpenableDataWriter writer); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/buffermanager/IDeallocatableFramePool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.buffermanager; 21 | 22 | import java.nio.ByteBuffer; 23 | 24 | public interface IDeallocatableFramePool extends IFramePool { 25 | 26 | void deAllocateBuffer(ByteBuffer buffer); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/collectors/IPartitionAcceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.collectors; 20 | 21 | import org.apache.hyracks.api.channels.IInputChannel; 22 | import org.apache.hyracks.api.partitions.PartitionId; 23 | 24 | public interface IPartitionAcceptor { 25 | public void addPartition(PartitionId pid, IInputChannel channel); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/IFileSplitProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.file; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface IFileSplitProvider extends Serializable { 24 | public FileSplit[] getFileSplits(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/IRecordReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.file; 20 | 21 | public interface IRecordReader { 22 | 23 | public boolean read(Object[] record) throws Exception; 24 | 25 | public void close(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/file/IRecordWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.file; 20 | 21 | import java.io.File; 22 | 23 | public interface IRecordWriter { 24 | 25 | public void close(); 26 | 27 | public void write(Object[] record) throws Exception; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/group/AggregateType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.group; 21 | 22 | public enum AggregateType { 23 | PARTIAL, 24 | FINAL 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/map/IDeserializedMapperFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.map; 20 | 21 | import java.io.Serializable; 22 | 23 | import org.apache.hyracks.api.exceptions.HyracksDataException; 24 | 25 | public interface IDeserializedMapperFactory extends Serializable { 26 | public IDeserializedMapper createMapper() throws HyracksDataException; 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/sort/Algorithm.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.sort; 21 | 22 | public enum Algorithm { 23 | QUICK_SORT, 24 | MERGE_SORT 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/structures/IMinMaxHeap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.dataflow.std.structures; 20 | 21 | public interface IMinMaxHeap extends IMinHeap, IMaxHeap { 22 | } 23 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/structures/IResetable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.structures; 21 | 22 | public interface IResetable { 23 | void reset(T other); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/structures/IResetableComparable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.structures; 21 | 22 | public interface IResetableComparable extends IResetable, Comparable{ 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/main/java/org/apache/hyracks/dataflow/std/structures/IResetableComparableFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.structures; 21 | 22 | public interface IResetableComparableFactory { 23 | IResetableComparable createResetableComparable(); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-dataflow-std/src/test/java/org/apache/hyracks/dataflow/std/sort/Utility.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.dataflow.std.sort; 21 | 22 | public class Utility { 23 | 24 | public static String repeatString(char ch, int times) { 25 | return new String(new char[times]).replace('\0', ch); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/bin/startAllNCs.sh: -------------------------------------------------------------------------------- 1 | #/* 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | #*/ 19 | PREGELIX_PATH=`pwd` 20 | 21 | for i in `cat conf/slaves` 22 | do 23 | ssh $i "cd ${PREGELIX_PATH}; bin/startnc.sh" 24 | done 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/bin/startCluster.sh: -------------------------------------------------------------------------------- 1 | #/* 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | #*/ 19 | bin/startcc.sh 20 | sleep 5 21 | bin/startAllNCs.sh 22 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/bin/stopAllNCs.sh: -------------------------------------------------------------------------------- 1 | #/* 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | #*/ 19 | PREGELIX_PATH=`pwd` 20 | 21 | for i in `cat conf/slaves` 22 | do 23 | ssh $i "cd ${PREGELIX_PATH}; bin/stopnc.sh" 24 | done 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/bin/stopCluster.sh: -------------------------------------------------------------------------------- 1 | #/* 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | #*/ 19 | bin/stopAllNCs.sh 20 | sleep 2 21 | bin/stopcc.sh 22 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/bin/stopcc.sh: -------------------------------------------------------------------------------- 1 | #/* 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | #*/ 19 | hostname 20 | . conf/cluster.properties 21 | 22 | #Kill process 23 | PID=`ps -ef|grep ${USER}|grep java|grep hyracks|awk '{print $2}'` 24 | echo $PID 25 | kill -9 $PID 26 | 27 | #Clean up CC temp dir 28 | rm -rf $CCTMP_DIR/* 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/conf/master: -------------------------------------------------------------------------------- 1 | localhost 2 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/conf/slaves: -------------------------------------------------------------------------------- 1 | localhost 2 | -------------------------------------------------------------------------------- /hyracks/hyracks-dist/src/main/resources/conf/topology-template.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-documentation/src/books/user-guide/sec-hyrackscli-commands.apt: -------------------------------------------------------------------------------- 1 | ~~ Licensed to the Apache Software Foundation (ASF) under one 2 | ~~ or more contributor license agreements. See the NOTICE file 3 | ~~ distributed with this work for additional information 4 | ~~ regarding copyright ownership. The ASF licenses this file 5 | ~~ to you under the Apache License, Version 2.0 (the 6 | ~~ "License"); you may not use this file except in compliance 7 | ~~ with the License. You may obtain a copy of the License at 8 | ~~ 9 | ~~ http://www.apache.org/licenses/LICENSE-2.0 10 | ~~ 11 | ~~ Unless required by applicable law or agreed to in writing, 12 | ~~ software distributed under the License is distributed on an 13 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | ~~ KIND, either express or implied. See the License for the 15 | ~~ specific language governing permissions and limitations 16 | ~~ under the License. 17 | 18 | Hyracks CLI Commands 19 | 20 | * Connecting to a Hyracks Cluster Controller 21 | 22 | connect to "[:]"; 23 | 24 | * Creating an application 25 | 26 | create application ""; 27 | 28 | * Destroying an application 29 | 30 | destroy application ; 31 | -------------------------------------------------------------------------------- /hyracks/hyracks-documentation/src/books/user-guide/sec-introduction-whatis.apt: -------------------------------------------------------------------------------- 1 | ~~ Licensed to the Apache Software Foundation (ASF) under one 2 | ~~ or more contributor license agreements. See the NOTICE file 3 | ~~ distributed with this work for additional information 4 | ~~ regarding copyright ownership. The ASF licenses this file 5 | ~~ to you under the Apache License, Version 2.0 (the 6 | ~~ "License"); you may not use this file except in compliance 7 | ~~ with the License. You may obtain a copy of the License at 8 | ~~ 9 | ~~ http://www.apache.org/licenses/LICENSE-2.0 10 | ~~ 11 | ~~ Unless required by applicable law or agreed to in writing, 12 | ~~ software distributed under the License is distributed on an 13 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | ~~ KIND, either express or implied. See the License for the 15 | ~~ specific language governing permissions and limitations 16 | ~~ under the License. 17 | 18 | What is Hyracks? 19 | 20 | Hyracks is a partitioned-parallel platform for running data-intensive computation on a shared-nothing cluster of commodity machines. 21 | -------------------------------------------------------------------------------- /hyracks/hyracks-examples/hyracks-integration-tests/.gitignore: -------------------------------------------------------------------------------- 1 | primary*/ 2 | secondary*/ 3 | inv*/ 4 | -------------------------------------------------------------------------------- /hyracks/hyracks-examples/hyracks-integration-tests/data/tpch0.001/region.tbl: -------------------------------------------------------------------------------- 1 | 0|AFRICA|lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to | 2 | 1|AMERICA|hs use ironic, even requests. s| 3 | 2|ASIA|ges. thinly even pinto beans ca| 4 | 3|EUROPE|ly final courts cajole furiously final excuse| 5 | 4|MIDDLE EAST|uickly special accounts cajole carefully blithely close requests. carefully final asymptotes haggle furiousl| 6 | -------------------------------------------------------------------------------- /hyracks/hyracks-examples/text-example/textclient/src/main/licenses/NOTICE: -------------------------------------------------------------------------------- 1 | Apache AsterixDB Hyracks Text Client Example 2 | Copyright 2016 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | 7 | AsterixDB utilizes many libraries, which come with the following applicable NOTICE(s): 8 | 9 | - lib/httpclient-4.3.jar 10 | 11 | Apache HttpClient 12 | Copyright 1999-2013 The Apache Software Foundation 13 | 14 | This product includes software developed at 15 | The Apache Software Foundation (http://www.apache.org/). 16 | 17 | - lib/httpcore-4.3.jar 18 | 19 | Apache HttpCore 20 | Copyright 2005-2013 The Apache Software Foundation 21 | 22 | This product includes software developed at 23 | The Apache Software Foundation (http://www.apache.org/). 24 | 25 | 26 | This project contains annotations derived from JCIP-ANNOTATIONS 27 | Copyright (c) 2005 Brian Goetz and Tim Peierls. See http://www.jcip.net 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-hdfs/hyracks-hdfs-core/src/main/java/org/apache/hyracks/hdfs/api/INcCollection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.hdfs.api; 20 | 21 | import org.apache.hadoop.mapred.InputSplit; 22 | 23 | @SuppressWarnings("deprecation") 24 | public interface INcCollection { 25 | 26 | public String findNearestAvailableSlot(InputSplit split); 27 | 28 | public int numAvailableSlots(); 29 | } 30 | -------------------------------------------------------------------------------- /hyracks/hyracks-ipc/src/main/java/org/apache/hyracks/ipc/api/IIPCI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.ipc.api; 20 | 21 | public interface IIPCI { 22 | public void deliverIncomingMessage(IIPCHandle handle, long mid, long rmid, Object payload, Exception exception); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-ipc/src/main/java/org/apache/hyracks/ipc/api/IResponseCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.ipc.api; 20 | 21 | public interface IResponseCallback { 22 | public void callback(IIPCHandle handle, Object response, Exception exception); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-ipc/src/main/java/org/apache/hyracks/ipc/impl/HandleState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.ipc.impl; 20 | 21 | enum HandleState { 22 | INITIAL, 23 | CONNECT_SENT, 24 | CONNECT_RECEIVED, 25 | CONNECTED, 26 | CONNECT_FAILED, 27 | CLOSED, 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-net/src/main/java/org/apache/hyracks/net/buffers/IBufferAcceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.net.buffers; 20 | 21 | import java.nio.ByteBuffer; 22 | 23 | /** 24 | * Accepts buffers. 25 | * 26 | * @author vinayakb 27 | */ 28 | public interface IBufferAcceptor { 29 | /** 30 | * Accept a buffer. 31 | * 32 | * @param buffer 33 | */ 34 | public void accept(ByteBuffer buffer); 35 | } 36 | -------------------------------------------------------------------------------- /hyracks/hyracks-net/src/main/java/org/apache/hyracks/net/protocols/muxdemux/IBufferFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.net.protocols.muxdemux; 20 | 21 | import java.nio.ByteBuffer; 22 | 23 | /** 24 | * @author yingyib 25 | */ 26 | public interface IBufferFactory { 27 | 28 | public ByteBuffer createBuffer(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /hyracks/hyracks-net/src/main/java/org/apache/hyracks/net/protocols/muxdemux/IEventCounter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.net.protocols.muxdemux; 20 | 21 | public interface IEventCounter { 22 | public void increment(); 23 | 24 | public void decrement(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/api/ITupleAcceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.btree.api; 21 | 22 | import org.apache.hyracks.dataflow.common.data.accessors.ITupleReference; 23 | 24 | public interface ITupleAcceptor { 25 | public boolean accept(ITupleReference tuple); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-btree/src/main/java/org/apache/hyracks/storage/am/btree/frames/BTreeLeafFrameType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.btree.frames; 21 | 22 | public enum BTreeLeafFrameType { 23 | REGULAR_NSM, 24 | FIELD_PREFIX_COMPRESSED_NSM 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/IMetadataManagerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.common.api; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IMetadataManagerFactory { 24 | public IMetaDataPageManager createFreePageManager() throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/IPrimitiveValueProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | public interface IPrimitiveValueProvider { 23 | public double getValue(byte[] bytes, int offset); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/IPrimitiveValueProviderFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface IPrimitiveValueProviderFactory extends Serializable { 25 | public IPrimitiveValueProvider createPrimitiveValueProvider(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexFrameCompressor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | import org.apache.hyracks.storage.am.common.ophelpers.MultiComparator; 23 | 24 | public interface ITreeIndexFrameCompressor { 25 | public boolean compress(ITreeIndexFrame frame, MultiComparator cmp) throws Exception; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexFrameFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.common.api; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ITreeIndexFrameFactory extends Serializable { 24 | public ITreeIndexFrame createFrame(); 25 | public ITreeIndexTupleWriterFactory getTupleWriterFactory(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexMetaDataFrameFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | public interface ITreeIndexMetaDataFrameFactory { 23 | public ITreeIndexMetaDataFrame createFrame(); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexTupleWriterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface ITreeIndexTupleWriterFactory extends Serializable { 25 | public ITreeIndexTupleWriter createTupleWriter(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITupleFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | import org.apache.hyracks.dataflow.common.data.accessors.IFrameTupleReference; 23 | 24 | public interface ITupleFilter { 25 | public boolean accept(IFrameTupleReference tuple) throws Exception; 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITupleUpdaterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.api; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface ITupleUpdaterFactory extends Serializable { 25 | public ITupleUpdater createTupleUpdater(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/IVirtualMetaDataPageManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.common.api; 20 | 21 | public interface IVirtualMetaDataPageManager extends IMetaDataPageManager { 22 | public int getCapacity(); 23 | 24 | public void reset(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/datagen/IFieldValueGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.datagen; 21 | 22 | public interface IFieldValueGenerator { 23 | public T next(); 24 | public void reset(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/frames/FrameOpSpaceStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.frames; 21 | 22 | public enum FrameOpSpaceStatus { 23 | INSUFFICIENT_SPACE, SUFFICIENT_CONTIGUOUS_SPACE, SUFFICIENT_SPACE, SUFFICIENT_INPLACE_SPACE 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/ophelpers/FindTupleMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.ophelpers; 21 | 22 | public enum FindTupleMode { 23 | INCLUSIVE, EXCLUSIVE, EXCLUSIVE_ERROR_IF_EXISTS, EXACT 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/ophelpers/FindTupleNoExactMatchPolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.ophelpers; 21 | 22 | public enum FindTupleNoExactMatchPolicy { 23 | LOWER_KEY, HIGHER_KEY, NONE 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/ophelpers/IndexOp.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.common.ophelpers; 21 | 22 | public enum IndexOp { 23 | INSERT, DELETE, UPDATE, UPSERT, SEARCH, DISKORDERSCAN, PHYSICALDELETE 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMComponentFilterFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | public interface ILSMComponentFilterFactory { 22 | public ILSMComponentFilter createLSMComponentFilter(); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMComponentFilterFrameFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | public interface ILSMComponentFilterFrameFactory { 22 | public ILSMComponentFilterFrame createFrame(); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMIOOperationCallbackFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ILSMIOOperationCallbackFactory extends Serializable { 24 | public ILSMIOOperationCallback createIOOperationCallback(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMIOOperationCallbackProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | public interface ILSMIOOperationCallbackProvider { 22 | public ILSMIOOperationCallback getIOOperationCallback(ILSMIndex index); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMIOOperationScheduler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface ILSMIOOperationScheduler { 24 | public void scheduleOperation(ILSMIOOperation operation) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/ILSMTreeTupleReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.common.api; 21 | 22 | import org.apache.hyracks.storage.am.common.api.ITreeIndexTupleReference; 23 | 24 | public interface ILSMTreeTupleReference extends ITreeIndexTupleReference { 25 | public boolean isAntimatter(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/api/LSMOperationType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.am.lsm.common.api; 20 | 21 | public enum LSMOperationType { 22 | SEARCH, 23 | MODIFICATION, 24 | FORCE_MODIFICATION, 25 | FLUSH, 26 | MERGE, 27 | REPLICATE 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/LSMComponentState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.common.impls; 21 | 22 | public enum LSMComponentState { 23 | FLUSHING, 24 | MERGING, 25 | DONE_FLUSHING, 26 | DONE_MERGING 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/api/IInvertedIndexSearchModifierFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.api; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface IInvertedIndexSearchModifierFactory extends Serializable { 25 | public IInvertedIndexSearchModifier createSearchModifier(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/api/IInvertedListBuilderFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.api; 21 | 22 | public interface IInvertedListBuilderFactory { 23 | public IInvertedListBuilder create(); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/api/IObjectFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.api; 21 | 22 | public interface IObjectFactory { 23 | public T create(); 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface IBinaryTokenizerFactory extends Serializable { 25 | public IBinaryTokenizer createTokenizer(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers; 21 | 22 | public interface INGramToken { 23 | public int getNumPostChars(); 24 | 25 | public int getNumPreChars(); 26 | 27 | public void setNumPrePostChars(int numPreChars, int numPostChars); 28 | } 29 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/ITokenFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers; 21 | 22 | import java.io.Serializable; 23 | 24 | public interface ITokenFactory extends Serializable { 25 | public IToken createToken(); 26 | } 27 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/frames/RTreePolicyType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.rtree.frames; 21 | 22 | public enum RTreePolicyType { 23 | RTREE, RSTARTREE 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | package org.apache.hyracks.storage.am.rtree.impls; 21 | 22 | public enum EntriesOrder { 23 | ASCENDING, DESCENDING 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/IResourceMemoryManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface IResourceMemoryManager { 24 | void allocateMemory(String resourcePath) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/IBufferCacheInternal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common.buffercache; 20 | 21 | public interface IBufferCacheInternal extends IBufferCache { 22 | boolean isClean(); 23 | 24 | public ICachedPageInternal getPage(int cpid); 25 | 26 | public void addPage(ICachedPageInternal page); 27 | } 28 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/IFIFOPageQueue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2013 by The Regents of the University of California 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * you may obtain a copy of the License from 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | package org.apache.hyracks.storage.common.buffercache; 17 | 18 | import org.apache.hyracks.api.exceptions.HyracksDataException; 19 | 20 | public interface IFIFOPageQueue { 21 | public void put(ICachedPage page) throws HyracksDataException; 22 | } 23 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/IFIFOPageWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2013 by The Regents of the University of California 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * you may obtain a copy of the License from 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | package org.apache.hyracks.storage.common.buffercache; 17 | 18 | import org.apache.hyracks.api.exceptions.HyracksDataException; 19 | 20 | 21 | public interface IFIFOPageWriter { 22 | public void write(ICachedPage page, BufferCache bufferCache) throws HyracksDataException; 23 | 24 | void sync(int fileId, BufferCache bufferCache) throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/IQueueInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2013 by The Regents of the University of California 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * you may obtain a copy of the License from 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | */ 15 | 16 | package org.apache.hyracks.storage.common.buffercache; 17 | 18 | public interface IQueueInfo { 19 | 20 | /** 21 | * Returns whether this queued page should notify all waiters (i.e. it is a low water mark) 22 | * @return 23 | */ 24 | 25 | boolean hasWaiters(); 26 | 27 | /** 28 | * Whether or not this cached page is a poisoned page. 29 | * @return 30 | */ 31 | 32 | boolean isPoison(); 33 | } 34 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/file/ILocalResourceFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common.file; 20 | 21 | public interface ILocalResourceFactory { 22 | public LocalResource createLocalResource(long resourceId, String resourceName, int partition, String resourcePath); 23 | } 24 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/file/ILocalResourceFactoryProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common.file; 20 | 21 | import java.io.Serializable; 22 | 23 | public interface ILocalResourceFactoryProvider extends Serializable { 24 | public ILocalResourceFactory getLocalResourceFactory(); 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/file/ILocalResourceRepositoryFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common.file; 20 | 21 | import org.apache.hyracks.api.exceptions.HyracksDataException; 22 | 23 | public interface ILocalResourceRepositoryFactory { 24 | public ILocalResourceRepository createRepository() throws HyracksDataException; 25 | } 26 | -------------------------------------------------------------------------------- /hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/sync/LatchType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.storage.common.sync; 20 | 21 | public enum LatchType { 22 | LATCH_X, 23 | LATCH_S 24 | } 25 | -------------------------------------------------------------------------------- /hyracks/hyracks-yarn/hyracks-yarn-am/src/main/java/org/apache/hyracks/yarn/am/manifest/ClusterController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.yarn.am.manifest; 20 | 21 | public class ClusterController extends AbstractProcess { 22 | } 23 | -------------------------------------------------------------------------------- /hyracks/hyracks-yarn/hyracks-yarn-am/src/main/java/org/apache/hyracks/yarn/am/manifest/NodeController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.hyracks.yarn.am.manifest; 20 | 21 | public class NodeController extends AbstractProcess { 22 | private String id; 23 | 24 | public void setId(String id) { 25 | this.id = id; 26 | } 27 | 28 | public String getId() { 29 | return id; 30 | } 31 | } 32 | --------------------------------------------------------------------------------