카페검색 본문
카페글 본문
-
Reduce 코드 2016.01.21해당카페글 미리보기
보다 다양한 강좌를 보실 수 있습니다. public static class Reduce extends Reducer { public void reduce(Text key, Iterable values, Context context) throws IOException, InterruptedException { int sum = 0; for (IntWritable val : values) sum...
-
Identity Reducer 기타.. 2015.09.21해당카페글 미리보기
co.kr에 오시면 보다 다양한 강좌를 보실 수 있습니다. •reduce 메소드에서 같은 키값을 갖는 밸류들의 리스트가 들어오는 Iterable의 경우 한번밖에 읽을 수 없음. •Job클래스의 setNumReduceTasks로 reducer의 수 조절가능. –만일 reducer의 수를...
-
Identity Reducer 2015.09.18해당카페글 미리보기
바로 Identity Reducer. •입력으로 들어온 키,밸류를 그대로 출력으로 내보냄. protected void reduce(KEYIN key, Iterable values, Context context ) throws IOException, InterruptedException { for(VALUEIN value: values) { context.write((KEYOUT...
-
[빅데이터학원,빅데이터강좌, 하둡프로그래밍 실무교육,강좌예제] Reducer 클래스.02 2015.06.19해당카페글 미리보기
class Reduce extends Reducer { private LongWritable sumWritable = new LongWritable(); public void reduce(Text key, Iterable values, Context context) throws IOException, InterruptedException { long sum = 0; for (LongWritable val : values...
-
[빅데이터학원,빅데이터강좌, 하둡프로그래밍 실무교육,강좌예제] MapReduce 템플릿 (1) 2015.06.01해당카페글 미리보기
public static class Reduce extends Reducer { K3 k3 = new K3(); V3 v3 = new V3(); public void reduce(K2 key, Iterable values, Context context) { .... context.write(k3, v3); } } 빅데이터,하둡프로그래밍,R,NO-SQL,클라우드,몽고DB,빅데이터분석...
-
컬렉션 : public interface Collection<E> extends Iterable<E> - 대표 ;벡터,Stack, Vector, LinkedList, TreeSet, HashSet 2014.01.27해당카페글 미리보기
인터페이스 http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html public interface Collection extends Iterable Collection은 객체의 저장소 역할을 하기 위한 많은 추상 메서드를 포함하고 있습니다. Collection 인터페이스의 추상...
-
Introduction to Python scripting for Blender 2.5x(2) -2.4 코드 분석 2013.05.02해당카페글 미리보기
faces의 리스트로부터 a mesh를 만든다. 보다 훌륭한 방법을 찾기까지는 이것을 사용할 것이다. Parameters: vertices (iterable object) – 실수 3개 한 벌. 각각은 (X, Y, Z)를 나타낸다. eg: [(0.0, 1.0, 0.5), ...]. edges (iterable object) – int형...
-
연도별 항공 출발 지연 데이터 분석 2012.11.27해당카페글 미리보기
입력 키를 그대로 사용하고, 지연횟수만을 합산하기때문에 IntWritable로 선언한다. */ public void reduce(Text key, Iterable values, Context context) throws IOException, InterruptedException { int sum = 0; // 입력 데이터 값을 순회하면서, 지연...
-
http://www.xiexingcun.com/xy8/index.asp 2012.11.25해당카페글 미리보기
return function() { return __method.apply(object, args.concat($A(arguments))); } } var $A = Array.from = function(iterable) { if (!iterable) return []; if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for...
-
맵리듀스 기본 예제 2012.11.20해당카페글 미리보기
값 타입, 출력 키 타입, 출력 값 타입> { private IntWritable result = new IntWritable(); public void reduce(Text key, Iterable values, Context context) throws IOException, InterruptedException // (입력 키 타입, Iterator<입력 값 타입...