Package org.apache.spark.status
Class RDDPartitionSeq
Object
org.apache.spark.status.RDDPartitionSeq
- All Implemented Interfaces:
- scala.collection.immutable.Iterable<RDDPartitionInfo>,- scala.collection.immutable.Seq<RDDPartitionInfo>,- scala.collection.immutable.SeqOps<RDDPartitionInfo,,- scala.collection.immutable.Seq, - scala.collection.immutable.Seq<RDDPartitionInfo>> - scala.collection.Iterable<RDDPartitionInfo>,- scala.collection.IterableFactoryDefaults<RDDPartitionInfo,,- scala.collection.Iterable> - scala.collection.IterableOnce<RDDPartitionInfo>,- scala.collection.IterableOnceOps<RDDPartitionInfo,,- scala.collection.Iterable, - scala.collection.Iterable> - scala.collection.IterableOps<RDDPartitionInfo,,- scala.collection.Iterable, - scala.collection.Iterable> - scala.collection.Seq<RDDPartitionInfo>,- scala.collection.SeqOps<RDDPartitionInfo,,- scala.collection.Seq, - scala.collection.Seq<RDDPartitionInfo>> - scala.Equals,- scala.Function1<Object,,- RDDPartitionInfo> - scala.PartialFunction<Object,- RDDPartitionInfo> 
public class RDDPartitionSeq
extends Object
implements scala.collection.immutable.Seq<RDDPartitionInfo>
A custom sequence of partitions based on a mutable linked list.
 
The external interface is an immutable Seq, which is thread-safe for traversal. There are no guarantees about consistency though - iteration might return elements that have been removed or miss added elements.
Internally, the sequence is mutable, and elements can modify the data they expose. Additions and removals are O(1). It is not safe to do multiple writes concurrently.
- 
Nested Class SummaryNested classes/interfaces inherited from interface scala.Function1scala.Function1.UnliftOps<A extends Object,B extends Object>, scala.Function1.UnliftOps$ 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPartition(LiveRDDPartition part) apply(int idx) intcount()scala.collection.Iterator<RDDPartitionInfo>iterator()intlength()voidMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Function1apply, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, composeMethods inherited from interface scala.collection.IterableclassName, coll, collectionClassName, lazyZip, seq, toIterableMethods inherited from interface scala.collection.IterableFactoryDefaultsempty, fromSpecific, newSpecificBuilderMethods inherited from interface scala.collection.IterableOnceknownSize, stepperMethods inherited from interface scala.collection.IterableOnceOps$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToArray, copyToBuffer, corresponds, count, exists, find, fold, foldLeft, foldRight, forall, foreach, hasDefiniteSize, max, maxBy, maxByOption, maxOption, min, minBy, minByOption, minOption, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, sum, to, toArray, toBuffer, toIndexedSeq, toIterator, toList, toMap, toSet, toStream, toVectorMethods inherited from interface scala.collection.IterableOps$plus$plus, collect, companion, drop, dropRight, dropWhile, filter, filterNot, flatMap, flatten, groupBy, grouped, groupMap, groupMapReduce, head, headOption, init, inits, isTraversableAgain, last, lastOption, map, partition, partitionMap, repr, scan, scanLeft, scanRight, sizeIs, slice, sliding, sliding, span, splitAt, tail, tails, take, takeRight, takeWhile, tapEach, toTraversable, transpose, unzip, unzip3, view, withFilter, zip, zipAll, zipWithIndexMethods inherited from interface scala.PartialFunctionandThen, andThen, applyOrElse, compose, elementWise, isDefinedAt, lift, orElse, runWith, unapplyMethods inherited from interface scala.collection.immutable.SeqiterableFactory, toSeqMethods inherited from interface scala.collection.SeqcanEqual, equals, hashCode, stringPrefix, toStringMethods inherited from interface scala.collection.SeqOps$colon$plus, $colon$plus$plus, $plus$colon, $plus$plus$colon, appended, appendedAll, combinations, concat, contains, containsSlice, corresponds, diff, distinct, distinctBy, endsWith, findLast, indexOf, indexOf, indexOfSlice, indexOfSlice, indexWhere, indexWhere, indices, intersect, isDefinedAt, isEmpty, lastIndexOf, lastIndexOf$default$2, lastIndexOfSlice, lastIndexOfSlice, lastIndexWhere, lastIndexWhere, lengthCompare, lengthCompare, lengthIs, occCounts, padTo, patch, permutations, prefixLength, prepended, prependedAll, reverse, reverseIterator, reverseMap, sameElements, scala$collection$SeqOps$$toGenericSeq, search, search, segmentLength, segmentLength, size, sizeCompare, sizeCompare, sortBy, sorted, sortWith, startsWith, startsWith$default$2, union, updated, view
- 
Constructor Details- 
RDDPartitionSeqpublic RDDPartitionSeq()
 
- 
- 
Method Details- 
addPartition
- 
apply- Specified by:
- applyin interface- scala.collection.SeqOps<RDDPartitionInfo,- scala.collection.Seq, - scala.collection.Seq<RDDPartitionInfo>> 
 
- 
countpublic int count()
- 
iterator- Specified by:
- iteratorin interface- scala.collection.IterableOnce<RDDPartitionInfo>
 
- 
lengthpublic int length()- Specified by:
- lengthin interface- scala.collection.SeqOps<RDDPartitionInfo,- scala.collection.Seq, - scala.collection.Seq<RDDPartitionInfo>> 
 
- 
removePartition
 
-