Package com.englishtown.vertx.cassandra.binarystore

Examples of com.englishtown.vertx.cassandra.binarystore.ChunkInfo


        if (obj == null) return false;
        if (obj == this) return true;

        if (!(obj instanceof ChunkInfo)) return false;

        ChunkInfo other = (ChunkInfo) obj;

        if (!Objects.equals(this.getId(), other.getId())) return false;
        if (!Objects.equals(this.getNum(), other.getNum())) return false;
        if (!Arrays.equals(this.getData(), other.getData())) return false;

        return true;
    }
View Full Code Here


        if (buffer.getValue().length() > 0) {
            long newLen = buffer.getValue().length() + fileInfo.getLength();
            fileInfo.setLength(newLen);

            ChunkInfo chunkInfo = new DefaultChunkInfo()
                    .setId(fileInfo.getId())
                    .setNum(num.getValue())
                    .setData(buffer.getValue().getBytes());

            final Deferred<Void> d = voidWhen.defer();
View Full Code Here

                remaining.appendBytes(data.getBytes(len, data.length()));

                buffer.setValue(remaining);
            }

            ChunkInfo chunkInfo = new DefaultChunkInfo()
                    .setId(fileInfo.getId())
                    .setNum(num.getValue())
                    .setData(chunk.getBytes());

            // Increase num of chunks and total file length
View Full Code Here

TOP

Related Classes of com.englishtown.vertx.cassandra.binarystore.ChunkInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.