Code Monkey home page Code Monkey logo

wordsplitment's Introduction

주요 고려사항

  1. 요구사항 준수
  2. 프로그램 실행 시 Producer는 Single Thread, Consumer는 Multi Thread(5개) 생성
  3. Partition 수에 따른 Queue 수 생성
  4. Queue에 데이터 입력 또는 추출 시 Queue의 Min 또는 Max 데이터를 가진 Queue 선택
  5. 중복 단어 검증 시 dataMart를 활용하여 검증

image

클래스 설명

  1. Main Class
  • Main 클래스
  1. FileUtils Class
  • File에 대한 입,출력 관리 클래스
  1. Message Class
  • Queue를 통해 word 전달을 위한 Message 객체(word = 단어, partitionSeq = 파티션 순서)
  1. MessageQueue Class
  • Queue에 Message를 넣고, 빼는 클래스
  • 파티션 수에 따라 병렬 처리 기능
  • 중복된 단어(Mart) 있을 시 이전에 넣은 파티션 시퀀스에 해당 Message 삽입
  1. Producer Class
  • Queue에 데이터 삽입
  1. Consumer Class
  • Queue에서 데이터 추출

실행

$ java -jar textSplitment.jar FileName Directory Partition

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.