public final class RelationBuffer extends TupleCollectionBuffer
TUPLEMARK
Constructor and Description |
---|
RelationBuffer(java.util.Collection<TupleBuffer> tupleBuffers)
Creates the RelationBuffer
|
RelationBuffer(java.util.Collection<TupleBuffer> tupleBuffers,
boolean setReferenceLocal)
Creates the RelationBuffer
|
RelationBuffer(Heading heading,
java.nio.ByteBuffer attributeValueEncoding)
Creates the RelationBuffer
|
RelationBuffer(java.util.Set<TupleBuffer> tupleBuffers)
Creates the buffer and sets its value
|
RelationBuffer(java.util.Set<TupleBuffer> tupleBuffers,
boolean setReferenceLocal)
Creates the buffer and sets its value
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsRelationBuffer(RelationBuffer obj)
Compares this RelationBuffer with another one for equality.
|
static java.util.Set<TupleBuffer> |
fromStream1_0(Heading heading,
java.io.DataInputStream in) |
MyReadOnlyCollection<TupleBuffer> |
getTupleBufferCollection()
Gets the collection of tuple buffers
|
MyReadOnlySet<TupleBuffer> |
getTupleBufferSet()
Gets the relation value
|
int |
hashCode() |
static void |
toStream1_0(java.util.Collection<TupleBuffer> tupleBufferCollection,
Heading heading,
java.io.DataOutputStream outputStream)
Writes the given tuple buffer collection to the given Stream
|
java.lang.String |
toString() |
getByteBuffer
intern
public RelationBuffer(java.util.Collection<TupleBuffer> tupleBuffers)
tupleBuffers
- The collection of tupleBuffers that should be part of the relation valuepublic RelationBuffer(java.util.Collection<TupleBuffer> tupleBuffers, boolean setReferenceLocal)
tupleBuffers
- The collection of tupleBuffers that should be part of the relation valuesetReferenceLocal
- can be set to true if the caller guarantees that the tupleBuffers are local to the caller, and no reference to it will be left dangling in any other part of the system.public RelationBuffer(Heading heading, java.nio.ByteBuffer attributeValueEncoding)
heading
- the nonscalar type definition that the relation value encoding is known to conform toattributeValueEncoding
- the internal encoding of a relation valuepublic RelationBuffer(java.util.Set<TupleBuffer> tupleBuffers)
tupleBuffers
- The value to be held in this bufferpublic RelationBuffer(java.util.Set<TupleBuffer> tupleBuffers, boolean setReferenceLocal)
tupleBuffers
- The value to be held in this buffersetReferenceLocal
- can be set to true if the caller guarantees that the tupleBuffers are local to the caller, and no reference to it will be left dangling in any other part of the system.public static java.util.Set<TupleBuffer> fromStream1_0(Heading heading, java.io.DataInputStream in) throws java.io.IOException
heading
- The heading that the collection of tuples is supposed to conform toin
- the stream to readjava.io.IOException
- If an IO exception occurspublic static void toStream1_0(java.util.Collection<TupleBuffer> tupleBufferCollection, Heading heading, java.io.DataOutputStream outputStream) throws java.io.IOException
tupleBufferCollection
- the TubleBuffer collection to be Streamedheading
- The heading the TupleBuffers conform tooutputStream
- the stream to write tojava.io.IOException
- if an IO exception occurspublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsRelationBuffer(RelationBuffer obj)
obj
- the RelationBuffer to compare for equality with this onepublic MyReadOnlyCollection<TupleBuffer> getTupleBufferCollection()
TupleCollectionBuffer
getTupleBufferCollection
in class TupleCollectionBuffer
public MyReadOnlySet<TupleBuffer> getTupleBufferSet()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object