public int totalSizeOfIndexes(int structId) { return conStruct.registry.totalSizeOfIndexes(structId); }
public int totalSizeOfIndexes() { return schema.totalSizeOfIndexes(structureId); }
public final int fullIndexSizeInBytes() { return 4+(4*Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).totalSizeOfIndexes(DataInputBlobReader.getStructType(channelReader))); }
private boolean confirmDataDoesNotWriteOverIndex(long fieldId) { return channelWriter.position()< (Pipe.blobIndexBasePosition(channelWriter.backingPipe)-(4*Pipe.structRegistry(channelWriter.backingPipe) .totalSizeOfIndexes((int)(fieldId>>StructRegistry.STRUCT_OFFSET)))); }
private boolean confirmDataDoesNotWriteOverIndex(long fieldId) { return channelWriter.position()< (Pipe.blobIndexBasePosition(channelWriter.backingPipe)-(4*Pipe.structRegistry(channelWriter.backingPipe) .totalSizeOfIndexes((int)(fieldId>>StructRegistry.STRUCT_OFFSET)))); }
public final int fullIndexSizeInBytes() { return 4+(4*Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).totalSizeOfIndexes(DataInputBlobReader.getStructType(channelReader))); }
private boolean confirmDataDoesNotWriteOverIndex(long fieldId) { return channelWriter.position()< (Pipe.blobIndexBasePosition(channelWriter.backingPipe)-(4*Pipe.structRegistry(channelWriter.backingPipe) .totalSizeOfIndexes((int)(fieldId>>StructRegistry.STRUCT_OFFSET)))); }
public final int fullIndexSizeInBytes() { return 4+(4*Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).totalSizeOfIndexes(DataInputBlobReader.getStructType(channelReader))); }
public void readFromEndInto(DataOutputBlobWriter<?> outputStream) { assert(isStructured) : "method can only be called on structured readers"; //WARNING: this method will carry the same exact struct forward to the destination final int type = getStructType(this); //warning this must copy all the way to the very end with maxVarLen final int end = (bytesLowBound + pipe.maxVarLen); final int copyLen = ((Pipe.structRegistry(getBackingPipe(this)).totalSizeOfIndexes(type))*4)+4;//plus the type int start = end-copyLen; DataOutputBlobWriter.copyBackData(outputStream, backing, start, copyLen, byteMask); }
public boolean readFromEndInto(DataOutputBlobWriter<?> outputStream) { assert(isStructured) : "method can only be called on structured readers"; //WARNING: this method will carry the same exact struct forward to the destination final int type = getStructType(this); //only copy back data if it is found. if (type!=-1) { //warning this must copy all the way to the very end with maxVarLen final int end = (bytesLowBound + pipe.maxVarLen); final int copyLen = ((Pipe.structRegistry(getBackingPipe(this)).totalSizeOfIndexes(type))*4)+4;//plus the type int start = end-copyLen; DataOutputBlobWriter.copyBackData(outputStream, backing, start, copyLen, byteMask); return true; } return false; }
public boolean readFromEndInto(DataOutputBlobWriter<?> outputStream) { assert(isStructured) : "method can only be called on structured readers"; //WARNING: this method will carry the same exact struct forward to the destination final int type = getStructType(this); //only copy back data if it is found. if (type!=-1) { //warning this must copy all the way to the very end with maxVarLen final int end = (bytesLowBound + pipe.maxVarLen); final int copyLen = ((Pipe.structRegistry(getBackingPipe(this)).totalSizeOfIndexes(type))*4)+4;//plus the type int start = end-copyLen; DataOutputBlobWriter.copyBackData(outputStream, backing, start, copyLen, byteMask); return true; } return false; }