org.apache.activemq.leveldb.record
Class CollectionKey.Buffer

java.lang.Object
  extended by org.apache.activemq.leveldb.record.CollectionKey.Buffer
All Implemented Interfaces:
CollectionKey.Getter, org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>, org.fusesource.hawtbuf.proto.PBMessage<CollectionKey.Bean,CollectionKey.Buffer>
Enclosing class:
CollectionKey

public static final class CollectionKey.Buffer
extends Object
implements org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>, CollectionKey.Getter


Method Summary
 CollectionKey.Bean copy()
           
 boolean equals(CollectionKey.Buffer obj)
           
 boolean equals(Object obj)
           
 CollectionKey.Buffer freeze()
           
 boolean frozen()
           
 long getKey()
           
 int hashCode()
           
 boolean hasKey()
           
 int serializedSizeFramed()
           
 int serializedSizeUnframed()
           
 org.fusesource.hawtbuf.Buffer toFramedBuffer()
           
 byte[] toFramedByteArray()
           
 String toString()
           
 StringBuilder toString(StringBuilder sb, String prefix)
           
 org.fusesource.hawtbuf.Buffer toUnframedBuffer()
           
 byte[] toUnframedByteArray()
           
 void writeFramed(org.fusesource.hawtbuf.proto.CodedOutputStream output)
           
 void writeFramed(OutputStream output)
           
 void writeUnframed(org.fusesource.hawtbuf.proto.CodedOutputStream output)
           
 void writeUnframed(OutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

copy

public CollectionKey.Bean copy()
Specified by:
copy in interface CollectionKey.Getter
Specified by:
copy in interface org.fusesource.hawtbuf.proto.PBMessage<CollectionKey.Bean,CollectionKey.Buffer>

freeze

public CollectionKey.Buffer freeze()
Specified by:
freeze in interface CollectionKey.Getter
Specified by:
freeze in interface org.fusesource.hawtbuf.proto.PBMessage<CollectionKey.Bean,CollectionKey.Buffer>

toString

public String toString()
Overrides:
toString in class Object

toString

public StringBuilder toString(StringBuilder sb,
                              String prefix)
Specified by:
toString in interface CollectionKey.Getter

hasKey

public boolean hasKey()
Specified by:
hasKey in interface CollectionKey.Getter

getKey

public long getKey()
Specified by:
getKey in interface CollectionKey.Getter

toUnframedBuffer

public org.fusesource.hawtbuf.Buffer toUnframedBuffer()
Specified by:
toUnframedBuffer in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

toFramedBuffer

public org.fusesource.hawtbuf.Buffer toFramedBuffer()
Specified by:
toFramedBuffer in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

toUnframedByteArray

public byte[] toUnframedByteArray()
Specified by:
toUnframedByteArray in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

toFramedByteArray

public byte[] toFramedByteArray()
Specified by:
toFramedByteArray in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

writeFramed

public void writeFramed(org.fusesource.hawtbuf.proto.CodedOutputStream output)
                 throws IOException
Specified by:
writeFramed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>
Throws:
IOException

writeFramed

public void writeFramed(OutputStream output)
                 throws IOException
Specified by:
writeFramed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>
Throws:
IOException

writeUnframed

public void writeUnframed(OutputStream output)
                   throws IOException
Specified by:
writeUnframed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>
Throws:
IOException

writeUnframed

public void writeUnframed(org.fusesource.hawtbuf.proto.CodedOutputStream output)
                   throws IOException
Specified by:
writeUnframed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>
Throws:
IOException

serializedSizeFramed

public int serializedSizeFramed()
Specified by:
serializedSizeFramed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

serializedSizeUnframed

public int serializedSizeUnframed()
Specified by:
serializedSizeUnframed in interface org.fusesource.hawtbuf.proto.MessageBuffer<CollectionKey.Bean,CollectionKey.Buffer>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equals

public boolean equals(CollectionKey.Buffer obj)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

frozen

public boolean frozen()
Specified by:
frozen in interface org.fusesource.hawtbuf.proto.PBMessage<CollectionKey.Bean,CollectionKey.Buffer>


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.