1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
package org.apache.giraph.graph; |
19 | |
|
20 | |
import org.apache.giraph.conf.DefaultImmutableClassesGiraphConfigurable; |
21 | |
import org.apache.giraph.edge.Edge; |
22 | |
import org.apache.giraph.edge.MutableEdge; |
23 | |
import org.apache.hadoop.io.Writable; |
24 | |
import org.apache.hadoop.io.WritableComparable; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class OnlyIdVertex<I extends WritableComparable> |
32 | |
extends DefaultImmutableClassesGiraphConfigurable<I, Writable, Writable> |
33 | |
implements Vertex<I, Writable, Writable> { |
34 | |
|
35 | |
private I id; |
36 | |
|
37 | |
@Override |
38 | |
public void initialize( |
39 | |
I id, Writable value, Iterable<Edge<I, Writable>> edges) { |
40 | 0 | throw new UnsupportedOperationException(); |
41 | |
} |
42 | |
|
43 | |
@Override |
44 | |
public void initialize(I id, Writable value) { |
45 | 0 | throw new UnsupportedOperationException(); |
46 | |
} |
47 | |
|
48 | |
@Override |
49 | |
public I getId() { |
50 | 0 | return id; |
51 | |
} |
52 | |
|
53 | |
public void setId(I id) { |
54 | 0 | this.id = id; |
55 | 0 | } |
56 | |
|
57 | |
@Override |
58 | |
public Writable getValue() { |
59 | 0 | throw new UnsupportedOperationException(); |
60 | |
} |
61 | |
|
62 | |
@Override |
63 | |
public void setValue(Writable value) { |
64 | 0 | throw new UnsupportedOperationException(); |
65 | |
} |
66 | |
|
67 | |
@Override |
68 | |
public void voteToHalt() { |
69 | 0 | throw new UnsupportedOperationException(); |
70 | |
} |
71 | |
|
72 | |
@Override |
73 | |
public int getNumEdges() { |
74 | 0 | throw new UnsupportedOperationException(); |
75 | |
} |
76 | |
|
77 | |
@Override |
78 | |
public Iterable<Edge<I, Writable>> getEdges() { |
79 | 0 | throw new UnsupportedOperationException(); |
80 | |
} |
81 | |
|
82 | |
@Override |
83 | |
public void setEdges(Iterable<Edge<I, Writable>> edges) { |
84 | 0 | throw new UnsupportedOperationException(); |
85 | |
} |
86 | |
|
87 | |
@Override |
88 | |
public Iterable<MutableEdge<I, Writable>> getMutableEdges() { |
89 | 0 | throw new UnsupportedOperationException(); |
90 | |
} |
91 | |
|
92 | |
@Override |
93 | |
public Writable getEdgeValue(I targetVertexId) { |
94 | 0 | throw new UnsupportedOperationException(); |
95 | |
} |
96 | |
|
97 | |
@Override |
98 | |
public void setEdgeValue(I targetVertexId, Writable edgeValue) { |
99 | 0 | throw new UnsupportedOperationException(); |
100 | |
} |
101 | |
|
102 | |
@Override |
103 | |
public Iterable<Writable> getAllEdgeValues(I targetVertexId) { |
104 | 0 | throw new UnsupportedOperationException(); |
105 | |
} |
106 | |
|
107 | |
@Override |
108 | |
public void addEdge(Edge<I, Writable> edge) { |
109 | 0 | throw new UnsupportedOperationException(); |
110 | |
} |
111 | |
|
112 | |
@Override |
113 | |
public void removeEdges(I targetVertexId) { |
114 | 0 | throw new UnsupportedOperationException(); |
115 | |
} |
116 | |
|
117 | |
@Override |
118 | |
public void unwrapMutableEdges() { |
119 | 0 | throw new UnsupportedOperationException(); |
120 | |
} |
121 | |
|
122 | |
@Override |
123 | |
public void wakeUp() { |
124 | 0 | throw new UnsupportedOperationException(); |
125 | |
} |
126 | |
|
127 | |
@Override |
128 | |
public boolean isHalted() { |
129 | 0 | throw new UnsupportedOperationException(); |
130 | |
} |
131 | |
} |