Coverage Report - org.apache.giraph.graph.OnlyIdVertex
 
Classes in this File Line Coverage Branch Coverage Complexity
OnlyIdVertex
0%
0/21
N/A
1.895
 
 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, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  
  * See the License for the specific language governing permissions and
 16  
  * limitations under the License.
 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  
  * Vertex which only contains ID.
 28  
  *
 29  
  * @param <I> Vertex id type
 30  
  */
 31  0
 public class OnlyIdVertex<I extends WritableComparable>
 32  
     extends DefaultImmutableClassesGiraphConfigurable<I, Writable, Writable>
 33  
     implements Vertex<I, Writable, Writable> {
 34  
   /** Vertex id. */
 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  
 }