text: /*****************************************************************************
   *                                                                           *
   *  Copyright 2018 Rice University                                           *
   *                                                                           *
   *  Licensed under the Apache License, Version 2.0 (the "License");          *
   *  you may not use this file except in compliance with the License.         *
   *  You may obtain a copy of the License at                                  *
   *                                                                           *
   *      http://www.apache.org/licenses/LICENSE-2.0                           *
   *                                                                           *
   *  Unless required by applicable law or agreed to in writing, software      *
   *  distributed under the License is distributed on an "AS IS" BASIS,        *
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
   *  See the License for the specific language governing permissions and      *
   *  limitations under the License.                                           *
   *                                                                           *
   *****************************************************************************/
  
  #ifndef LINEITEM_PARTITION_COMP_H
  #define LINEITEM_PARTITION_COMP_H
  
  
  #include "TPCHSchema.h"
  #include "PDBDebug.h"
  #include "PDBString.h"
  #include "Query.h"
  #include "Lambda.h"
  #include "PDBClient.h"
  #include "DataTypes.h"
  #include "InterfaceFunctions.h"
  #include "Handle.h"
  #include "LambdaCreationFunctions.h"
  #include "UseTemporaryAllocationBlock.h"
  #include "Pipeline.h"
  #include "VectorSink.h"
  #include "HashSink.h"
  #include "MapTupleSetIterator.h"
  #include "VectorTupleSetIterator.h"
  #include "ComputePlan.h"
  #include "QueryOutput.h"
  #include "SelectionComp.h"
  #include "JoinComp.h"
  #include "AggregateComp.h"
  #include "PartitionComp.h"
  #include "Avg.h"
  #include "DoubleSumResult.h"
  #include "AvgResult.h"
  
  using namespace pdb;
  
  namespace tpch {
  
  
  class LineItemPartitionComp : public PartitionComp<int, TPCHLineItem> {
  
  
  public:
  
      ENABLE_DEEP_COPY
  
      LineItemPartitionComp () {}
  
      Lambda<int> getProjection(Handle<TPCHLineItem> checkMe) override {
          return makeLambdaFromMember(checkMe, l_partkey);
      }
  
  }; 
  
  
  }
  
  #endif
  