public final class BlockEntry extends Object
CloudBlockBlob
.Constructor and Description |
---|
BlockEntry(String id)
Creates an instance of the
BlockEntry class with the specified id and default search mode
BlockSearchMode.LATEST . |
BlockEntry(String id,
BlockSearchMode searchMode)
Creates an instance of the
BlockEntry class with the specified id and search mode. |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the id of the block.
|
BlockSearchMode |
getSearchMode()
Gets the
BlockSearchMode . |
long |
getSize()
Gets the size, in bytes, of the block.
|
void |
setId(String id)
Sets the id of the block.
|
void |
setSearchMode(BlockSearchMode searchMode)
Sets the
BlockSearchMode . |
void |
setSize(long size)
Sets the size, in bytes, of the block.
|
public BlockEntry(String id)
BlockEntry
class with the specified id and default search mode
BlockSearchMode.LATEST
.id
- A String
which represents the ID of the block.public BlockEntry(String id, BlockSearchMode searchMode)
BlockEntry
class with the specified id and search mode.id
- A String
which represents the ID of the block.searchMode
- A BlockSearchMode
value which represents the block search mode.public String getId()
String
which represents the ID of the block.public long getSize()
long
which represents the the size, in bytes, of the block.public BlockSearchMode getSearchMode()
BlockSearchMode
.BlockSearchMode
value which represents the block search mode.public void setId(String id)
id
- A String
which represents the ID of the block to set.public void setSize(long size)
size
- A long
which represents the the size, in bytes, of the block to set.public void setSearchMode(BlockSearchMode searchMode)
BlockSearchMode
.searchMode
- A BlockSearchMode
value which represents the block search mode to set./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/